-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (25 loc) · 730 Bytes
/
Makefile
File metadata and controls
32 lines (25 loc) · 730 Bytes
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
# Macros
PRG = sctracker
OBJ = main.o tf.o planet.o spacecraft.o geocoord.o tracker.o despatch.o pass.o
INCLUDE = -I eigen-eigen-6b38706d90a9
CFLAGS = -g -Wall -march=native -O3
LFLAGS = -lm
CC = g++ $(CFLAGS)
# Primary target
$(PRG) : $(OBJ)
$(CC) -o $@ $^ $(INCLUDE) $(LFLAGS)
# Suffix rule
.cpp.o :
$(CC) -c $< $(INCLUDE)
# Target for cleaning files
clean :
rm -f $(PRG) $(OBJ)
# Dependencies
main.o: main.cpp despatch.h
tf.o: tf.cpp tf.h
planet.o: planet.cpp planet.h tf.h
spacecraft.o: spacecraft.cpp spacecraft.h tf.h planet.h
geocoord.o: geocoord.cpp spacecraft.h tf.h planet.h
tracker.o: tracker.cpp tracker.h tf.h planet.h spacecraft.h
despatch.o: despatch.cpp despatch.h tf.h tracker.h
pass.o: pass.cpp pass.h