File: Makefile

package info (click to toggle)
pdp 1%3A0.14.1%2Bdarcs20180201-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 3,228 kB
  • sloc: ansic: 22,424; asm: 2,088; makefile: 537; perl: 145; sh: 108; cpp: 4
file content (41 lines) | stat: -rw-r--r-- 1,216 bytes parent folder | download | duplicates (2)
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
39
40
41
include Makefile.config


all: pdp_scaf.pd_linux

pdp_scaf_all:
	make -C include
	make -C compiler
	make -C rules
	make -C pdp

clean:
	rm -f *~
	rm -f pdp_scaf.pd_linux
	make -C include clean
	make -C compiler clean
	make -C rules clean
	make -C pdp clean

mrproper: clean
	rm -rf configure
	rm -rf config.status
	rm -rf config.log
	rm -rf autom4te.cache
	#this needs to stay in
	#rm -rf Makefile.config

pdp_scaf.pd_linux: pdp_scaf_all
	rm -f pdp_scaf.pd_linux
	gcc -rdynamic -shared -o pdp_scaf.pd_linux pdp/*.o $(PDP_CA_LIBS) $(LDFLAGS)

install: all
	install -d $(DESTDIR)$(prefix)/lib/scaf
	install -m 755 compiler/scafc $(DESTDIR)$(prefix)/bin || echo failed
	install -m 755 compiler/scafc.pl $(DESTDIR)$(prefix)/lib/scaf || echo failed
	install -m 644 compiler/kernel.scaf $(DESTDIR)$(prefix)/lib/scaf || echo failed
	install -m 644 compiler/scafmacro.s $(DESTDIR)$(prefix)/lib/scaf || echo failed
	install -m 644 compiler/optim.rules $(DESTDIR)$(prefix)/lib/scaf || echo failed
	install -m 755 rules/carules.scafo $(DESTDIR)$(prefix)/lib/scaf/default.scafo || echo failed
	install -m 755 pdp_scaf.pd_linux $(DESTDIR)$(prefix)/lib/pd/extra
	install -m 644 doc/*.pd $(DESTDIR)$(prefix)/lib/pd/doc/5.reference