glide3x, tests: sbench depends on fxos.o for non-linux.
This commit is contained in:
@@ -18,10 +18,9 @@
|
||||
# <file.exe> build a specific file
|
||||
#
|
||||
|
||||
|
||||
.PHONY: all
|
||||
.PHONY: all clean
|
||||
.SUFFIXES: .c .o .exe
|
||||
.SECONDARY: tlib.o
|
||||
.SECONDARY: tlib.o fxos.o
|
||||
|
||||
FX_GLIDE_HW = cvg
|
||||
TOP = ../../..
|
||||
@@ -52,6 +51,12 @@ endif
|
||||
all:
|
||||
$(error Must specify <filename.exe> to build)
|
||||
|
||||
sbench.exe: sbench.o fxos.o tlib.o
|
||||
$(CC) -o $@ $(LDFLAGS) $^ $(LDLIBS)
|
||||
|
||||
fxos.o: $(TOP)/swlibs/fxmisc/fxos.c
|
||||
$(CC) -o $@ $(CFLAGS) -c $<
|
||||
|
||||
clean:
|
||||
-$(call UNLINK,*.o)
|
||||
-$(call UNLINK,*.exe)
|
||||
|
||||
@@ -16,8 +16,7 @@
|
||||
# <file.exe> build a specific file
|
||||
#
|
||||
|
||||
|
||||
.PHONY: all
|
||||
.PHONY: all clean
|
||||
.SUFFIXES: .c .o .exe
|
||||
.SECONDARY: tlib.o linutil.o
|
||||
|
||||
@@ -47,3 +46,6 @@ all:
|
||||
linutil.o: $(TOP)/swlibs/fxmisc/linutil.c
|
||||
$(CC) -o $@ $(CFLAGS) -c $<
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
rm -f *.exe
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
# Web : http://www.geocities.com/dborca
|
||||
#
|
||||
|
||||
|
||||
#
|
||||
# Available options:
|
||||
#
|
||||
@@ -20,10 +19,9 @@
|
||||
# <file.exe> build a specific file
|
||||
#
|
||||
|
||||
|
||||
.PHONY: all
|
||||
.SUFFIXES: .c .obj .exe
|
||||
.SECONDARY: tlib.obj
|
||||
.SECONDARY: tlib.obj fxos.obj
|
||||
|
||||
FX_GLIDE_HW = cvg
|
||||
TOP = ../../..
|
||||
@@ -57,3 +55,9 @@ export WCL386 = -zq
|
||||
|
||||
all:
|
||||
$(error Must specify <filename.exe> to build)
|
||||
|
||||
sbench.exe: sbench.obj fxos.obj tlib.obj
|
||||
$(CC) -fe=$@ $(LDFLAGS) $^ $(subst /,\,$(LDLIBS))
|
||||
|
||||
fxos.obj: $(TOP)/swlibs/fxmisc/fxos.c
|
||||
$(CC) -fo=$@ -c $<
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
# Web : http://www.geocities.com/dborca
|
||||
#
|
||||
|
||||
|
||||
#
|
||||
# Available options:
|
||||
#
|
||||
@@ -20,10 +19,9 @@
|
||||
# <file.exe> build a specific file
|
||||
#
|
||||
|
||||
|
||||
.PHONY: all
|
||||
.SUFFIXES: .c .obj .exe
|
||||
.SECONDARY: tlib.obj
|
||||
.SECONDARY: tlib.obj fxos.obj
|
||||
|
||||
FX_GLIDE_HW ?= cvg
|
||||
TOP = ../../..
|
||||
@@ -46,3 +44,9 @@ LDLIBS = user32.lib gdi32.lib $(TOP)/$(FX_GLIDE_HW)/lib/glide3x.lib
|
||||
|
||||
all:
|
||||
$(error Must specify <filename.exe> to build)
|
||||
|
||||
sbench.exe: sbench.obj fxos.obj tlib.obj
|
||||
$(LD) -out:$@ $(LDFLAGS) $^ $(LDLIBS)
|
||||
|
||||
fxos.obj: $(TOP)/swlibs/fxmisc/fxos.c
|
||||
$(CC) -Fo$@ $(CFLAGS) -c $<
|
||||
|
||||
@@ -18,14 +18,16 @@
|
||||
# <file.exe> build a specific file
|
||||
#
|
||||
|
||||
.PHONY: all
|
||||
.PHONY: all clean
|
||||
.SUFFIXES: .c .o .exe
|
||||
.SECONDARY: tlib.o
|
||||
.SECONDARY: tlib.o fxos.o
|
||||
|
||||
FX_GLIDE_HW = h3
|
||||
TOP = ../../..
|
||||
CPU ?= pentium
|
||||
|
||||
UNLINK = rm -f $(1)
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -O2 -ffast-math -mtune=$(CPU)
|
||||
CFLAGS += -I$(TOP)/$(FX_GLIDE_HW)/glide3/src -I$(TOP)/$(FX_GLIDE_HW)/incsrc
|
||||
@@ -36,9 +38,9 @@ CFLAGS += -D__DOS32__
|
||||
LDFLAGS = -s -L$(TOP)/$(FX_GLIDE_HW)/lib
|
||||
|
||||
ifdef DXE
|
||||
LDLIBS = -lgld3i
|
||||
LDLIBS = -lglide3i
|
||||
else
|
||||
LDLIBS = -lgld3x
|
||||
LDLIBS = -lglide3x
|
||||
endif
|
||||
|
||||
.c.o:
|
||||
@@ -48,3 +50,13 @@ endif
|
||||
|
||||
all:
|
||||
$(error Must specify <filename.exe> to build)
|
||||
|
||||
sbench.exe: sbench.o fxos.o tlib.o
|
||||
$(CC) -o $@ $(LDFLAGS) $^ $(LDLIBS)
|
||||
|
||||
fxos.o: $(TOP)/swlibs/fxmisc/fxos.c
|
||||
$(CC) -o $@ $(CFLAGS) -c $<
|
||||
|
||||
clean:
|
||||
-$(call UNLINK,*.o)
|
||||
-$(call UNLINK,*.exe)
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
# <file.exe> build a specific file
|
||||
#
|
||||
|
||||
.PHONY: all
|
||||
.PHONY: all clean
|
||||
.SUFFIXES: .c .o .exe
|
||||
.SECONDARY: tlib.o linutil.o
|
||||
|
||||
@@ -54,3 +54,6 @@ all:
|
||||
linutil.o: $(TOP)/swlibs/fxmisc/linutil.c
|
||||
$(CC) -o $@ $(CFLAGS) -c $<
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
rm -f *.exe
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
.PHONY: all
|
||||
.SUFFIXES: .c .obj .exe
|
||||
.SECONDARY: tlib.obj
|
||||
.SECONDARY: tlib.obj fxos.obj
|
||||
|
||||
FX_GLIDE_HW = h3
|
||||
TOP = ../../..
|
||||
@@ -55,3 +55,9 @@ export WCL386 = -zq
|
||||
|
||||
all:
|
||||
$(error Must specify <filename.exe> to build)
|
||||
|
||||
sbench.exe: sbench.obj fxos.obj tlib.obj
|
||||
$(CC) -fe=$@ $(LDFLAGS) $^ $(subst /,\,$(LDLIBS))
|
||||
|
||||
fxos.obj: $(TOP)/swlibs/fxmisc/fxos.c
|
||||
$(CC) -fo=$@ -c $<
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
.PHONY: all
|
||||
.SUFFIXES: .c .obj .exe
|
||||
.SECONDARY: tlib.obj
|
||||
.SECONDARY: tlib.obj fxos.obj
|
||||
|
||||
FX_GLIDE_HW ?= h3
|
||||
TOP = ../../..
|
||||
@@ -44,3 +44,9 @@ LDLIBS = user32.lib gdi32.lib $(TOP)/$(FX_GLIDE_HW)/lib/glide3x.lib
|
||||
|
||||
all:
|
||||
$(error Must specify <filename.exe> to build)
|
||||
|
||||
sbench.exe: sbench.obj fxos.obj tlib.obj
|
||||
$(LD) -out:$@ $(LDFLAGS) $^ $(LDLIBS)
|
||||
|
||||
fxos.obj: $(TOP)/swlibs/fxmisc/fxos.c
|
||||
$(CC) -Fo$@ $(CFLAGS) -c $<
|
||||
|
||||
@@ -18,10 +18,9 @@
|
||||
# <file.exe> build a specific file
|
||||
#
|
||||
|
||||
|
||||
.PHONY: all
|
||||
.PHONY: all clean
|
||||
.SUFFIXES: .c .o .exe
|
||||
.SECONDARY: tlib.o
|
||||
.SECONDARY: tlib.o fxos.o
|
||||
|
||||
FX_GLIDE_HW = h5
|
||||
TOP = ../../..
|
||||
@@ -53,6 +52,12 @@ endif
|
||||
all:
|
||||
$(error Must specify <filename.exe> to build)
|
||||
|
||||
sbench.exe: sbench.o fxos.o tlib.o
|
||||
$(CC) -o $@ $(LDFLAGS) $^ $(LDLIBS)
|
||||
|
||||
fxos.o: $(TOP)/swlibs/fxmisc/fxos.c
|
||||
$(CC) -o $@ $(CFLAGS) -c $<
|
||||
|
||||
clean:
|
||||
-$(call UNLINK,*.o)
|
||||
-$(call UNLINK,*.exe)
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
# <file.exe> build a specific file
|
||||
#
|
||||
|
||||
.PHONY: all
|
||||
.PHONY: all clean
|
||||
.SUFFIXES: .c .o .exe
|
||||
.SECONDARY: tlib.o linutil.o
|
||||
|
||||
@@ -55,3 +55,6 @@ all:
|
||||
linutil.o: $(TOP)/swlibs/fxmisc/linutil.c
|
||||
$(CC) -o $@ $(CFLAGS) -c $<
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
rm -f *.exe
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
.PHONY: all
|
||||
.SUFFIXES: .c .o .exe
|
||||
.SECONDARY: tlib.o
|
||||
.SECONDARY: tlib.o fxos.o
|
||||
|
||||
FX_GLIDE_HW = h5
|
||||
TOP = ../../..
|
||||
@@ -42,3 +42,9 @@ LDLIBS = -lgdi32 -lglide3x
|
||||
|
||||
all:
|
||||
$(error Must specify <filename.exe> to build)
|
||||
|
||||
sbench.exe: sbench.o fxos.o tlib.o
|
||||
$(CC) -o $@ $(LDFLAGS) $^ $(LDLIBS)
|
||||
|
||||
fxos.o: $(TOP)/swlibs/fxmisc/fxos.c
|
||||
$(CC) -o $@ $(CFLAGS) -c $<
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
.PHONY: all
|
||||
.SUFFIXES: .c .obj .exe
|
||||
.SECONDARY: tlib.obj
|
||||
.SECONDARY: tlib.obj fxos.obj
|
||||
|
||||
FX_GLIDE_HW = h5
|
||||
TOP = ../../..
|
||||
@@ -55,3 +55,9 @@ export WCL386 = -zq
|
||||
|
||||
all:
|
||||
$(error Must specify <filename.exe> to build)
|
||||
|
||||
sbench.exe: sbench.obj fxos.obj tlib.obj
|
||||
$(CC) -fe=$@ $(LDFLAGS) $^ $(subst /,\,$(LDLIBS))
|
||||
|
||||
fxos.obj: $(TOP)/swlibs/fxmisc/fxos.c
|
||||
$(CC) -fo=$@ -c $<
|
||||
|
||||
@@ -20,10 +20,9 @@
|
||||
# <file.exe> build a specific file
|
||||
#
|
||||
|
||||
|
||||
.PHONY: all
|
||||
.PHONY: all clean
|
||||
.SUFFIXES: .c .o .exe
|
||||
.SECONDARY: tlib.o
|
||||
.SECONDARY: tlib.o fxos.o
|
||||
|
||||
FX_GLIDE_HW ?= sst1
|
||||
ifeq ($(FX_GLIDE_HW),sst1)
|
||||
@@ -63,6 +62,12 @@ endif
|
||||
all:
|
||||
$(error Must specify <filename.exe> to build)
|
||||
|
||||
sbench.exe: sbench.o fxos.o tlib.o
|
||||
$(CC) -o $@ $(LDFLAGS) $^ $(LDLIBS)
|
||||
|
||||
fxos.o: $(TOP)/swlibs/fxmisc/fxos.c
|
||||
$(CC) -o $@ $(CFLAGS) -c $<
|
||||
|
||||
clean:
|
||||
-$(call UNLINK,*.o)
|
||||
-$(call UNLINK,*.exe)
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#
|
||||
|
||||
|
||||
.PHONY: all
|
||||
.PHONY: all clean
|
||||
.SUFFIXES: .c .o .exe
|
||||
.SECONDARY: tlib.o linutil.o
|
||||
|
||||
@@ -63,3 +63,6 @@ all:
|
||||
linutil.o: $(TOP)/swlibs/fxmisc/linutil.c
|
||||
$(CC) -o $@ $(CFLAGS) -c $<
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
rm -f *.exe
|
||||
|
||||
@@ -21,10 +21,9 @@
|
||||
# <file.exe> build a specific file
|
||||
#
|
||||
|
||||
|
||||
.PHONY: all
|
||||
.SUFFIXES: .c .obj .exe
|
||||
.SECONDARY: tlib.obj
|
||||
.SECONDARY: tlib.obj fxos.obj
|
||||
|
||||
FX_GLIDE_HW ?= sst1
|
||||
ifeq ($(FX_GLIDE_HW),sst1)
|
||||
@@ -67,3 +66,9 @@ export WCL386 = -zq
|
||||
|
||||
all:
|
||||
$(error Must specify <filename.exe> to build)
|
||||
|
||||
sbench.exe: sbench.obj fxos.obj tlib.obj
|
||||
$(CC) -fe=$@ $(LDFLAGS) $^ $(subst /,\,$(LDLIBS))
|
||||
|
||||
fxos.obj: $(TOP)/swlibs/fxmisc/fxos.c
|
||||
$(CC) -fo=$@ -c $<
|
||||
|
||||
@@ -19,10 +19,9 @@
|
||||
# <file.exe> build a specific file
|
||||
#
|
||||
|
||||
|
||||
.PHONY: all
|
||||
.SUFFIXES: .c .obj .exe
|
||||
.SECONDARY: tlib.obj
|
||||
.SECONDARY: tlib.obj fxos.obj
|
||||
|
||||
FX_GLIDE_HW ?= sst1
|
||||
ifeq ($(FX_GLIDE_HW),sst1)
|
||||
@@ -54,3 +53,9 @@ LDLIBS = user32.lib gdi32.lib $(TOP)/$(FX_HW_BASE)/lib/$(FX_GLIDE_HW)/glide3x.li
|
||||
|
||||
all:
|
||||
$(error Must specify <filename.exe> to build)
|
||||
|
||||
sbench.exe: sbench.obj fxos.obj tlib.obj
|
||||
$(LD) -out:$@ $(LDFLAGS) $^ $(LDLIBS)
|
||||
|
||||
fxos.obj: $(TOP)/swlibs/fxmisc/fxos.c
|
||||
$(CC) -Fo$@ $(CFLAGS) -c $<
|
||||
|
||||
Reference in New Issue
Block a user