aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: eb29c9a1542f5631470d496a07ed639c3f1d2a03 (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
25
26
27
CFLAGS=-std=c99 -Wall -O0 -c
CLM=clm
CLMFLAGS=-I CleanReadLine -l -lreadline -l compile.o
RUNFLAGS=-nr -nt

all: iclean

clean:
	rm -rf compile.o iclean "Clean System Files"
	make -C CleanReadLine clean

compile.o: compile.c
	$(CC) $(CFLAGS) compile.c

iclean: compile.o iclean.icl readline
	$(CLM) $(CLMFLAGS) iclean -o iclean

readline: FORCE
	make -C CleanReadLine

run: iclean
	./iclean $(RUNFLAGS)

FORCE:

.PHONY: FORCE clean run