Makefile 675 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# This is par/Makefile
#--------------------------------------------------
# the command "make" or "make install" installs the 
# cseife library and the main code of ifos3d 
#--------------------------------------------------

default: ../ ifos3d



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


.PHONY: ifos3d 
ifos3d: libcseife
ifdef MODEL
Tilman Steinweg's avatar
Tilman Steinweg committed
19
	$(MAKE) -C ../src/ ifos3d MODEL_SCR=$(MODEL)
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
else
	$(MAKE) -C ../src/ ifos3d 
endif

.PHONY: install
install: clean-bin ifos3d

.PHONY: clean
clean: 
	rm -rf ../bin/*
	$(MAKE) -C ../libcseife clean
	$(MAKE) -C ../src/ clean

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

.PHONY: reinstall
reinstall: clean ifos3d