1.9-flags.patch 775 B

12345678910111213141516171819202122232425262728293031323334353637
  1. diff --git a/Makefile b/Makefile
  2. index 551e3b8..1d55ebe 100644
  3. --- a/Makefile
  4. +++ b/Makefile
  5. @@ -9,7 +9,7 @@
  6. # commenting out the includes of ptotdll.h in ptotdll.c and main.c.
  7. # PMcJ 6 Sep 96
  8. -CC=gcc
  9. +CC ?= gcc
  10. #CC=cc -std
  11. BUNDLE = ocr.h rot270.h rot90.h
  12. @@ -17,18 +17,18 @@ BUNDLE = ocr.h rot270.h rot90.h
  13. all: pstotext
  14. main.o: main.c ptotdll.h bundle.h ocr.h rot270.h rot90.h
  15. - $(CC) -c $*.c
  16. + $(CC) $(CFLAGS) -c $*.c
  17. ptotdll.o: ptotdll.c ptotdll.h
  18. - $(CC) -c $*.c
  19. + $(CC) $(CFLAGS) -c $*.c
  20. pstotext: bundle.o main.o ptotdll.o
  21. - $(CC) -o pstotext main.o bundle.o ptotdll.o -lm
  22. + $(CC) $(CFLAGS) $(LDFLAGS) -o pstotext main.o bundle.o ptotdll.o -lm
  23. .SUFFIXES: .ps
  24. .c.o:
  25. - $(CC) -c $*.c
  26. + $(CC) $(CFLAGS) -c $*.c
  27. # "Bundle" an Ascii file.
  28. .ps.h: