Fix generated makefile rule for building the module

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9647 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Olly Betts 2007-02-07 10:19:35 +00:00
commit 8b334887e4

View file

@ -10,7 +10,7 @@
/* FIXME: PHP5 OO wrapping TODO list:
*
* Short term (ideally before 1.3.30 is released):
* Short term:
*
* Sort out auto-renaming of method and class names which are reserved
* words (e.g. empty, clone, exception, etc.) vs -php4/-php5 in some
@ -350,9 +350,9 @@ public:
Printf(f_make, "EXTRA_LIB=\n\n");
Printf(f_make, "$(MODULE): $(OBJS)\n");
if (CPlusPlus || (withcxx != NULL)) {
Printf(f_make, "\t$(CXX) $(LDFLAGS) $(OBJS) -o $(PROG) $(EXTRA_LIB)\n\n");
Printf(f_make, "\t$(CXX) $(LDFLAGS) $(OBJS) -o $@ $(EXTRA_LIB)\n\n");
} else {
Printf(f_make, "\t$(CC) $(LDFLAGS) $(OBJS) -o $(PROG) $(EXTRA_LIB)\n\n");
Printf(f_make, "\t$(CC) $(LDFLAGS) $(OBJS) -o $@ $(EXTRA_LIB)\n\n");
}
Printf(f_make, "%%.o: %%.cpp\n");
Printf(f_make, "\t$(CXX) $(EXTRA_INC) $(PHP_INC) $(CFLAGS) -c $<\n");