diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2008-06-13 11:36:22 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@iem.at> | 2015-10-14 15:08:23 +0200 |
commit | 86c89e24f57b63883775f932c0a2354b5fe4660c (patch) | |
tree | 264dab78a140ab2f3aaf8577a6e16098ba76c9f6 /dmx512/src/Makefile | |
parent | 16d980cd5cc5539fef38c4cb99465aba97737073 (diff) |
dmx4pd (currently linux only)
svn path=/trunk/externals/iem/dmx512/; revision=9989
Diffstat (limited to 'dmx512/src/Makefile')
-rw-r--r-- | dmx512/src/Makefile | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/dmx512/src/Makefile b/dmx512/src/Makefile new file mode 100644 index 0000000..93da650 --- /dev/null +++ b/dmx512/src/Makefile @@ -0,0 +1,64 @@ +default: all + +include Make.version + +Make.config: Make.config.in configure + ./configure + +include Make.config + +.SUFFIXES: .$(EXT) + +SOURCES=$(sort $(filter %.c, $(wildcard *.c))) +TARGETS = $(SOURCES:.c=.o) +OBJECTS = $(SOURCES:.c=.$(EXT)) + +all: $(OBJECTS) + +clean: + -rm -f *.o *.d + +binclean: + -rm -f *.$(EXT) + +distclean: clean binclean + -rm -f *~ _* config.* + -rm -rf autom4te.cache + +install: install-bin install-doc + +install-bin: + -install -d $(INSTALL_BIN) + -install -m 644 $(LIBNAME).$(EXT) $(INSTALL_BIN) + +install-doc: + -install -d $(INSTALL_BIN) + -install -m 644 *.pd $(INSTALL_BIN) + +dist: distclean + (cd ..;tar czvf $(TARNAME) $(LIBNAME)) + +distbin: distclean all clean + (cd ..; tar cvzf $(BINTARNAME) $(LIBNAME)) + +everything: clean all install distclean + + +$(TARGETS): %.o : %.c + $(CC) $(DMX4PD_CFLAGS) -DDMX4PD_VERSION="\"$(VERSION)\"" -c -o $@ $*.c + +$(OBJECTS): %.$(EXT) : %.o + $(LD) $(LFLAGS) -o $@ $*.o $(LIBS) + $(STRIP) $(STRIPFLAGS) $@ + +## dependencies: as proposed by the GNU-make documentation +## see http://www.gnu.org/software/make/manual/html_node/make_47.html#SEC51 +-include $(SOURCES:.c=.d) +%.d: %.c + @set -e; rm -f $@; \ + $(CC) $(MAKEDEP_FLAGS) $(CFLAGS) $< > $@.$$$$; \ + sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ + rm -f $@.$$$$ + +configure: configure.ac + autoconf |