3 MGPATH = "wine c:\\\\mingw\\\\bin\\\\" ;
4 MGCC = "mingw32-gcc.exe" ;
6 CC = $(MGPATH)$(MGCC) -mthreads ;
7 LINK = $(MGPATH)$(MGCC) -mthreads ;
8 AR = $(MGPATH)ar.exe -ru ;
9 RANLIB = $(MGPATH)ranlib.exe ;
10 C++ = "wine c:\\\\mingw\\\\bin\\\\mingw32-g++.exe" ;
11 C++LINK = "wine c:\\\\mingw\\\\bin\\\\mingw32-g++.exe -static-libgcc" ;
15 case *.rc : ResourceCompiler $(<) : $(>) ;
16 #case *.o : DEPENDS $(<) : $(>) ;
17 case *.o : DummyRule $(<) : $(>) ;
18 case * : ECHO "unknown suffix on" $(>) ;
23 rule ResourceCompiler {
27 actions ResourceCompiler {
28 $(MGPATH)windres.exe -i $(>) -o $(<)
31 LINKLIBS += -lkernel32 -luser32 -ladvapi32 ;
33 # LINKFLAGS += -Wl,-Map,zpx2.map ;
35 #WINSUBSYS = "windows" ;
36 WINSUBSYS = "console" ;
37 #LINKFLAGS += -Wl,-subsystem,console ;
40 LINKFLAGS += "-Wl,-Map,ivan.map,-subsystem,$(WINSUBSYS)" ;
42 LINKFLAGS += "-Wl,-subsystem,$(WINSUBSYS)" ;
45 HDRS += wininc wininc/SDL ;
46 LINKLIBS.all += -Lwinlib -lm -lSDL -lz -lSDL_mixer ;