WARNFLAGS = #-ansi -pedantic CFLAGS = -mno-cygwin -DWIN32 -D_WIN32 -g -O3 ${WARNFLAGS} LDFLAGS = -L/usr/lib/w32api/ -lglut32 -lglu32 -lopengl32 INCLUDES = -I/usr/include/w32api/ \ -I../../../../common \ -I../../ BUILD_DIR = build_GCC all : %.exe : %.cpp mkdir $(BUILD_DIR) || cd $(BUILD_DIR); \ ${CXX} ${INCLUDES} ${CFLAGS} -o $@ ../$< ${LDFLAGS}; \ # ./$@ %.exe : %.c mkdir $(BUILD_DIR) || cd $(BUILD_DIR); \ ${CC} ${INCLUDES} ${CFLAGS} -o $@ ../$< ${LDFLAGS}; \ # ./$@ clean : rm -f $(BUILD_DIR)/* .PHONY : clean all