]> git.rkrishnan.org Git - dttsp.git/blob - jDttSP/Makefile
4c3905150209b2c728d56a4c99becfb2b441988d
[dttsp.git] / jDttSP / Makefile
1 CFLAGS = -g -O3 -I. -I/usr/local/include
2 #CFLAGS = -g -I. -I/usr/local/include
3 LIBS = -L/usr/local/lib -ljack -lpthread -lfftw -lm
4 #LIBS = -lefence -L/usr/local/lib -ljack -lpthread -lfftw -lm
5
6 staticlibname=libDttSP.a
7
8 OBJ =   am_demod.o\
9         banal.o\
10         bufvec.o\
11         chan.o\
12         chap.o\
13         correctIQ.o\
14         crc16.o\
15         cxops.o\
16         digitalagc.o\
17         fastrig.o\
18         filter.o\
19         fm_demod.o\
20         lmadf.o\
21         noiseblanker.o\
22         oscillator.o\
23         ovsv.o\
24         ringb.o\
25         sdr.o\
26         sdrexport.o\
27         speechproc.o\
28         splitfields.o\
29         spottone.o\
30         thunk.o\
31         window.o\
32         update.o
33
34 jsdr:   main.o $(OBJ)
35         $(CC) -o jsdr main.o $(OBJ) $(LIBS)
36
37 $(OBJ): sdrexport.h
38
39 metermon:       metermon.o chan.o ringb.o bufvec.o cxops.o banal.o
40         $(CC) -o metermon metermon.o chan.o ringb.o bufvec.o cxops.o banal.o $(LIBS)
41
42 mkchan: mkchan.o bufvec.o banal.o cxops.o
43         $(CC) -o mkchan mkchan.o bufvec.o banal.o cxops.o $(LIBS)
44
45 ipc:
46         ./setup-ipc
47
48 obj:    $(OBJ)
49
50 clean:
51         /bin/rm *.o jsdr mkchan metermon $(staticlibname)
52
53 staticlib:      $(OBJ)
54         ar rcs $(staticlibname) $(OBJ)
55         ranlib $(staticlibname)
56
57 #CFLAGS = -fPIC -g -O3 -I. -I/usr/local/include
58 # sharedlibname=libDttSP.so
59 # sharedlibvers=0.0.1
60 # sharedlib=$(sharedlibname).$(sharedlibvers)
61 # sharedlib:    $(OBJ)
62 #       gcc -shared -Wl,-soname,$(sharedlib) -o $(sharedlib) $(OBJ) -lc