aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 3ae9509b8c8065cdbbe57fba2605295e8e72cb90 (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
CFLAGS=-O0 -Wall -std=c99
CLM=clm
CLMFLAGS=-I $$CLEAN_HOME/lib/StdEnv \
		 -I $$CLEAN_HOME/lib/clean-platform/OS-Independent \
		 -I $$CLEAN_HOME/lib/Generics \
		 -I $$CLEAN_HOME/lib/Dynamics \
		 -dynamics

all: test Clean\ System\ Files/cleanregex.o

Clean\ System\ Files/cleanregex.o: cleanregex.c cleanregex.h
	mkdir -p Clean\ System\ Files
	$(CC) $(CFLAGS) -c $< -o "$@"

test: test.icl Regex.dcl Regex.icl Clean\ System\ Files/cleanregex.o
	$(CLM) $(CLMFLAGS) $@ -o $@

run_test: test
	./test

clean:
	rm -frv Clean\ System\ Files test

.PHONY: all clean run_test