CC = g++
OBJ = fwupIsd202.o mcupdator.o CCom.o CLoader.o CLog.o

IDIR = ../include -I/usr/local/include/ -I/usr/include/c++/7/
SLIB= -lPIF 

fwupIsd202 	:	$(OBJ) $(LIB) Makefile
				$(CC) -g -o fwupIsd202 $(OBJ) $(SLIB)
#				cp fwupIsd202 /home/jenux/bin

.C.o		:	
#			$(CC) -std=c++0x -c -g -I$(IDIR) $<
			$(CC) -std=c++11 -fPIC -O3 -w -c -g -I$(IDIR) $<


install:
			cp fwupIsd202 /home/Genesis/firmware/
			cp 2357F6.SUB /home/Genesis/firmware/
clean:
			rm -f fwupIsd202
			rm -f *.o

fwupIsd202.o	: fwupIsd202.h
mcupdator.o	: fwupIsd202.h CCom.h CLoader.h fztat.h
CCom.o		: CCom.h
CLoader.o	: fwupIsd202.h CLoader.h
