From: kruland <kr...@us...> - 2005-10-07 02:36:25
|
Update of /cvsroot/swig/SWIG/Examples/php4/variables In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23831/variables Modified Files: .cvsignore Added Files: Makefile Removed Files: BUILD.sh Makefile.old Log Message: Created Makefiles which do both make check and make clean correctly. Index: .cvsignore =================================================================== RCS file: /cvsroot/swig/SWIG/Examples/php4/variables/.cvsignore,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** .cvsignore 24 Sep 2005 10:03:49 -0000 1.2 --- .cvsignore 7 Oct 2005 02:36:16 -0000 1.3 *************** *** 1,5 **** - makefile - Makefile - Makefile.lnk php_example.h example.php --- 1,2 ---- --- BUILD.sh DELETED --- --- NEW FILE: Makefile --- SWIGFLAGS = C_SOURCES = example.c CXX_SOURCES = SWIG = ../../../swig all: check example_wrap.c: example.i $(SWIG) -php4 $(SWIGFLAGS) example.i OBJS= example_wrap.o $(C_SOURCES:.c=.o) $(CXX_SOURCES:.cxx=.o) PROG=php_example.so PHP_INC=`php-config --includes` CFLAGS = -fpic LDFLAGS = -shared $(PROG): $(OBJS) $(CXX) $(LDFLAGS) $(OBJS) -o $(PROG) $(EXTRA_LIB) %.o: %.cpp $(CXX) $(PHP_INC) $(CFLAGS) -c $< %.o: %.cxx $(CXX) $(PHP_INC) $(CFLAGS) -c $< %.o: %.c $(CC) $(PHP_INC) $(CFLAGS) -c $< check: $(PROG) @php -d extension_dir=. runme.php4 clean: rm -f example_wrap.* *.o *~ *.so core example.php php_example.h --- Makefile.old DELETED --- |