FILES =hex2bin.cpp
TARGET=hex2bin.exe
OBJS  =hex2bin.o

MINGW =$(MINGW_PATH)
LIBS  = -L"$(MINGW)\lib"
CFLAGS= -I"$(MINGW)\include"
CPP   =g++.exe

all: build

build: compile
	@$(CPP) -Wall -s -O2 -o $(TARGET) $(OBJS) $(LIBS)

compile: $(FILES)
	@$(CPP) -Wall -s -O2 -c $(FILES) $(CFLAGS)
