-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
52 lines (43 loc) · 891 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
42
43
44
45
46
47
48
49
50
51
52
.SUFFIXES: .c .o
.DEFAULT: all
TARGET=libtools.so
PLATFORM=
CC=gcc
ifeq (${CC},arm-linux-g++)
PLATFORM=-D__ARM__
endif
DEBUG=-D_DEBUG
DLD=
LIBS=
CFLAGS= -g -Wall -O0 -fPIC
INCLUDE=
SRC=./assert/assert.c \
./except/except.c \
./arith/arith.c \
./stack/stack.c \
./atom/atom.c \
./arena/arena.c \
./list/list.c \
./table/table.c \
./set/set.c \
./array/array.c \
./ring/ring.c \
./bit/bit.c \
./str/str.c \
./text/text.c \
./format/format.c \
./mem/mem.c \
./ap/ap.c \
./xp/xp.c \
./mp/mp.c
OBJS=${SRC:.c=.o}
${TARGET}:${OBJS}
${CC} ${PLATFORM} ${DEBUG} ${OBJS} $(DLD) -o ${TARGET} ${LIBS} -shared
@echo ${TARGET} "build success"
.c.o:
# ${CC} -E -c $< -o [email protected]
${CC} ${PLATFORM} ${DEBUG} ${INCLUDE} -c $< ${CFLAGS} -o $@
.PHONY:clean
clean:
@rm -f ${TARGET} ${OBJS}
@echo ${OBJS} ${TARGET} " clean success"