#
ifndef ESP_ROOT
$(error ESP_ROOT must be set -- Please fix the environment...)
endif
ifndef ESP_ARCH
$(error ESP_ARCH must be set -- Please fix the environment...)
endif
#
IDIR  = $(ESP_ROOT)/include
include $(IDIR)/$(ESP_ARCH)
LDIR  = $(ESP_ROOT)/lib

myExample:	myExample.o
	$(CXX) -o myExample myExample.o -L$(LDIR) -legads $(RPATH) -lm

myExample.o:	myExample.c
	$(CC) -c $(COPTS) $(DEFINE) -I$(IDIR) myExample.c

clean:
	-rm myExample.o 

cleanall:	clean
	-rm myExample
