Makefile 3.33 KB
Newer Older
1
2
include ../build.mk

3
CFLAGS= -Wall -g -I../../common/utils -I../controller -Iaalib -Ipredictlib -I../../common/trace -I../../common/include -I../../libnova-0.13.0/src
4
ARCHIVES= ../../common/utils/utils.a aalib/aalib.a predictlib/predictlib.a ../../common/trace/trace.a
5
LIBNOVA=../../libnova-0.13.0/src/.libs/libnova.a
Jeroen Vreeken's avatar
Jeroen Vreeken committed
6
7
8
   
LDFLAGS+=`pkg-config --libs glib-2.0`

9
10
11
12
all: aalib predictlib\
	setpoint.o console_easycomm console_joystick command_shell \
	spg_list spg_log_parser \
	console_moontracker \
Jeroen Vreeken's avatar
Jeroen Vreeken committed
13
14
	console_httptrace \
	trace_proxy trace.cgi_install trace_log \
15
16
17
18
19
	console_j2000tracker console_j2000tracer console_j2000_indi \
	log_proxy spg_auth console_idle console_zenith \
	console_suntracker console_azel console_manual \
	console_weather \
	await_controller \
Jeroen Vreeken's avatar
Jeroen Vreeken committed
20
21
22
	console_sattracker \
	status.cgi_install command.cgi_install shell.cgi_install

23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

await_controller: await_controller.o $(ARCHIVES)

console_easycomm: console_easycomm.o setpoint.o $(ARCHIVES)

console_httptrace: console_httptrace.o $(ARCHIVES)

console_joystick: console_joystick.o setpoint.o $(ARCHIVES)

command_shell: command_shell.o setpoint.o $(ARCHIVES)

spg_list: spg_list.o $(ARCHIVES)

spg_log_parser: spg_log_parser.o $(ARCHIVES)

console_moontracker: console_moontracker.o setpoint.o $(ARCHIVES) -lm -lpthread

40
console_j2000tracker: console_j2000tracker.o setpoint.o $(ARCHIVES) $(LIBNOVA) -lpthread -lm
41

42
console_j2000tracer: console_j2000tracer.o $(ARCHIVES) $(LIBNOVA) -lm
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59

console_j2000_indi: console_j2000_indi.o $(ARCHIVES) -lindi -lindidriver -lm

console_azel: console_azel.o setpoint.o $(ARCHIVES)

console_manual: console_manual.o setpoint.o $(ARCHIVES)

console_suntracker: console_suntracker.o setpoint.o $(ARCHIVES) -lm -lpthread

console_idle: console_idle.o setpoint.o $(ARCHIVES)

console_weather: console_weather.o $(ARCHIVES) -lpthread

console_zenith: console_zenith.o setpoint.o $(ARCHIVES)

trace_proxy: trace_proxy.o $(ARCHIVES)

Jeroen Vreeken's avatar
Jeroen Vreeken committed
60
trace.cgi: trace.cgi.o $(ARCHIVES)
61

Jeroen Vreeken's avatar
Jeroen Vreeken committed
62
63
64
trace.cgi_install: trace.cgi
	@echo "   CP  trace.cgi"
	@cp trace.cgi ../htdocs
65
66
67
68
69
70
71
72


trace_log: trace_log.o $(ARCHIVES)

log_proxy: log_proxy.o $(ARCHIVES)

spg_auth: spg_auth.o setpoint.o $(ARCHIVES)

73
console_sattracker: console_sattracker.o setpoint.o $(ARCHIVES) -lpthread $(LIBNOVA) -lm
74

Jeroen Vreeken's avatar
Jeroen Vreeken committed
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
command.cgi: command.cgi.o $(ARCHIVES)

command.cgi_install: command.cgi
	@echo "   CP  command.cgi"
	@cp command.cgi ../htdocs

shell.cgi: shell.cgi.o $(ARCHIVES)

shell.cgi_install: shell.cgi
	@echo "   CP  shell.cgi"
	@cp shell.cgi ../htdocs

status.cgi: status.cgi.o $(ARCHIVES)

status.cgi_install: status.cgi
	@echo "   CP  status.cgi"
	@cp status.cgi ../htdocs

93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
aalib:
	@$(MAKE) -C aalib

doc:
	@$(MAKE) -C doc

predictlib:
	@$(MAKE) -C predictlib

.PHONY: aalib doc predictlib

clean:
	rm -f *.o *.d
	rm -f \
	    command_shell \
	    console_joystick \
	    console_easycomm \
	    spg_list \
	    console_httptrace \
	    trace_proxy \
	    console_manual \
	    console_moontracker \
	    console_suntracker \
	    console_j2000tracker \
	    console_j2000tracer \
	    console_j2000_indi \
	    console_azel \
	    console_idle \
	    console_sattracker \
	    console_weather \
	    console_zenith \
	    trace_proxy \
Jeroen Vreeken's avatar
Jeroen Vreeken committed
125
	    trace.cgi \
126
127
128
129
	    trace_log \
	    log_proxy \
	    spg_auth \
	    spg_log_parser \
Jeroen Vreeken's avatar
Jeroen Vreeken committed
130
131
132
	    await_controller \
	    command.cgi \
	    status.cgi
133
134
135
136
	$(MAKE) -C aalib clean
	$(MAKE) -C doc clean
	$(MAKE) -C predictlib clean