makefile fixes from derick eddington

This commit is contained in:
Alex Shinn 2009-12-05 18:54:04 +09:00
parent 9ed0d705c6
commit d67e8b46aa
2 changed files with 18 additions and 14 deletions

View file

@ -98,17 +98,18 @@ chibi-scheme-static$(EXE): main.o eval.o sexp.o
$(CC) $(XCFLAGS) $(STATICFLAGS) -o $@ $^ $(XLDFLAGS) $(CC) $(XCFLAGS) $(STATICFLAGS) -o $@ $^ $(XLDFLAGS)
%.c: %.stub chibi-scheme$(EXE) $(GENSTUBS) %.c: %.stub chibi-scheme$(EXE) $(GENSTUBS)
$(GENSTUBS) $< LD_LIBRARY_PATH=.:$(LD_LIBRARY_PATH) $(GENSTUBS) $<
lib/%$(SO): lib/%.c $(INCLUDES) lib/%$(SO): lib/%.c $(INCLUDES)
$(CC) $(CLIBFLAGS) $(XCPPFLAGS) $(XCFLAGS) -o $@ $< -L. -lchibi-scheme $(CC) $(CLIBFLAGS) $(XCPPFLAGS) $(XCFLAGS) -o $@ $< -L. -lchibi-scheme
clean: clean:
rm -f *.o *.i *.s *.8 rm -f *.o *.i *.s *.8
find lib -name \*.$(SO) -exec rm -f '{}' \; find lib -name \*$(SO) -exec rm -f '{}' \;
rm -f tests/basic/*.out tests/basic/*.err
cleaner: clean cleaner: clean
rm -f chibi-scheme$(EXE) chibi-scheme-static$(EXE) $(COMPILED_LIBS) *$(SO) *.a rm -f chibi-scheme$(EXE) chibi-scheme-static$(EXE) $(COMPILED_LIBS) *$(SO) *.a include/chibi/install.h
rm -rf *.dSYM rm -rf *.dSYM
test-basic: chibi-scheme$(EXE) test-basic: chibi-scheme$(EXE)
@ -122,13 +123,13 @@ test-basic: chibi-scheme$(EXE)
done done
test-numbers: all test-numbers: all
LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./chibi-scheme$(EXE) tests/numeric-tests.scm LD_LIBRARY_PATH=.:$(LD_LIBRARY_PATH) ./chibi-scheme$(EXE) tests/numeric-tests.scm
test-match: all test-match: all
LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./chibi-scheme$(EXE) tests/match-tests.scm LD_LIBRARY_PATH=.:$(LD_LIBRARY_PATH) ./chibi-scheme$(EXE) tests/match-tests.scm
test: all test: all
LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./chibi-scheme$(EXE) tests/r5rs-tests.scm LD_LIBRARY_PATH=.:$(LD_LIBRARY_PATH) ./chibi-scheme$(EXE) tests/r5rs-tests.scm
install: chibi-scheme$(EXE) install: chibi-scheme$(EXE)
mkdir -p $(DESTDIR)$(BINDIR) mkdir -p $(DESTDIR)$(BINDIR)
@ -139,16 +140,19 @@ install: chibi-scheme$(EXE)
mkdir -p $(DESTDIR)$(INCDIR) mkdir -p $(DESTDIR)$(INCDIR)
cp $(INCLUDES) include/chibi/eval.h $(DESTDIR)$(INCDIR)/ cp $(INCLUDES) include/chibi/eval.h $(DESTDIR)$(INCDIR)/
mkdir -p $(DESTDIR)$(LIBDIR) mkdir -p $(DESTDIR)$(LIBDIR)
mkdir -p $(DESTDIR)$(SOLIBDIR)
cp libchibi-scheme$(SO) $(DESTDIR)$(SOLIBDIR)/
cp libchibi-scheme$(SO) $(DESTDIR)$(SOLIBDIR)/ cp libchibi-scheme$(SO) $(DESTDIR)$(SOLIBDIR)/
-cp libchibi-scheme.a $(DESTDIR)$(LIBDIR)/ -cp libchibi-scheme.a $(DESTDIR)$(LIBDIR)/
if type ldconfig >/dev/null 2>/dev/null; then ldconfig; fi if type ldconfig >/dev/null 2>/dev/null; then ldconfig; fi
uninstall: uninstall:
rm -f $(BINDIR)/chibi-scheme* rm -f $(DESTDIR)$(BINDIR)/chibi-scheme$(EXE)
rm -f $(SOLIBDIR)/libchibi-scheme$(SO) rm -f $(DESTDIR)$(BINDIR)/chibi-scheme-static$(EXE)
rm -f $(LIBDIR)/libchibi-scheme$(SO).a rm -f $(DESTDIR)$(SOLIBDIR)/libchibi-scheme$(SO)
cd $(INCDIR) && rm -f $(INCLUDES) include/chibi/eval.h rm -f $(DESTDIR)$(LIBDIR)/libchibi-scheme$(SO).a
rm -rf $(MODDIR) cd $(DESTDIR)$(INCDIR) && rm -f $(INCLUDES) include/chibi/eval.h
rm -rf $(DESTDIR)$(MODDIR)
dist: cleaner dist: cleaner
rm -f chibi-scheme-`cat VERSION`.tgz rm -f chibi-scheme-`cat VERSION`.tgz

View file

@ -29,8 +29,8 @@
/* uncomment this to just malloc manually instead of any GC */ /* uncomment this to just malloc manually instead of any GC */
/* Mostly for debugging purposes, this is the no GC option. */ /* Mostly for debugging purposes, this is the no GC option. */
/* You can use the just with the read/write API and */ /* You can use just the read/write API and */
/* explicitly free sexps though. */ /* explicitly free sexps, though. */
/* #define USE_MALLOC 1 */ /* #define USE_MALLOC 1 */
/* uncomment this to add conservative checks to the native GC */ /* uncomment this to add conservative checks to the native GC */
@ -58,7 +58,7 @@
/* #define USE_INFINITIES 0 */ /* #define USE_INFINITIES 0 */
/* uncomment this if you want immediate flonums */ /* uncomment this if you want immediate flonums */
/* This is experimental, enablde at your own risk. */ /* This is experimental, enable at your own risk. */
/* #define USE_IMMEDIATE_FLONUMS 1 */ /* #define USE_IMMEDIATE_FLONUMS 1 */
/* uncomment this if you don't want bignum support */ /* uncomment this if you don't want bignum support */