aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 4cbd9d9f07f036d6663415ed30b058be0c864ef3 (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
CLM:=clm
CLMFLAGS:=-IL Platform -nr -nt

BIN:=sjit

all: $(BIN)

test: $(BIN)
	./$<

$(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

.PHONY: all test clean

.FORCE: