Makefile 483 Bytes
Newer Older
Jeroen Vreeken's avatar
Jeroen Vreeken committed
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

LIBSRCS=sgp4sdp4.c sgp_in.c sgp_math.c sgp_obs.c sgp_time.c solar.c predictlib.c
LIBOBJS=$(LIBSRCS:.c=.o)
TESTSRCS=test-001.c test-002.c
TESTOBJS=$(TESTSRCS:.c=.o)

CFLAGS+=-Wall
LDFLAGS+=-lm

all: predictlib.a test-001 test-002 test-003

predictlib.a: predictlib.a($(LIBOBJS))

test-001: test-001.o predictlib.a

test-002: test-002.o predictlib.a

test-003: test-003.o predictlib.a

clean:
	rm -rf *.o *.a *.d test-001 test-002

SRCS=$(LIBSRCS) $(TESTSRCS)

include ../../build.mk