-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.in
40 lines (31 loc) · 1016 Bytes
/
Makefile.in
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
HTTP_PARSER_PATH = @http_parser_path@
PCRE_PATH = @pcre_path@
EV_PATH = @libev_path@
CC = gcc
CFLAGS = --std=gnu99 -ggdb -Wall -fPIC
CPPFLAGS = -I$(HTTP_PARSER_PATH)/ -I$(PCRE_PATH)/include -I$(EV_PATH)/include -D_GNU_SOURCE
LDFLAGS = -Wl,-rpath $(PCRE_PATH)/lib/ -Wl,-rpath $(EV_PATH)/lib/ -Wl,-rpath .
SO_SUFFIX = @so_suffix@
LIBS = $(HTTP_PARSER_PATH)/http_parser.o $(PCRE_PATH)/lib/libpcre$(SO_SUFFIX) $(EV_PATH)/lib/libev$(SO_SUFFIX) @libdl@
OBJS = message.o server.o request.o templates.o builtin.o plugin.o route.o response.o util.o
go: martin$(SO_SUFFIX) main.o
gcc -o go $(LDFLAGS) main.o martin$(SO_SUFFIX) $(LIBS)
martin$(SO_SUFFIX): $(OBJS)
gcc -o martin$(SO_SUFFIX) -shared $(OBJS) $(LIBS)
#routes.o: routes.c
#routes.c: routes.txt
# perl genroutes.pl routes.txt > routes.c
clean:
rm -f go
rm -f *.o
rm -f *$(SO_SUFFIX)
distclean: clean
rm Makefile
(cd test; make clean)
rm test/Makefile
rm -rf autom4te.cache
rm config.h
rm version.h
rm config.log
rm config.status
rm configure