forked from mutability/dump978
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
33 lines (23 loc) · 869 Bytes
/
Makefile
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
CFLAGS+=-O2 -D_GNU_SOURCE -std=c11 -g -D_DEFAULT_SOURCE -Wall -Werror -Ifec
LDFLAGS=
LIBS=-lm
CC=gcc
all: dump978 uat2json uat2text uat2esnt extract_nexrad
%.o: %.c *.h
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
dump978: dump978.o fec.o fec/decode_rs_char.o fec/init_rs_char.o
$(CC) -g -o $@ $^ $(LDFLAGS) $(LIBS)
uat2json: uat2json.o uat_decode.o reader.o
$(CC) -g -o $@ $^ $(LDFLAGS) $(LIBS)
uat2text: uat2text.o uat_decode.o reader.o
$(CC) -g -o $@ $^ $(LDFLAGS) $(LIBS)
uat2esnt: uat2esnt.o uat_decode.o reader.o
$(CC) -g -o $@ $^ $(LDFLAGS) $(LIBS)
extract_nexrad: extract_nexrad.o uat_decode.o reader.o
$(CC) -g -o $@ $^ $(LDFLAGS) $(LIBS)
fec_tests: fec_tests.o fec.o fec/decode_rs_char.o fec/init_rs_char.o
$(CC) -g -o $@ $^ $(LDFLAGS) $(LIBS)
test: fec_tests
./fec_tests
clean:
rm -f *~ *.o fec/*.o dump978 uat2json uat2text uat2esnt fec_tests