diff --git a/polymer/eduke32/Makefile b/polymer/eduke32/Makefile index 6ce21aa37..493caa41a 100644 --- a/polymer/eduke32/Makefile +++ b/polymer/eduke32/Makefile @@ -160,7 +160,7 @@ endif all: eduke32$(EXESUFFIX) mapster32$(EXESUFFIX) eduke32$(EXESUFFIX): $(GAMEOBJS) $(EOBJ)$(ENGINELIB) - $(CC) $(CFLAGS) $(OURCFLAGS) -o $@ $^ $(JFAUDLIBS) $(LIBS) $(STDCPPLIB) -Wl,-Map=$@.map + $(CC) -o $@ $^ $(JFAUDLIBS) $(LIBS) $(STDCPPLIB) -Wl,-Map=$@.map -rm eduke32.sym$(EXESUFFIX) cp eduke32$(EXESUFFIX) eduke32.sym$(EXESUFFIX) strip eduke32$(EXESUFFIX) @@ -171,6 +171,10 @@ mapster32$(EXESUFFIX): $(EDITOROBJS) $(EOBJ)$(EDITORLIB) $(EOBJ)$(ENGINELIB) cp mapster32$(EXESUFFIX) mapster32.sym$(EXESUFFIX) strip mapster32$(EXESUFFIX) +duke3d_w32$(EXESUFFIX): $(OBJ)wrapper.$o + $(CC) $(CFLAGS) $(OURCFLAGS) -o $@ $^ -Wl + strip duke3d_w32$(EXESUFFIX) + include Makefile.deps .PHONY: enginelib editorlib @@ -222,7 +226,7 @@ clean: ifeq ($(PLATFORM),DARWIN) cd osx && xcodebuild -target All clean else - -rm -f $(OBJ)* eduke32$(EXESUFFIX) eduke32.sym$(EXESUFFIX) mapster32$(EXESUFFIX) mapster32.sym$(EXESUFFIX) core* + -rm -f $(OBJ)* eduke32$(EXESUFFIX) eduke32.sym$(EXESUFFIX) mapster32$(EXESUFFIX) mapster32.sym$(EXESUFFIX) core* duke3d_w32$(EXESUFFIX) endif veryclean: clean diff --git a/polymer/eduke32/source/wrapper.c b/polymer/eduke32/source/wrapper.c index 0ecd570d1..b34e06595 100755 --- a/polymer/eduke32/source/wrapper.c +++ b/polymer/eduke32/source/wrapper.c @@ -21,24 +21,22 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst, LPSTR lpCmdLine, in PROCESS_INFORMATION pi; ZeroMemory(&szFileName,sizeof(szFileName)); - - for(i=0;i