summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2003-03-29 16:14:01 +0000
committerBrian Paul <[email protected]>2003-03-29 16:14:01 +0000
commit183aea64d3d45bfed30f07079a0c68fa7165bc0b (patch)
tree4edb6e0aa92242e28e0400a49504459fcf377f70 /src/mesa/main
parenta8d4963fbcfe370a571671a250a1ae8dd894a94a (diff)
DOS updates from Daniel Borca
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/Makefile.DJ36
1 files changed, 19 insertions, 17 deletions
diff --git a/src/mesa/main/Makefile.DJ b/src/mesa/main/Makefile.DJ
index 971769d779f..16012c8d424 100644
--- a/src/mesa/main/Makefile.DJ
+++ b/src/mesa/main/Makefile.DJ
@@ -89,11 +89,13 @@ endif
AR = ar
ARFLAGS = rus
-ifneq ($(wildcard $(DJDIR)/lib/dxe3.ld),)
-DXE3GEN = $(wildcard $(addsuffix /dxe3gen.exe,$(subst ;, ,$(PATH))))
-endif
+HAVEDXE3 = $(wildcard $(DJDIR)/bin/dxe3gen.exe)
-RM = del
+ifeq ($(wildcard $(addsuffix /rm.exe,$(subst ;, ,$(PATH)))),)
+UNLINK = del $(subst /,\,$(1))
+else
+UNLINK = $(RM) $(1)
+endif
CORE_SOURCES = \
api_arrayelt.c \
@@ -173,6 +175,7 @@ CORE_SOURCES = \
swrast/s_drawpix.c \
swrast/s_feedback.c \
swrast/s_fog.c \
+ swrast/s_histogram.c \
swrast/s_imaging.c \
swrast/s_lines.c \
swrast/s_logic.c \
@@ -310,9 +313,8 @@ $(LIBDIR)/$(GL_LIB): $(OBJECTS)
$(AR) $(ARFLAGS) $(LIBDIR)/$(GL_LIB) $(OBJECTS)
$(LIBDIR)/$(GL_DXE) $(LIBDIR)/$(GL_IMP): $(OBJECTS)
-ifeq ($(DXE3GEN),)
- $(warning Missing DXE3GEN and/or DXE3.LD! You must have DXE3GEN)
- $(warning somewhere in PATH, and DXE3.LD in DJGPP/LIB directory.)
+ifeq ($(HAVEDXE3),)
+ $(warning Missing DXE3 package... Skipping $(GL_DXE))
else
ifeq ($(FX),1)
-dxe3gen -o $(LIBDIR)/$(GL_DXE) -I $(LIBDIR)/$(GL_IMP) -D $(LIBNAME) -E _gl -E _DMesa -P glid3.dxe -U $(OBJECTS)
@@ -330,15 +332,15 @@ X86/gen_matypes.exe: X86/gen_matypes.c
$(CC) -o $@ $(CFLAGS) -s $<
clean:
- -$(RM) $(subst /,\,*.o)
- -$(RM) $(subst /,\,array_cache/*.o)
- -$(RM) $(subst /,\,math/*.o)
- -$(RM) $(subst /,\,swrast/*.o)
- -$(RM) $(subst /,\,swrast_setup/*.o)
- -$(RM) $(subst /,\,tnl/*.o)
- -$(RM) $(subst /,\,X86/*.o)
- -$(RM) $(subst /,\,DOS/*.o)
- -$(RM) $(subst /,\,DOS/mga/*.o)
- -$(RM) $(subst /,\,FX/*.o)
+ -$(call UNLINK,*.o)
+ -$(call UNLINK,array_cache/*.o)
+ -$(call UNLINK,math/*.o)
+ -$(call UNLINK,swrast/*.o)
+ -$(call UNLINK,swrast_setup/*.o)
+ -$(call UNLINK,tnl/*.o)
+ -$(call UNLINK,X86/*.o)
+ -$(call UNLINK,DOS/*.o)
+ -$(call UNLINK,DOS/mga/*.o)
+ -$(call UNLINK,FX/*.o)
-include depend