.PHONY: clean all 

NMSSMTools = $(CURDIR)/../../../
CALCHEP =    ../../CalcHEP_src
all:  aLib.a nngg-nm4b/lGamma.exe

ifneq ($(MAKECMDGOALS),clean)
include $(CALCHEP)/FlagsForMake
endif

aLibOBJ = $(notdir $(subst .c,.o,$(wildcard *.c))) fort.o


aLib.a:aLib.a($(aLibOBJ)) lpath.h
	$(RANLIB) aLib.a
	rm -f $(aLibOBJ)

aLib.a(calchep_func.o):lpath.h

lpath.h:
	echo \#define LPATH \"`pwd`\"  >lpath.h
	echo \#define NMSSMTOOLS \"$(NMSSMTools)\" >> lpath.h

nngg-nm4b/lGamma.exe:
	make -C nngg-nm4b



clean: 
	rm -f lpath.h *.o *.a  
	make -C nngg-nm4b clean
