]> git.rkrishnan.org Git - dttsp.git/blob - jDttSP/Makefile
No need to see emacs backup files :-)
[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         dcblock.o\
17         digitalagc.o\
18         fastrig.o\
19         filter.o\
20         fm_demod.o\
21         lmadf.o\
22         meter.o\
23         noiseblanker.o\
24         oscillator.o\
25         ovsv.o\
26         ringb.o\
27         sdr.o\
28         sdrexport.o\
29         spectrum.o\
30         speechproc.o\
31         splitfields.o\
32         spottone.o\
33         thunk.o\
34         window.o\
35         wscompand.o\
36         update.o
37
38 KOBJ = oscillator.o cwtones.o chan.o ringb.o banal.o bufvec.o splitfields.o cxops.o
39
40 jsdr:   main.o $(OBJ)
41         $(CC) -o jsdr main.o $(OBJ) $(LIBS)
42
43 all:    jsdr ipc metermon specmon keyd keyb
44
45 keyd:   keyd.o keyer.o keyerio.o $(KOBJ)
46         $(CC) -o keyd keyd.o keyer.o keyerio.o $(KOBJ) $(LIBS)
47
48 keyb:   keyb.o keyer.o keyerio.o $(KOBJ)
49         $(CC) -o keyb keyb.o keyer.o $(KOBJ) $(LIBS)
50
51
52
53 $(OBJ): sdrexport.h
54
55 metermon:       metermon.o 
56         $(CC) -o metermon metermon.o $(LIBS)
57
58 specmon:        specmon.o 
59         $(CC) -o specmon specmon.o $(LIBS)
60
61 ipc:    
62         ./setup-ipc
63
64 obj:    $(OBJ)
65
66 clean:
67         /bin/rm *.o jsdr keyb keyd metermon #$(staticlibname)
68         #/bin/rm IPC/*
69
70 staticlib:      $(OBJ)
71         ar rcs $(staticlibname) $(OBJ)
72         ranlib $(staticlibname)
73
74 #mkchan:        mkchan.o bufvec.o banal.o cxops.o
75 #       $(CC) -o mkchan mkchan.o bufvec.o banal.o cxops.o $(LIBS)
76
77 #CFLAGS = -fPIC -g -O3 -I. -I/usr/local/include
78 # sharedlibname=libDttSP.so
79 # sharedlibvers=0.0.1
80 # sharedlib=$(sharedlibname).$(sharedlibvers)
81 # sharedlib:    $(OBJ)
82 #       gcc -shared -Wl,-soname,$(sharedlib) -o $(sharedlib) $(OBJ) -lc
83
84 keybun: keybun.o keyer.o keyerio.o $(KOBJ)
85         $(CC) -o keybun keybun.o keyer.o $(KOBJ) $(LIBS)
86