all : httpcpptest httpcpptest.exe CFLAGS:=-O1 -g CXXFLAGS:=$(CFLAGS) LDFLAGS:=-lpthread MINGW32:=/usr/bin/i686-w64-mingw32- WIN32FLAGS:=-DWIN32 httpcpptest : httpcpptest.o httpcpp.o os_generic.o g++ -o $@ $^ $(LDFLAGS) httpcpptest.exe : httpcpptest.cpp httpcpp.cpp os_generic.c $(MINGW32)g++ $(WIN32FLAGS) -o $@ $^ -lwsock32 -static-libgcc -static clean : rm -rf *.o *~ httpcpptest