(OBJS, SRCS): Use new vars. Add xml.o and xml.cxx, respectively. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@1000 626c5289-ae23-0410-ae9c-e8d60b6d4f22
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
#######################################################################
|
|
# $Header$
|
|
#######################################################################
|
|
|
|
srcdir = @srcdir@
|
|
VPATH = @srcdir@
|
|
|
|
SHELL = /bin/sh
|
|
CXX = @CXX@
|
|
CFLAGS = @CFLAGS@
|
|
YACC = @YACC@
|
|
AR = @AR@
|
|
RANLIB = @RANLIB@
|
|
|
|
TARGET = libmodules11.a
|
|
COREOBJS = main.o emit.o lang.o generate.o
|
|
CORESRCS = main.cxx emit.cxx lang.cxx generate.cxx
|
|
|
|
LANGOBJS = tcl8.o python.o perl5.o guile.o ruby.o mzscheme.o #java.o
|
|
LANGSRCS = tcl8.cxx python.cxx perl5.cxx guile.cxx ruby.cxx mzscheme.cxx #java.cxx
|
|
|
|
OBJS = $(COREOBJS) $(LANGOBJS) xml.o
|
|
SRCS = $(CORESRCS) $(LANGSRCS) xml.cxx
|
|
|
|
INCLUDE = -I$(srcdir)/../Include \
|
|
-I$(srcdir)/../Preprocessor \
|
|
-I$(srcdir)/../LParse \
|
|
-I$(srcdir)/../DOH/Include \
|
|
-I$(srcdir)/../Swig \
|
|
-I../Include
|
|
|
|
# Rules for creation of a .o file from .cxx
|
|
.SUFFIXES: .cxx
|
|
.cxx.o:
|
|
$(CXX) $(INCLUDE) $(CFLAGS) -c -o $*.o $<
|
|
|
|
|
|
swig: $(TARGET)
|
|
|
|
$(TARGET): $(OBJS)
|
|
$(AR) cr $(TARGET) $(OBJS)
|
|
$(RANLIB) $(TARGET)
|
|
|
|
clean::
|
|
rm -f *.o *~ $(TARGET)
|
|
|
|
nuke::
|
|
rm -f Makefile *~ #* core a.out
|