picrin/lib/Makefile

53 lines
796 B
Makefile
Raw Normal View History

2017-04-14 10:58:02 -04:00
LIBPICRIN_SRCS = \
2017-04-29 11:23:38 -04:00
attr.c\
2017-04-14 10:58:02 -04:00
blob.c\
bool.c\
char.c\
data.c\
dict.c\
gc.c\
number.c\
pair.c\
proc.c\
record.c\
state.c\
string.c\
symbol.c\
2017-05-05 23:53:20 -04:00
value.c\
2017-04-14 10:58:02 -04:00
var.c\
vector.c\
2017-04-25 01:08:37 -04:00
ext/cont.c\
2017-04-14 10:58:02 -04:00
ext/eval.c\
2017-05-12 08:49:03 -04:00
ext/port.c\
2017-04-14 10:58:02 -04:00
ext/read.c\
ext/write.c\
ext/file.c\
ext/error.c
2017-04-14 10:58:02 -04:00
LIBPICRIN_OBJS = \
$(LIBPICRIN_SRCS:.c=.o)
LIBPICRIN_HEADERS = \
include/picrin.h\
include/picconf.h\
include/picrin/extra.h\
include/picrin/setup.h\
khash.h\
object.h\
2017-05-05 23:53:20 -04:00
value.h\
2017-04-14 10:58:02 -04:00
state.h
2017-04-25 01:08:37 -04:00
override CFLAGS += -I./include -Wall -Wextra -g
2017-04-14 10:58:02 -04:00
2017-04-15 02:45:28 -04:00
mini-picrin: ext/main.o libpicrin.a
$(CC) $(CFLAGS) -o $@ ext/main.o libpicrin.a
2017-04-14 10:58:02 -04:00
2017-04-15 02:45:28 -04:00
libpicrin.a: $(LIBPICRIN_OBJS)
$(AR) $(ARFLAGS) $@ $(LIBPICRIN_OBJS)
2017-04-14 12:33:18 -04:00
2017-04-14 10:58:02 -04:00
$(LIBPICRIN_OBJS): $(LIBPICRIN_HEADERS)
clean:
2017-04-15 02:45:28 -04:00
$(RM) $(LIBPICRIN_OBJS) ext/main.o mini-picrin libpicrin.a
2017-04-14 10:58:02 -04:00
.PHONY: clean