Makefile 763 Bytes
Newer Older
Florian Wittkamp's avatar
Florian Wittkamp committed
1
default: ../ IFOS2D
tilman.metz's avatar
tilman.metz committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

.PHONY: aff
aff: 
	$(MAKE) -C ../contrib/aff install

.PHONY: fourier
fourier:
	$(MAKE) -C ../contrib/fourier install

.PHONY: stfinv
stfinv:
	$(MAKE) -C ../contrib/stfinv install

.PHONY: libcseife
libcseife:
	$(MAKE) -C ../contrib/libcseife install


Florian Wittkamp's avatar
Florian Wittkamp committed
20 21
.PHONY: IFOS2D 
IFOS2D: aff fourier stfinv libcseife
tilman.metz's avatar
tilman.metz committed
22
ifdef MODEL
Florian Wittkamp's avatar
Florian Wittkamp committed
23
	$(MAKE) -C ../src/ IFOS2D MODEL=$(MODEL)
tilman.metz's avatar
tilman.metz committed
24
else
Florian Wittkamp's avatar
Florian Wittkamp committed
25
	$(MAKE) -C ../src/ IFOS2D 
tilman.metz's avatar
tilman.metz committed
26 27
endif

Florian Wittkamp's avatar
Florian Wittkamp committed
28
.PHONY: install
29
install: clean-bin IFOS2D
tilman.metz's avatar
tilman.metz committed
30 31 32

.PHONY: clean
clean: 
Florian Wittkamp's avatar
Florian Wittkamp committed
33
	rm -rf ../bin/*
tilman.metz's avatar
tilman.metz committed
34 35 36 37 38
	$(MAKE) -C ../contrib/aff clean
	$(MAKE) -C ../contrib/fourier clean
	$(MAKE) -C ../contrib/stfinv clean
	$(MAKE) -C ../contrib/libcseife clean
	$(MAKE) -C ../src/ clean
39 40 41 42 43 44 45

.PHONY: clean-bin
clean-bin:
	rm -rf ../bin/*

.PHONY: reinstall
reinstall: clean IFOS2D