aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 7d9a4aeecf7ae07d91b4c719a58eb381b1212d75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
CLM:=clm
CLMFLAGS:=-IL Platform -nr -nt
override CFLAGS:=-Wall -Wextra -Werror -Ofast $(CFLAGS)

BIN:=isjit

all: $(BIN)

test: $(BIN) .FORCE
	./test.sh

$(BIN): %: %.icl Clean\ System\ Files/sjit_c.o .FORCE
	$(CLM) $(CLMFLAGS) $@ -o $@

Clean\ System\ Files/sjit_c.o: sjit_c.c
	mkdir -p Clean\ System\ Files
	$(CC) $(CFLAGS) -c $< -o '$@'

clean:
	$(RM) -r $(BIN) Clean\ System\ Files Sjit/Clean\ System\ Files

.PHONY: all test clean

.FORCE: