ANSI = -ansi -pedantic CFLAGS = -O2 ${ANSI} LDFLAGS = #-luser32 -lgdi32 INCLUDES = -I../../../../common \ -I../../../../navigation \ -I../../../../sim BUILD_DIR = build_GCC all : $(BUILD_DIR) : mkdir $(BUILD_DIR) %.exe : %.cpp $(BUILD_DIR) cd $(BUILD_DIR); \ ${CXX} ${INCLUDES} ${CFLAG} ${LDFLAGS} -o $@ ../$<; \ # ./$@ %.exe : %.c $(BUILD_DIR) cd $(BUILD_DIR); \ ${CC} ${INCLUDES} ${CFLAG} ${LDFLAGS} -o $@ ../$<; \ # ./$@ clean : rm -f $(BUILD_DIR)/* .PHONY : clean all