File: Makefile.linux

package info (click to toggle)
pd-ggee 0.28-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 868 kB
  • sloc: ansic: 6,134; cpp: 239; makefile: 73
file content (33 lines) | stat: -rw-r--r-- 786 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
NAME=stk
current: pd_linux

# TARGETS += stk

PDDIR = /usr/local/lib/pd
INSTALLPATH = $(PDDIR)/extra
VERSION = \"0.16\"

# ----------------------- Linux -----------------------

pd_linux: $(NAME).pd_linux

.SUFFIXES: .pd_linux

LINUXCFLAGS = -ggdb -DPD -O3 -fPIC -funroll-loops -fomit-frame-pointer \
    -W -Wshadow -Wno-unused -Wno-parentheses -Wno-switch

LINUXINCLUDE =  -I/usr/include -I/usr/local/include/stk

.cpp.pd_linux:
	g++ $(LINUXCFLAGS) $(LINUXINCLUDE) -c $(NAME).cpp
	g++ -Wl,--export-dynamic  -shared -o $(NAME).pd_linux $(NAME).o -lc -lstk
	strip --strip-unneeded $(NAME).pd_linux
	rm -f *.o
# -------------------------------------------------------

clean:
	rm *.pd_linux

install:
	cp $(NAME).pd_* $(INSTALLPATH)
	install -d  $(PDDIR)/doc/5.reference/$(NAME)-help.pd