1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
subprojects = iem_adaptfilt iem_dp iem_roomsim iem_spec2 iem_tab punish
all: $(subprojects)
.PHONY: all clean archive release dummy
.PHONY: $(subprojects)
library=iem_utils
version=0.0.$(shell date +%Y%m%d)
archivefile=$(library)-v$(version).tgz
IEM_CFLAGS=-DPD $(CPPFLAGS) -fPIC $(CFLAGS)
IEM_LDFLAGS=-export-dynamic -fPIC -shared $(LDFLAGS)
clean:
-find . -name "*.o" -delete
-find . -name "*.pd_*" -delete
-find . -name "*.dll" -delete
-find . -name "*.tgz" -delete
dummy:
@echo -n
archive: $(archivefile)
release: $(archivefile)
git tag -m "released iem_utils $(version)" "v$(version)"
%.tgz: dummy
-rm -f $@
tar --transform "s|^|$(@:.tgz=)/|" --exclude-vcs --exclude='.gitmodules' --exclude $@ -czf $@ *
iem_adaptfilt punish:
$(MAKE) -C $@ \
$(empty)
iem_dp iem_roomsim iem_spec2 iem_tab:
$(MAKE) -C $@/src -f makefile_linux \
CFLAGS="$(IEM_CFLAGS)" LDFLAGS="$(IEM_LDFLAGS)"
|