patch-GNUmakefile 946 B

123456789101112131415161718192021222324252627282930
  1. $Id$
  2. --- libowfat-0.28.orig/GNUmakefile 2006-07-16 01:17:01.000000000 +0200
  3. +++ libowfat-0.28/GNUmakefile 2011-01-15 13:58:17.000000000 +0100
  4. @@ -18,7 +18,7 @@ all: t $(LIBS) libowfat.a libsocket
  5. CROSS=
  6. #CROSS=i686-mingw-
  7. CC=$(CROSS)gcc
  8. -CFLAGS=-pipe -W -Wall -O2 -fomit-frame-pointer
  9. +CFLAGS?=-pipe -W -Wall -O2 -fomit-frame-pointer
  10. #CFLAGS=-pipe -Os -march=pentiumpro -mcpu=pentiumpro -fomit-frame-pointer -fschedule-insns2 -Wall
  11. # CFLAGS += -fstrict-aliasing -Wstrict-aliasing=2
  12. @@ -27,7 +27,7 @@ CFLAGS += -D_REENTRANT
  13. # startrip
  14. ifneq ($(DEBUG),)
  15. -CFLAGS=-pipe -Wall -g
  16. +CFLAGS=-g -Wall
  17. endif
  18. path = $(subst :, ,$(PATH))
  19. diet_path = $(foreach dir,$(path),$(wildcard $(dir)/diet))
  20. @@ -147,7 +147,7 @@ CFLAGS+=-I.
  21. t.o: iopause.h
  22. t: t.o libowfat.a libsocket
  23. - $(DIET) $(CC) -g -o $@ t.o libowfat.a `cat libsocket`
  24. + $(DIET) $(CC) $(LDFLAGS) -o $@ t.o libowfat.a `cat libsocket`
  25. .PHONY: all clean tar install rename
  26. clean: