-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 872 Bytes
/
Makefile
File metadata and controls
36 lines (27 loc) · 872 Bytes
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
CFLAGS ?= -O2 -Wall
# Flags required for the JIT to work.
#
# The user is expected to have:
# - put `yk-config` in the `PATH`
# - set `YK_BUILD_TYPE` to either `debug` or `release`.
CC=`yk-config ${YK_BUILD_TYPE} --cc`
YK_CFLAGS=`yk-config ${YK_BUILD_TYPE} --cflags --cppflags`
YK_LDFLAGS=`yk-config ${YK_BUILD_TYPE} --ldflags --libs`
all: bf_base bf_simple_yk bf_simple2_yk
bf_base: bf_base.o
${CC} ${LDFLAGS} -o $@ $<
bf_simple_yk.o: bf_simple_yk.c
${CC} ${CFLAGS} ${YK_CFLAGS} -c -o $@ $<
bf_simple_yk: bf_simple_yk.o
${CC} ${YK_LDFLAGS} ${LDFLAGS} -o $@ $<
bf_simple2_yk.o: bf_simple2_yk.c
${CC} ${CFLAGS} ${YK_CFLAGS} -c -o $@ $<
bf_simple2_yk: bf_simple2_yk.o
${CC} ${YK_LDFLAGS} ${LDFLAGS} -o $@ $<
.PHONY: test
test: all
cd lang_tests && cargo test
clean:
rm -f bf_base bf_base.o \
bf_simple_yk bf_simple_yk.o \
bf_simple2_yk bf_simple2_yk.o