File: Makefile

package info (click to toggle)
linwsjt 0.4.7-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,356 kB
  • ctags: 1,896
  • sloc: cpp: 13,475; makefile: 417
file content (62 lines) | stat: -rw-r--r-- 1,676 bytes parent folder | download
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
BINDIR=debian/tmp/usr/bin

export CC := $(shell wx-config --cxx)

export LDFLAGS := $(shell wx-config --ldflags)
#export LDFLAGS := -g $(shell wx-config --ldflags)

export LIBS := -lfftw -lsndfile $(shell wx-config --libs)

export CFLAGS := -O2 -Wall -I.. $(shell wx-config --cxxflags)
#export CFLAGS := -O2 -Wall -march=pentium -I.. $(shell wx-config --cxxflags)
#export CFLAGS := -g -O2 -Wall -march=pentium -I.. $(shell wx-config --cxxflags)

all:		FSK441 JT44

FSK441:		fsk441gui/fsk441gui.a commongui/commongui.a common/common.a fsk441/fsk441.a
		$(CC) $(LDFLAGS) -o FSK441 fsk441gui/fsk441gui.a commongui/commongui.a fsk441/fsk441.a common/common.a $(LIBS)

JT44:		jt44gui/jt44gui.a commongui/commongui.a common/common.a jt44/jt44.a
		$(CC) $(LDFLAGS) -o JT44 jt44gui/jt44gui.a commongui/commongui.a jt44/jt44.a common/common.a $(LIBS)

JT6M:		jt6mgui/jt6mgui.a commongui/commongui.a common/common.a jt6m/jt6m.a
		$(CC) $(LDFLAGS) -o JT6M jt6mgui/jt6mgui.a commongui/commongui.a jt6m/jt6m.a common/common.a $(LIBS)

fsk441gui/fsk441gui.a:
		make -C fsk441gui

jt44gui/jt44gui.a:
		make -C jt44gui

jt6mgui/jt6mgui.a:
		make -C jt6mgui

commongui/commongui.a:
		make -C commongui

common/common.a:
		make -C common

fsk441/fsk441.a:
		make -C fsk441

jt44/jt44.a:
		make -C jt44

jt6m/jt6m.a:
		make -C jt6m

install:	FSK441 JT44
		install -g audio -o root -m 0775 FSK441 $(BINDIR)
		install -g audio -o root -m 0775 JT44 $(BINDIR)

clean:
		rm -f core FSK441 JT44 JT6M *.o *~ *.bak
		make -C common clean
		make -C fsk441 clean
		make -C fsk441gui clean
		make -C jt44 clean
		make -C jt44gui clean
		make -C jt6m clean
		make -C jt6mgui clean
		make -C commongui clean