-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
36 lines (19 loc) · 836 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
# Makefile
# Jonathan D. Stott <jonathan.stott@gmail.com>
CFLAGS=-Wall -g
core_trace: core_trace.o process_file_list.o read_file.o libtiptrace.a utils/string_list.o
$(CC) $(CFLAGS) -o $@ core_trace.o process_file_list.o read_file.o utils/string_list.o -L. -ltiptrace -lz -lm
utils/string_list.o: utils/string_list.c utils/string_list.h
process_file_list.o: process_file_list.c tip_trace_binary.h
read_file.o: read_file.c tip_trace_binary.h
libtiptrace.a: find_tips.o find_isoline.o calculate_tip_coordinates.o
$(AR) rcs $@ $^
# Make the components of the library
find_tips.o: find_tips.c tip_trace.h point_t.h
find_isoline.o: find_isoline.c point_t.h
calculate_tip_coordinates.o: calculate_tip_coordinates.c point_t.h
.PHONY: clean clobber
clean:
@rm -f *.o utils/*.o
clobber: clean
@rm -f core_trace libtiptrace.a