-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
60 lines (46 loc) · 1.24 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
52
53
54
55
56
57
58
59
60
CC=mpicc
CFLAGS=-O3 -g
LDFLAGS=-lm -lpthread
LD=$(CC)
# conditional flags
CONFIG_CFLAGS=-I.
CONFIG_LDFLAGS=
# pick up debug mode option
DEBUG_CFLAGS-$(CONFIG_DEBUG) = -DCONFIG_DEBUG
CONFIG_CFLAGS += $(DEBUG_CFLAGS-y)
# Run in quiet mode
Q=@
ECHO=echo
MAKE=make
RM=rm
APPLICATION_EXECUTABLES=
APPLICATION_OBJECTS=
LIBRARY_OBJECTS=
# first target
all:
include engine/thorium/Makefile.mk
include genomics/Makefile.mk
include core/Makefile.mk
# performance apps.
include performance/Makefile.mk
# tracepoints
include tracepoints/Makefile.mk
# include these after the library Makefile.mk files
include tests/Makefile.mk
include examples/Makefile.mk
include applications/Makefile.mk
# generic build rule
%.o: %.c
#$(Q)$(ECHO) " CFLAGS= $(CFLAGS) $(CONFIG_CFLAGS)"
$(Q)$(ECHO) " CC $@"
$(Q)$(CC) $(CFLAGS) $(CONFIG_CFLAGS) -c $< -o $@
all: $(TEST_EXECUTABLES) $(EXAMPLE_EXECUTABLES) $(APPLICATION_EXECUTABLES)
clean:
$(Q)$(ECHO) " RM"
$(Q)$(RM) -f $(LIBRARY_OBJECTS)
$(Q)$(RM) -f $(TEST_LIBRARY_OBJECTS)
$(Q)$(RM) -f $(TEST_OBJECTS) $(TEST_EXECUTABLES)
$(Q)$(RM) -f $(EXAMPLE_OBJECTS) $(EXAMPLE_EXECUTABLES)
$(Q)$(RM) -f $(APPLICATION_OBJECTS) $(APPLICATION_EXECUTABLES)
$(Q)$(RM) -f tracepoints/lttng/*.{o,h,c}
$(Q)$(RM) -f tests.log* *.junit.xml *.log