summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/d3d1x/winedlls/Makefile.wine
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/state_trackers/d3d1x/winedlls/Makefile.wine')
-rw-r--r--src/gallium/state_trackers/d3d1x/winedlls/Makefile.wine23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/d3d1x/winedlls/Makefile.wine b/src/gallium/state_trackers/d3d1x/winedlls/Makefile.wine
new file mode 100644
index 0000000000..c9a06876c4
--- /dev/null
+++ b/src/gallium/state_trackers/d3d1x/winedlls/Makefile.wine
@@ -0,0 +1,23 @@
+TOP=../../../../../..
+D3D1X=../..
+include $(TOP)/configs/current
+CFLAGS=$(CXXFLAGS)
+
+all: lib$(LIBNAME).def lib$(LIBNAME).cross.a $(LIBNAME).dll.so
+
+%.dll.fake: %.spec $(OBJECTS) version.res
+ wineg++ -m32 -fasynchronous-unwind-tables -shared $^ -o $@ $(LDADD)
+
+%.dll.so: %.spec $(OBJECTS) version.res
+ wineg++ -m32 -fasynchronous-unwind-tables -shared $^ -o $@ $(LDADD)
+
+lib%.def: %.spec
+ winebuild -w --def -o $@ --export $<
+
+lib%.cross.a: %.spec
+ winebuild -m32 -b i586-mingw32msvc -w --implib -o $@ --export $<
+
+version.res: version.rc
+ wrc --nostdinc -I. -I. -I../../include -I../../include -D__WINESRC__ -fo$@ $^
+
+include ../../../../Makefile.template