-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
40 lines (29 loc) · 981 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
34
35
36
37
38
39
40
include Makefile.preamble
DEBUGOBJS= debug.o threejet.o threejetvec.o spline.o figureeight.o
SPHEREOBJS= sphere.o evert.o threejet.o threejetvec.o spline.o figureeight.o twojet.o twojetvec.o
.SUFFIXES: .o .c .m .C
.C.o:
$(CC) $(CFLAGS) -c ${@:o=C}
evert: $(SPHEREOBJS)
$(CC) $(CFLAGS) $(SPHEREOBJS) $(LIBS) -o evert
debug: $(DEBUGOBJS)
$(CC) $(CFLAGS) $(DEBUGOBJS) $(LIBS) -o debug
test.000: jet
-rm test.???
jet
jet: jet.o
$(CC) $(CFLAGS) jet.o $(LIBS) -o jet
npp: npp.c
$(CC) $(CFLAGS) -o npp npp.c
clean:
rm -f $(SPHEREOBJS) $(DEBUGOBJS) debug evert
manual:
latex manual
sphere.o: spline.h figureeight.h threejetvec.h threejet.h
twojet.o: twojet.h threejet.h
twojetvec.o: twojetvec.h twojet.h threejet.h
threejet.o: threejet.h
threejetvec.o: threejetvec.h threejet.h
spline.o: spline.h threejetvec.h threejet.h twojet.h
figureeight.o: figureeight.h threejetvec.h threejet.h twojet.h
evert.o: spline.h threejetvec.h threejet.h evert.h figureeight.h twojet.h