We planned to upgrade GitLab and Mattermost to the latest version this Friday morning (early). You may experience some downtime!

Makefile 977 Bytes
Newer Older
Camil Staps's avatar
Camil Staps committed
1
BIN:=builddb CloogleServer
2
DB=types.json
Camil Staps's avatar
Camil Staps committed
3
CLM:=clm
4
CLMFLAGS:=-h 250M -nr -nortsopts\
5 6 7
	-IL TCPIP\
	-IL Platform\
	-IL Platform/Deprecated/ArgEnv\
8
	-I Cloogle\
Camil Staps's avatar
Camil Staps committed
9
	-I Cloogle/libcloogle\
Camil Staps's avatar
Camil Staps committed
10
	-I Cloogle/CleanRegex
11 12 13
ifeq "$(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 6)" "1"
	CLMFLAGS+=-l -no-pie
endif
14

Camil Staps's avatar
Camil Staps committed
15
.PHONY: all clean distclean .FORCE
16

17
all: $(BIN) $(DB)
18

19 20
man: $(MAN)

Camil Staps's avatar
Camil Staps committed
21
CloogleServer: .FORCE
Camil Staps's avatar
Camil Staps committed
22
	$(CLM) $(CLMFLAGS) $@ -o $@
Camil Staps's avatar
Camil Staps committed
23
	find -name '*.[di]cl' -not -path './Cloogle/clean-compiler/*' -exec touch {} \;
24
	$(CLM) $(CLMFLAGS) $@ -o $@
25

Camil Staps's avatar
Camil Staps committed
26
builddb: Cloogle/clean-compiler .FORCE
27
	$(CLM) $(CLMFLAGS) -s 50M -h 750M -gcm\
28 29 30 31
		-I Cloogle/clean-compiler/frontend\
		-I Cloogle/clean-compiler/backend\
		-I Cloogle/clean-compiler/main\
		-I Cloogle/clean-compiler/main/Unix\
Camil Staps's avatar
Camil Staps committed
32 33
		$@ -o $@

Camil Staps's avatar
Camil Staps committed
34
Cloogle/clean-compiler: .FORCE
35 36
	$(MAKE) -C Cloogle clean-compiler

37
$(DB): builddb
Camil Staps's avatar
Camil Staps committed
38
	./$< > $(DB)
39 40

clean:
41
	$(RM) -r **/Clean\ System\ Files $(BIN) $(MAN) $(DB)
42 43 44

distclean: clean
	$(RM) -r clean-compiler
Camil Staps's avatar
Camil Staps committed
45 46

.FORCE: