aboutsummaryrefslogtreecommitdiff
path: root/makefile.in
blob: 3d0fec85ffeb23f9c279e0dbfa55b5aadaa6ce14 (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

EXT = @EXT@ 
DEFS = @DFLAGS@ -DHAVE_LIBC=1 -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRERROR=1  -DPD_VERSION_MINOR=36
CC = @CC@
CXX = @CXX@
LD = @LD@
AFLAGS = 
LFLAGS = @LFLAGS@
WFLAGS =
IFLAGS = -I. -I../../pd/src
PREFIX=@prefix@
INSTALL_PREFIX=$(PREFIX)

VERSION = \"$(shell cat VERSION)\"
TARNAME =  cxc-$(shell cat VERSION).tar.gz

.SUFFIXES: .$(EXT)

PDCFLAGS = -g -O2 $(DEFS) $(IFLAGS) $(WFLAGS) $(LFLAGS) $(AFLAGS) -DVERSION=$(VERSION)
CFLAGS = -g -O2 $(DEFS) $(IFLAGS) $(WFLAGS) -DVERSION=$(VERSION)
CXXFLAGS = $(CFLAGS)

LIBS = -lc -lm 
#LIBS = -lpthread -lm -lc 
SOURCES = ENV.c ascseq.c ascwave.c bangfilt.c bangfilt2.c binshift.c counter.c cx.c ixprint.c mean.c microtime.c prepend.c proc.c randomix.c reson.c sigdelta.c split.c
TARGETS = $(SOURCES:.c=.$(EXT)) 

# all: $(TARGETS) 
all: cxc

cxc: $(TARGETS)
#	cc -c $(CFLAGS) -o cxc.o -DPD cx.c
	$(LD) $(LFLAGS) -o cxc.$(EXT) *.o $(LIBS)
	strip @STRIPFLAGS@ cxc.$(EXT)

clean::
	-rm *.$(EXT) *.o 

distclean: clean
	-rm config.cache config.log config.status makefile



.c.o:
	$(CC) -c -o $@ $(CFLAGS) -DPD $*.c

# cp $@ $*_stat.o

.o.$(EXT):
	$(CC) -o $@ $(PDCFLAGS) -DPD $*.o



install::
	install -d $(INSTALL_PREFIX)/pd/externs
#	install -m 644 *.$(EXT) $(INSTALL_PREFIX)/pd/externs
	-install -m 644 cxc.$(EXT) $(INSTALL_PREFIX)/pd/externs
	install -m 644 reference/*.pd $(INSTALL_PREFIX)/pd/doc/5.reference


dist: distclean
	(cd ..;tar czvf $(TARNAME) cxc)