blob: b298fb4bafe39d481c6f46f49e3e5b4bfaf4c525 (
plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
EXT = @EXT@
DEFS = @DEFS@ -DPD_VERSION_MINOR=@pd_minor_version@
CC = @CC@
CXX = @CXX@
LD = @LD@
AFLAGS = @AFLAGS@
LFLAGS = @LFLAGS@
WFLAGS =
IFLAGS = -I./include
INSTALL_PREFIX=@prefix@
VERSION = \"$(shell cat VERSION)\"
DISTVERSION = $(shell cat VERSION)
.SUFFIXES: .$(EXT)
PDCFLAGS = @CFLAGS@ $(DEFS) $(IFLAGS) $(WFLAGS) $(LFLAGS) $(AFLAGS) -DVERSION=$(VERSION)
CFLAGS = @CFLAGS@ $(DEFS) $(IFLAGS) $(WFLAGS) -DVERSION=$(VERSION)
CXXFLAGS = $(CFLAGS)
STKPD= @STKPD@
STK= @STK@
BUILD_STK = @BUILDSTK@
#LIBS = -lc -lm
LIBS = @LIBS@
SOURCES = @MYSOURCES@
TARGETS = $(SOURCES:.c=.$(EXT)) $(STKPD)
all: $(STK) $(TARGETS)
ggext: $(STK) $(TARGETS)
cc -c $(CFLAGS) -DPD ggee.c
$(LD) -export_dynamic -shared -o ggext.pd_linux ggee.o */*.o $(LIBS)
strip --strip-unneeded ggext.pd_linux
clean::
-rm */*.$(EXT) *.$(EXT) so_locations rm */*~ *~ *.o */*.o
distclean: clean
-rm config.cache config.log config.status makefile
distcleancvs:
-rm -r CVS reference/CVS
.c.o:
$(CC) -c -o $@ $(CFLAGS) -DPD $*.c
# cp $@ $*_stat.o
.o.pd_linux:
$(CC) -o $@ $(PDCFLAGS) -DPD $*.o
include makefile.stk
install::
install -d $(INSTALL_PREFIX)/lib/pd/externs
install -m 644 */*.pd_linux $(INSTALL_PREFIX)/lib/pd/externs
-install -m 644 ggext.pd_linux $(INSTALL_PREFIX)/lib/pd/externs
install -m 644 */*.pd $(INSTALL_PREFIX)/lib/pd/doc/5.reference
dist: distclean
(cd ..;tar czvf ggee-$(DISTVERSION).tgz ggee)
|