-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (29 loc) · 925 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
41
.POSIX:
# Preset portable default build options. Override by either assigning some of
# those directly as part of the "make" command-line arguments. Or export
# environment variables of the same names, plus "export MAKEFLAGS=e" also.
CPPFLAGS = -D NDEBUG
CFLAGS = -O
LDFLAGS = -s
OBJECTS = $(SOURCES:.c=.o)
TARGETS = $(OBJECTS:.o=)
LIBS = $(LIB_1_SUBDIR)/lib$(LIB_1_SUBDIR).a -lpthread
LIB_1_SUBDIR = fragments
LIB_1_INC_SUBDIR = include
.PHONY: all clean
include sources.mk
all: $(TARGETS)
clean:
-cd $(LIB_1_SUBDIR) && $(MAKE) clean
-rm $(TARGETS) $(OBJECTS)
COMBINED_CFLAGS= $(CPPFLAGS) $(CFLAGS)
AUG_CFLAGS = \
$(COMBINED_CFLAGS) -pthread \
-I $(LIB_1_SUBDIR)/$(LIB_1_INC_SUBDIR)
.c.o:
$(CC) $(AUG_CFLAGS) -c $<
include dependencies.mk
include targets.mk
$(LIBS):
for lib in $@; do (cd "`dirname "$$lib"`" && $(MAKE)); done
include maintainer.mk # Rules not required for just building the application.