all : cnping CFLAGS:=$(CFLAGS) -g -Os CXXFLAGS:=$(CFLAGS) LDFLAGS:=-g MINGW32:=/usr/bin/i686-w64-mingw32- cnping.exe : cnping.c DrawFunctions.c WinDriver.c os_generic.c ping.c $(MINGW32)gcc -m32 $(CFLAGS) -o $@ $^ -lgdi32 # Rasterizer.o cnping : cnping.o DrawFunctions.o XDriver.o os_generic.o ping.o gcc -o $@ $^ -lX11 -lm -lpthread -lXinerama -lXext $(LDFLAGS) clean : rm -rf *.o *~ cnping cnping.exe