Minor change

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@221 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-02-11 16:19:55 +00:00
commit 8d68e3228e

View file

@ -1,32 +1,24 @@
# ------------------------------------------------------------ # ------------------------------------------------------------
# SWIG Makefile Template # SWIG Examples Makefile
#
# This file is used by the examples to build modules. Assuming
# you ran configure, this file will probably work. However,
# it's not perfect so you might need to do some hand tweaking.
# #
# This file is used by all of the examples to build modules # Other notes:
# and other things. You can use this as a starting point #
# for building your own modules. # 1. Take a look at the prefixes below. Since SWIG works with
#
# How to use this Makefile:
#
# 1. Assuming you ran 'configure', some values in this Makefile
# will be set automatically for you. Configure will try to
# guess how to do certain things such as build shared libraries,
# etc... Unfortunately, it's not perfect so you may need to
# change some things by hand (see next).
#
# 2. Take a look at the prefixes below. Since SWIG works with
# multiple target languages, you may need to find out where # multiple target languages, you may need to find out where
# certain packages have been installed. Set the prefixes # certain packages have been installed. Set the prefixes
# accordingly. I've set the prefixes assuming that SWIG has # accordingly.
# been installed in the same directory as the target languages.
# #
# 3. To use this makefile, simply set SRCS, INTERFACE, INCLUDE, LIBS, # 2. To use this makefile, simply set SRCS, INTERFACE, INCLUDE, LIBS,
# TARGET, and do a # TARGET, and do a
# $(MAKE) -f Makefile.template.in SRCS='$(SRCS)' \ # $(MAKE) -f Makefile.template.in SRCS='$(SRCS)' \
# INCLUDE='$(INCLUDE) LIBS='$(LIBS)' INTERFACE='$(INTERFACE)' \ # INCLUDE='$(INCLUDE) LIBS='$(LIBS)' INTERFACE='$(INTERFACE)' \
# TARGET='$(TARGET)' method # TARGET='$(TARGET)' method
# #
# 'method' describes what is being built. # 'method' describes what is being built.
#
#--------------------------------------------------------------- #---------------------------------------------------------------
TARGET = TARGET =
@ -126,7 +118,7 @@ wish_cpp: $(SRCS)
# Build a Tcl dynamic loadable module (you might need to tweak this) # Build a Tcl dynamic loadable module (you might need to tweak this)
# ----------------------------------------------------------- # -----------------------------------------------------------
tcldl: $(SRCS) tcl: $(SRCS)
$(SWIG) -tcl8 $(SWIGOPT) $(TCL_SWIGOPTS) $(INTERFACE) $(SWIG) -tcl8 $(SWIGOPT) $(TCL_SWIGOPTS) $(INTERFACE)
$(CC) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDE) $(TCL_INCLUDE) $(CC) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDE) $(TCL_INCLUDE)
$(LDSHARED) $(OBJS) $(IOBJS) $(LIBS) -o $(TARGET)$(SO) $(LDSHARED) $(OBJS) $(IOBJS) $(LIBS) -o $(TARGET)$(SO)
@ -135,7 +127,7 @@ tcldl: $(SRCS)
# Build a Tcl7.5 dynamic loadable module for C++ # Build a Tcl7.5 dynamic loadable module for C++
# ----------------------------------------------------------- # -----------------------------------------------------------
tcldl_cpp: $(SRCS) tcl_cpp: $(SRCS)
$(SWIG) -tcl8 -c++ $(SWIGOPT) $(TCL_SWIGOPTS) $(INTERFACE) $(SWIG) -tcl8 -c++ $(SWIGOPT) $(TCL_SWIGOPTS) $(INTERFACE)
$(CXX) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDE) $(TCL_INCLUDE) $(CXX) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDE) $(TCL_INCLUDE)
$(CXXSHARED) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o $(TARGET)$(SO) $(CXXSHARED) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o $(TARGET)$(SO)