makefile cleanup

This commit is contained in:
dborca
2004-10-08 06:20:23 +00:00
parent 0e1f6972b0
commit 32f0f47956
5 changed files with 11 additions and 14 deletions

View File

@@ -46,8 +46,8 @@ export PATH := $(PATH):.
# general defines (user settable?)
###############################################################################
GLIDE_LIB = libglide3.a
GLIDE_SO = libglide3.so
GLIDE_LIB = libglide3x.a
GLIDE_SO = libglide3x.so
TEXUS_EXE = texus2
FX_GLIDE_HW ?= cvg
@@ -244,7 +244,7 @@ $(GLIDE_LIBDIR)/$(GLIDE_SO): $(GLIDE_OBJECTS:.o=.lo)
$(TEXUS_EXEDIR)/$(TEXUS_EXE): $(FX_GLIDE_SW)/texus2/cmd/cmd.c $(GLIDE_LIBDIR)/$(GLIDE_LIB)
ifeq ($(TEXUS2),1)
$(CC) -o $@ -s $(CFLAGS) -L$(GLIDE_LIBDIR) $< -lglide3 -lm
$(CC) -o $@ -s $(CFLAGS) -L$(GLIDE_LIBDIR) $< -lglide3x -lm
else
$(warning Texus2 not enabled... Skipping $(TEXUS_EXE))
endif

View File

@@ -15,11 +15,13 @@
# Environment variables:
# FX_GLIDE_HW build for the given ASIC (h3).
# default = h3
# H4=1 High speed Avenger.
# default = no
# CPU optimize for the given processor.
# default = 6 (PentiumPro)
# DEBUG=1 disable optimizations and build for debug.
# default = no
# USE_X86=1 use assembler triangle specializations; req by CVG
# USE_X86=1 use assembler triangle specializations!
# default = no
# USE_3DNOW=1 allow 3DNow! specializations. However, the true CPU
# capabilities are still checked at run-time to avoid
@@ -129,8 +131,6 @@ CFLAGS += -I$(FX_GLIDE_SW)/fxmisc -I$(FX_GLIDE_SW)/newpci/pcilib -I$(FX_GLIDE_SW
CFLAGS += -I$(FX_GLIDE_SW)/texus2/lib
CFLAGS += $(CDEFS)
override USE_X86 = 1
ifeq ($(USE_3DNOW),1)
CFLAGS += -DGL_AMD3D
override USE_X86 = 1
@@ -257,8 +257,6 @@ xdraw2_def.obj: xdraw2.asm
$(AS) -o $@ $(ASFLAGS) $<
xdraw3_def.obj: xdraw3.asm
$(AS) -o $@ $(ASFLAGS) $<
xtexdl_def.obj: xtexdl_def.c
$(CC) -Fo$@ $(CFLAGS) -c $<
xdraw2_3dnow.obj: xdraw2.asm
$(AS) -o $@ $(ASFLAGS) -DGL_AMD3D=1 $<
xdraw3_3dnow.obj: xdraw3.asm
@@ -284,7 +282,6 @@ fxgasm.exe: fxgasm.c
clean:
-$(call UNLINK,*.obj)
-$(call UNLINK,../../minihwc/*.obj)
-$(call UNLINK,$(FX_GLIDE_SW)/newpci/pcilib/*.obj)
-$(call UNLINK,fxinline.h)
-$(call UNLINK,fxgasm.h)
-$(call UNLINK,$(FX_GLIDE_SW)/texus2/lib/*.obj)

View File

@@ -13,7 +13,7 @@
# Available options:
#
# Environment variables:
# FX_GLIDE_HW build for the given ASIC (cvg).
# FX_GLIDE_HW build for the given ASIC (sst1, sst96).
# default = sst1
# CPU optimize for the given processor.
# default = 5s (Pentium, stack)

View File

@@ -13,7 +13,7 @@
# Available options:
#
# Environment variables:
# FX_GLIDE_HW build for the given ASIC (cvg).
# FX_GLIDE_HW build for the given ASIC (sst1, sst96).
# default = sst1
# CPU optimize for the given processor.
# default = 6 (PentiumPro)

View File

@@ -42,8 +42,8 @@ export PATH := $(PATH):.
# general defines (user settable?)
###############################################################################
GLIDE_LIB = libglide3.a
GLIDE_SO = libglide3.so
GLIDE_LIB = libglide3x.a
GLIDE_SO = libglide3x.so
TEXUS_EXE = texus2
FX_GLIDE_HW ?= sst1
@@ -245,7 +245,7 @@ $(GLIDE_LIBDIR)/$(GLIDE_SO): $(GLIDE_OBJECTS:.o=.lo)
$(TEXUS_EXEDIR)/$(TEXUS_EXE): $(FX_GLIDE_SW)/texus2/cmd/cmd.c $(GLIDE_LIBDIR)/$(GLIDE_LIB)
ifeq ($(TEXUS2),1)
$(CC) -o $@ -s $(CFLAGS) -L$(GLIDE_LIBDIR) $< -lglide3 -lm
$(CC) -o $@ -s $(CFLAGS) -L$(GLIDE_LIBDIR) $< -lglide3x -lm
else
$(warning Texus2 not enabled... Skipping $(TEXUS_EXE))
endif