-
Notifications
You must be signed in to change notification settings - Fork 23
/
Makefile
38 lines (26 loc) · 630 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
# mx-queued Makefile
# Copyright(c) YukChung Li
DEBUG?= -g
CFLAGS?= -std=c99 -pedantic -O2 -Wall -W -DSDS_ABORT_ON_OOM -llua -lm -ldl
CCOPT= $(CFLAGS)
OBJ = main.o ae.o hash.o skiplist.o db.o utils.o lua.o
PRGNAME = mx-queued
all: server
server: $(OBJ)
$(CC) -o $(PRGNAME) $(DEBUG) $(OBJ) $(CCOPT)
main.o: main.c global.h
$(CC) -c main.c
utils.o: utils.c utils.h
$(CC) -c utils.c
ae.o: ae.c ae.h
$(CC) -c ae.c
skiplist.o: skiplist.c skiplist.h
$(CC) -c skiplist.c
hash.o: hash.c hash.h list.h
$(CC) -c hash.c
db.o: db.c global.h
$(CC) -c db.c
lua.o: lua.c global.h
$(CC) -c lua.c
clean:
rm -rf $(PRGNAME) *.o