LIB_PATH=$(shell heptc -where) OBJ=rcounter_c/rcounter.c rcounter_c/rcounter_types.c all: main $(OBJ): rcounter.ept heptc -target c $< main: $(OBJ) gcc -I $(LIB_PATH)/c -I . main.c $< clean: $(RM) *.log $(RM) *.epci $(RM) *.mls $(RM) *.o *.obj *.obc $(RM) -r *_c $(RM) *.out