Makefile 616 Bytes
Newer Older
Camil Staps's avatar
Camil Staps committed
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
28
29
CLM:=clm
BACKEND_LIBS:=\
	-I backend\
	-I backend/Cloogle\
	-I backend/Cloogle/libcloogle\
	-I backend/Cloogle/CleanRegex\
	-IL Platform
CLMFLAGS:=$(BACKEND_LIBS) -nr -nt

BACKEND_BIN:=builtin_syntax
BACKEND_TEST:=$(addprefix test_,$(BACKEND_BIN))

test: $(BACKEND_TEST) test_properties

$(BACKEND_TEST): test_%: backend/test/%
	./$<

$(addprefix backend/test/,$(BACKEND_BIN)): .FORCE
	$(CLM) -I $(dir $@) $(CLMFLAGS) $(notdir $@) -o $@

test_properties: .FORCE
	cleantest \
		--hide start \
		--run testproperties \
		$(addprefix -O ,-d backend $(BACKEND_LIBS) -P OutputTestEvents -r)

.FORCE:

.PHONY: test .FORCE