File: Makefile

package info (click to toggle)
pd-iemutils 0.0.20161027-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,200 kB
  • ctags: 2,560
  • sloc: ansic: 18,963; tcl: 1,419; makefile: 204; sh: 40
file content (38 lines) | stat: -rw-r--r-- 904 bytes parent folder | download
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)"