#
# FLUKA master makefile
# type make all to compile the executable and associated utilities
#
FLUPRO := $(shell pwd)
LFLUKA  = flutil/lfluka
FLUTIL  = flutil

all: flukahp utils

flukahp: libflukahp.a
	 FLUPRO=$(FLUPRO) $(LFLUKA) -o $@ -m fluka

utils:
	cd $(FLUTIL); FLUPRO=$(FLUPRO) make all; cd ..

clean:
	rm -f flukahp flukahp.map
	cd $(FLUTIL); FLUPRO=$(FLUPRO) make clean; cd ..