]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Copyright (c) 2013 No Face Press, LLC | |
3 | # License http://opensource.org/licenses/mit-license.php MIT License | |
4 | # | |
5 | ||
6 | #This makefile is used to test the other Makefiles | |
7 | ||
8 | ||
9 | PROG = hello | |
10 | SRC = hello.c | |
11 | ||
12 | TOP = ../.. | |
13 | CIVETWEB_LIB = libcivetweb.a | |
14 | ||
15 | CFLAGS = -I$(TOP)/include $(COPT) | |
16 | LIBS = -lpthread | |
17 | ||
18 | include $(TOP)/resources/Makefile.in-os | |
19 | ||
20 | ifeq ($(TARGET_OS),LINUX) | |
21 | LIBS += -ldl | |
22 | endif | |
23 | ||
24 | all: $(PROG) | |
25 | ||
26 | $(PROG): $(CIVETWEB_LIB) $(SRC) | |
27 | $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(SRC) $(CIVETWEB_LIB) $(LIBS) | |
28 | ||
29 | $(CIVETWEB_LIB): | |
30 | $(MAKE) -C $(TOP) clean lib | |
31 | cp $(TOP)/$(CIVETWEB_LIB) . | |
32 | ||
33 | clean: | |
34 | rm -f $(CIVETWEB_LIB) $(PROG) | |
35 | ||
36 | .PHONY: all clean |