aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: ae85740434cb35a1a1a3b00e6055650d904c95df (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:=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: