LIB_PATH            = $(NOMAD_HOME)/lib
EXE                 = perf_profiles.exe
COMPILATOR          = g++
COMPILATOR_OPTIONS  = -ansi -Wall -O3
L1                  = $(LIB_PATH)/nomad.a
LIBS                = $(L1) -lc -lm
INCLUDE             = -I$(NOMAD_HOME)/src -I.
COMPILE             = $(COMPILATOR) $(COMPILATOR_OPTIONS) $(INCLUDE) -c
OBJS                = perf_profiles.o

$(EXE): $(OBJS)
	$(COMPILATOR) -o $(EXE) $(OBJS) $(LIBS) $(COMPILATOR_OPTIONS)

perf_profiles.o: perf_profiles.cpp $(L1)
	$(COMPILE) perf_profiles.cpp

clean:
	@echo "   cleaning obj files"
	@rm -f $(OBJS)

del:
	@echo "   cleaning trash files"
	@rm -f core *~
	@echo "   cleaning obj files"
	@rm -f $(OBJS)
	@echo "   cleaning exe file"
	@rm -f $(EXE)
