aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 4babffe7a59a820e6726932c7f8152a264251d2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CFLAGS=-O0 -Wall -std=c99
CLM=clm
CLMFLAGS=-I /opt/clean/lib/StdLib/ -l -lpcre2-8

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

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

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

run_test: test
	./test

clean:
	rm -frv Clean\ System\ Files test

.PHONY: all clean run_test