1
0

001-makefile.patch 607 B

1234567891011121314151617181920212223242526
  1. --- a/Makefile 2002-04-09 00:37:57.000000000 -0800
  2. +++ b/Makefile 2018-06-15 07:29:32.882566233 -0800
  3. @@ -1,16 +1,16 @@
  4. #DEBUG=-g
  5. DEBUG=
  6. -SCHEME_H_DIR=..
  7. +SCHEME_H_DIR=../tinyscheme-1.41
  8. CC=gcc
  9. -CFLAGS=-DUSE_DL=1 -I $(SCHEME_H_DIR)
  10. +CFLAGS=-fPIC -Wall
  11. +FEATURES=-DUSE_DL=1
  12. +LDFLAGS=-shared
  13. tsx.so : tsx.c tsx.h Makefile
  14. - $(CC) -shared -Wall -fPIC $(CFLAGS) -o tsx.so $(DEBUG) tsx.c
  15. - strip tsx.so
  16. - ls -l tsx.so
  17. + $(CC) $(LDFLAGS) $(CFLAGS) -I $(SCHEME_H_DIR) $(FEATURES) -o tsx.so $(DEBUG) tsx.c
  18. .PHONY : clean
  19. clean:
  20. rm -f *.o
  21. rm -f tsx.so
  22. - rm -f *~
  23. \ No newline at end of file
  24. + rm -f *~