diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2008-06-13 13:28:08 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@iem.at> | 2015-10-14 15:08:23 +0200 |
commit | 124ec02a0b4114bb52bcb8c44c4d76de737f6e6c (patch) | |
tree | 5837b9a3696dab0062d502d516cb00576fb2ad8d /dmx512/src/Makefile | |
parent | 4fd2d8a51cea2577f985148583539d0f7727da63 (diff) |
probably got the svnversion magic going
svn path=/trunk/externals/iem/dmx512/; revision=9992
Diffstat (limited to 'dmx512/src/Makefile')
-rw-r--r-- | dmx512/src/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dmx512/src/Makefile b/dmx512/src/Makefile index a9c06db..e634df6 100644 --- a/dmx512/src/Makefile +++ b/dmx512/src/Makefile @@ -2,11 +2,17 @@ default: all include Make.version + Make.config: Make.config.in configure ./configure -include Make.config +#VERSIONDEFINE = _$(strip $(VERSION))_ +ifneq ($(strip $(VERSION)),) +VERSIONDEFINE = -DDMX4PD_VERSION="\"rev.$(VERSION)\"" +endif + .SUFFIXES: .$(EXT) SOURCES=$(sort $(filter %.c, $(wildcard *.c))) @@ -48,7 +54,7 @@ everything: clean all install distclean $(TARGETS): %.o : %.c Make.config - $(CC) $(DMX4PD_CFLAGS) -DDMX4PD_VERSION="\"$(VERSION)\"" -c -o $@ $*.c + $(CC) $(DMX4PD_CFLAGS) $(VERSIONDEFINE) -c -o $@ $*.c $(OBJECTS): %.$(EXT) : %.o $(LD) $(LFLAGS) -o $@ $*.o $(LIBS) |