Commit 7a786788 authored by Richard Gobeille's avatar Richard Gobeille
Browse files

voidwrap: add explicit "voidwrap" target to Makefile so I can "make voidwrap"...

voidwrap: add explicit "voidwrap" target to Makefile so I can "make voidwrap" and not "make voidwrap_steam_x64.dll", strip .dll after building, add UNREFERENCED_PARAMETER to DllMain() to silence warnings

It's nice that the Steam SDK was apparently updated to be compatible with MinGW at some point, so we aren't forced to build this .dll with MSVC anymore.
parent 25e5521d
...@@ -897,6 +897,9 @@ $(games): $$(foreach i,$(roles),$$($$@_$$i)$(EXESUFFIX)) | start ...@@ -897,6 +897,9 @@ $(games): $$(foreach i,$(roles),$$($$@_$$i)$(EXESUFFIX)) | start
ebacktrace: $(ebacktrace_dll) | start ebacktrace: $(ebacktrace_dll) | start
@$(call LL,$^) @$(call LL,$^)
voidwrap: $(voidwrap_lib) | start
@$(call LL,$^)
ifeq ($(PLATFORM),WII) ifeq ($(PLATFORM),WII)
ifneq ($(ELF2DOL),) ifneq ($(ELF2DOL),)
%$(DOLSUFFIX): %$(EXESUFFIX) %$(DOLSUFFIX): %$(EXESUFFIX)
...@@ -956,6 +959,9 @@ getdxdidf$(EXESUFFIX): $(tools_obj)/getdxdidf.$o $(foreach i,tools $(tools_deps) ...@@ -956,6 +959,9 @@ getdxdidf$(EXESUFFIX): $(tools_obj)/getdxdidf.$o $(foreach i,tools $(tools_deps)
$(voidwrap_lib): $(foreach i,$(voidwrap),$(call expandobjs,$i)) $(voidwrap_lib): $(foreach i,$(voidwrap),$(call expandobjs,$i))
$(LINK_STATUS) $(LINK_STATUS)
$(RECIPE_IF) $(LINKER) -shared -Wl,-soname,$@ -o $@ $^ $(LIBDIRS) $(voidwrap_root)/sdk/redistributable_bin/$(steamworks_lib) $(RECIPE_RESULT_LINK) $(RECIPE_IF) $(LINKER) -shared -Wl,-soname,$@ -o $@ $^ $(LIBDIRS) $(voidwrap_root)/sdk/redistributable_bin/$(steamworks_lib) $(RECIPE_RESULT_LINK)
ifneq ($(STRIP),)
$(STRIP) $@
endif
### Main Rules ### Main Rules
......
...@@ -8,6 +8,9 @@ ...@@ -8,6 +8,9 @@
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
{ {
UNREFERENCED_PARAMETER(hModule);
UNREFERENCED_PARAMETER(ul_reason_for_call);
UNREFERENCED_PARAMETER(lpReserved);
#if 0 #if 0
switch (ul_reason_for_call) switch (ul_reason_for_call)
{ {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment