]> git.rkrishnan.org Git - dttsp.git/blob - jDttSP/Makefile
8130ea60271c70a17340f8982f5d24a9d01026f8
[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 -lgsl -lgslcblas -lfftw -lm
4 #LIBS = -lefence -L/usr/local/lib -ljack -lpthread -lgsl -lgslcblas -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         meter.o\
22         noiseblanker.o\
23         oscillator.o\
24         ovsv.o\
25         ringb.o\
26         sdr.o\
27         sdrexport.o\
28         spectrum.o\
29         speechproc.o\
30         splitfields.o\
31         spottone.o\
32         thunk.o\
33         window.o\
34         update.o
35
36 KOBJ = oscillator.o cwtones.o chan.o ringb.o banal.o bufvec.o splitfields.o cxops.o
37
38 jsdr:   main.o $(OBJ)
39         $(CC) -o jsdr main.o $(OBJ) $(LIBS)
40
41 all:    jsdr ipc metermon specmon keyd keyb
42
43 keyd:   keyd.o keyer.o $(KOBJ)
44         $(CC) -o keyd keyd.o keyer.o $(KOBJ) $(LIBS)
45
46 keyb:   keyb.o keyer.o $(KOBJ)
47         $(CC) -o keyb keyb.o keyer.o $(KOBJ) $(LIBS)
48
49
50 $(OBJ): sdrexport.h
51
52 metermon:       metermon.o 
53         $(CC) -o metermon metermon.o $(LIBS)
54
55 specmon:        specmon.o 
56         $(CC) -o specmon specmon.o $(LIBS)
57
58 ipc:    
59         ./setup-ipc
60
61 obj:    $(OBJ)
62
63 clean:
64         /bin/rm *.o jsdr keyb keyd metermon #$(staticlibname)
65         #/bin/rm IPC/*
66
67 staticlib:      $(OBJ)
68         ar rcs $(staticlibname) $(OBJ)
69         ranlib $(staticlibname)
70
71 #mkchan:        mkchan.o bufvec.o banal.o cxops.o
72 #       $(CC) -o mkchan mkchan.o bufvec.o banal.o cxops.o $(LIBS)
73
74 #CFLAGS = -fPIC -g -O3 -I. -I/usr/local/include
75 # sharedlibname=libDttSP.so
76 # sharedlibvers=0.0.1
77 # sharedlib=$(sharedlibname).$(sharedlibvers)
78 # sharedlib:    $(OBJ)
79 #       gcc -shared -Wl,-soname,$(sharedlib) -o $(sharedlib) $(OBJ) -lc
80