Ticket #39989: patch-src-include.mak.diff
File patch-src-include.mak.diff, 812 bytes (added by potmj (Michael Pot), 11 years ago) |
---|
-
src/include.mak
old new 69 69 SVERSION=$(shell awk '/^\#define HPGS_(MINOR|PATCH)_VERSION/ {printf(".%s",$$3);} /^\#define HPGS_(MAJOR|EXTRA)_VERSION/ {printf("%s",$$3);}' $(srcdir)/hpgs.h) 70 70 VERSION=.$(SVERSION) 71 71 72 # Support CCDEP Depends version of gcc invocation (without -arch on Mac OS X for macports +universal) 73 CCDEP=CC 74 72 75 %.depend: $(srcdir)/%.c 73 $(CC ) $(LIBCFLAGS) $(CFLAGS) -M $< > $@76 $(CCDEP) $(LIBCFLAGS) $(CFLAGS) -M $< > $@ 74 77 75 78 %.$(OBJ): $(srcdir)/%.c 76 79 $(CC) $(LIBCFLAGS) $(CFLAGS) -c $< -o $@ … … 78 81 all: $(PROGRAM) 79 82 80 83 hpgs.depend: $(srcdir)/hpgs.c 81 $(CC ) $(CFLAGS) -M $< > $@84 $(CCDEP) $(CFLAGS) -M $< > $@ 82 85 83 86 hpgs.$(OBJ): $(srcdir)/hpgs.c 84 87 $(CC) $(CFLAGS) -c $< -o $@