-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMakefile
51 lines (36 loc) · 1.29 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
# ##############################################################################
# User variables
# user variables can be specified in the environment or in a .config file
-include .config
# Where is the LITMUS^RT userspace library source tree?
LIBLITMUS ?= ../liblitmus
# Include default configuration from liblitmus
# Liblitmus must have been built before ft_tools can be built.
include ${LIBLITMUS}/inc/config.makefile
# all sources
vpath %.c src/
# local include files
CPPFLAGS += -Iinclude/
# ##############################################################################
# Targets
all = ftcat ft2csv ftdump ftsort st-dump st-job-stats
.PHONY: all clean
all: ${all}
clean:
rm -f ${all} *.o *.d
obj-ftcat = ftcat.o timestamp.o
ftcat: ${obj-ftcat}
obj-ft2csv = ft2csv.o timestamp.o mapping.o
ft2csv: ${obj-ft2csv}
obj-ftdump = ftdump.o timestamp.o mapping.o
ftdump: ${obj-ftdump}
obj-ftsort = ftsort.o timestamp.o mapping.o
ftsort: ${obj-ftsort}
obj-st-dump = stdump.o load.o eheap.o util.o
st-dump: ${obj-st-dump}
$(CC) $(LDFLAGS) -o $@ ${obj-st-dump} # $(LOADLIBES) $(LDLIBS)
obj-st-job-stats = job_stats.o load.o eheap.o util.o
st-job-stats: ${obj-st-job-stats}
$(CC) $(LDFLAGS) -o $@ ${obj-st-job-stats} # $(LOADLIBES) $(LDLIBS)
# dependency discovery
include ${LIBLITMUS}/inc/depend.makefile