ifeq ($(MSYSTEM),MINGW64) # -------------------- # MSYS2 MINGW64 01_ssstars_opengl.exe: 01_ssstars_opengl.c texture.h Makefile gcc $< -o $@ -lglu32 -D FREEGLUT_STATIC -lfreeglut -lopengl32 -lwinmm -lgdi32 -static else # -------------------- # MinGW 01_ssstars_opengl.exe: 01_ssstars_opengl.c texture.h Makefile gcc $< -o $@ -lglu32 -D FREEGLUT_STATIC -lfreeglut_static -lopengl32 -lwinmm -lgdi32 endif texture.h: texture.png xxd -i texture.png > texture.h .PHONY: clean clean: rm -f *.exe rm -f *.o rm -f texture.h