+sys ?= $(shell uname -s | sed 's/MINGW.*/mingw/')
+
+CFLAGS = -pedantic -Wall -g -DNOLOAD
+LDFLAGS = $(LDFLAGS_$(sys)) -lm
+
+LDFLAGS_Linux = -lGL -lGLU -lglut
+LDFLAGS_mingw = -lmingw32 -mconsole -lfreeglut_static -lopengl32 -lglu32 -lgdi32 -lwinmm
+
+ifeq ($(sys), mingw)
+ obj = $(src:.c=.w32.o)
+ bin = censuslogo.exe
+ CFLAGS += -DFREEGLUT_STATIC
+endif