forked from sebhtml/biosal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (39 loc) · 1.04 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
CC=mpicc
CFLAGS=-O3 -g -I.
CONFIG_FLAGS=
LDFLAGS=-lm -lz
LD=$(CC)
# Run in quiet mode
Q=@
ECHO=echo
MAKE=make
RM=rm
# first target
all:
include engine/thorium/Makefile.mk
include genomics/Makefile.mk
include core/Makefile.mk
LIBRARY_OBJECTS=
LIBRARY_OBJECTS += $(THORIUM_OBJECTS)
LIBRARY_OBJECTS += $(GENOMICS_OBJECTS)
LIBRARY_OBJECTS += $(CORE_OBJECTS)
# include these after the library
include tests/Makefile.mk
include examples/Makefile.mk
APPLICATION_EXECUTABLES=
APPLICATION_OBJECTS=
include performance/Makefile.mk
include applications/Makefile.mk
# generic build rule
%.o: %.c
#$(Q)$(ECHO) " CFLAGS= $(CFLAGS) $(CONFIG_FLAGS)"
$(Q)$(ECHO) " CC $@"
$(Q)$(CC) $(CFLAGS) $(CONFIG_FLAGS) -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)