Makefile 547 Bytes
Newer Older
1
SHELL:=/bin/bash
Camil Staps's avatar
Camil Staps committed
2
BIN:=testproperties
Camil Staps's avatar
Camil Staps committed
3 4 5 6 7

.PHONY: all clean

all: $(BIN)

Camil Staps's avatar
Camil Staps committed
8
$(BIN): %: %.prj compiler .FORCE
9
	cpm $<
Camil Staps's avatar
Camil Staps committed
10

11 12 13
$(addsuffix .prj,$(BIN)): %.prj: %.prj.default
	cp $^ $@

Camil Staps's avatar
Camil Staps committed
14 15 16 17 18
compiler: .FORCE
	$(MAKE) -C compiler/main/Unix
	$(MAKE) -C compiler/backendC/CleanCompilerSources -f Makefile.linux64
	mkdir -p compiler/backend/Clean\ System\ Files
	ln -fs ../../backendC/CleanCompilerSources/backend.a compiler/backend/Clean\ System\ Files/backend_library
Camil Staps's avatar
Camil Staps committed
19 20

clean:
21
	shopt -s globstar; $(RM) -r **/Clean\ System\ Files $(BIN) $(addsuffix .prj,$(BIN))
Camil Staps's avatar
Camil Staps committed
22 23

.FORCE: