summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Borca <dborca@users.sourceforge.net>2003-10-23 13:57:31 +0000
committerDaniel Borca <dborca@users.sourceforge.net>2003-10-23 13:57:31 +0000
commitc0d83cd054bd6d90f0707812787bef1752863fa1 (patch)
tree078b721c6df84346cea068fac61979ce18b1069e
parent79fa6b98818bc0e6e1bfb221aeccbe3b08d7ae8a (diff)
entrypoints... again
-rw-r--r--src/mesa/Makefile.wfx12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mesa/Makefile.wfx b/src/mesa/Makefile.wfx
index 942de089135..edcbce3e1cf 100644
--- a/src/mesa/Makefile.wfx
+++ b/src/mesa/Makefile.wfx
@@ -49,7 +49,7 @@ GLIDE3SDK = $(BUILDROOT)\glide3
GLIDE3LIB = $(GLIDE3SDK)\lib\glide3x.lib
TEXUS2LIB = #$(GLIDE3SDK)\lib\texus2.lib
LIBDIR = $(BUILDROOT)\lib
-GL_DLL = Mesa.dll
+GL_DLL = OpenGL32.dll
HAVE_X86 = 1
HAVE_MMX = 1
@@ -403,10 +403,12 @@ $(LIBDIR)\x86.lib: x86\matypes.h $(X86_OBJS)
$(RC) -Fo$@ $(INCS) $(FLAGS) -D__WIN32__ $<
# [dBorca] Hack alert:
-# use standard API, to work around Win32 @x names
-# also glapi_x86.S is protected against __WIN32__
-main\dispatch.obj: main\dispatch.c
- $(CC) $(CFLAGS) $(FLAGS) $(INCS) -UUSE_X86_ASM main\dispatch.c /Fo$*.obj
+# glapi_x86.S needs some adjustments
+# in order to generate correct entrypoints
+x86/glapi_x86.o: x86/glapi_x86.S
+ $(CC) $(CFLAGS) $(FLAGS) $(INCS) $< -DSTDCALL_API -DNASM_ASSEMBLER -EP > $*.i
+ $(AS) $(ASFLAGS) $(INCS) $*.i -o $*.obj
+ $(RM) $*.i
#################################
# cleanup rules