CPP = $(CROSS_COMPILE)g++
CFLAGS += -Wall -fpic -I../../inc -O2

LIBPATH = ../../lib/BtaEth/Armhf

all: bta_eth_example_minimal bta_eth_example

bta_eth_example_minimal: bta_eth_example_minimal.cpp
	$(CPP) $(CFLAGS) -c bta_eth_example_minimal.cpp
	$(CPP) -o bta_eth_example_minimal bta_eth_example_minimal.o -L$(LIBPATH) -Wl,-rpath=$(LIBPATH) -lbta_eth -lrt

bta_eth_example: bta_eth_example.cpp
	$(CPP) $(CFLAGS) -c bta_eth_example.cpp
	$(CPP) -o bta_eth_example bta_eth_example.o -L$(LIBPATH) -Wl,-rpath=$(LIBPATH) -lbta_eth -lrt
