From c94050cb87d2803eddd3ea68679972d81f692e63 Mon Sep 17 00:00:00 2001 From: sezero Date: Mon, 20 Aug 2018 17:37:02 +0300 Subject: [PATCH] glide2x: added top-level makefiles. --- glide2x/Makefile.linux | 2 +- glide2x/Makefile.mingw | 61 ++++++++++++++++++++++++++++++++++++++++++ glide2x/Makefile.win32 | 61 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 123 insertions(+), 1 deletion(-) create mode 100644 glide2x/Makefile.mingw create mode 100644 glide2x/Makefile.win32 diff --git a/glide2x/Makefile.linux b/glide2x/Makefile.linux index a320a4e..6d1e906 100644 --- a/glide2x/Makefile.linux +++ b/glide2x/Makefile.linux @@ -37,7 +37,7 @@ # target = cvg, h3 # default = no # USE_MMX=1 (see USE_3DNOW) -# target = h3 +# target = cvg # default = no # # Targets: diff --git a/glide2x/Makefile.mingw b/glide2x/Makefile.mingw new file mode 100644 index 0000000..07b05ee --- /dev/null +++ b/glide2x/Makefile.mingw @@ -0,0 +1,61 @@ +# Win32 makefile for Glide2, using MinGW environment +# This makefile MUST be processed by GNU make!!! +# +# Copyright (c) 2003 - Daniel Borca +# Email : dborca@users.sourceforge.net +# Web : http://www.geocities.com/dborca +# + +# +# Available options: +# +# Environment variables: +# FX_GLIDE_HW build for the given ASIC (sst1, sst96, cvg, h3). +# default = h3 +# H4=1 High speed Avenger/Napalm. +# target = h3 +# default = no +# OPTFLAGS pass given optimization flags to compiler +# target = sst1, sst96, cvg, h3 +# default = -O2 -ffast-math -mtune=pentium +# DEBUG=1 enable debugging checks and messages +# target = sst1, sst96, cvg, h3 +# default = no +# USE_X86=1 use assembler triangle specializations +# target = sst1, sst96, cvg, h3 +# default = no +# USE_3DNOW=1 allow 3DNow! specializations. However, the true CPU +# capabilities are still checked at run-time to avoid +# crashes. +# target = cvg, h3 +# default = no +# USE_MMX=1 (see USE_3DNOW) +# target = cvg +# default = no +# +# Targets: +# all: build everything +# clean: remove object files +# realclean: remove all generated files +# + +.PHONY: all clean realclean + +export BUILD_NUMBER = 40404 +export FX_GLIDE_HW ?= h3 + +ifeq ($(FX_GLIDE_HW),sst96) +G2_DIR = sst1/glide/src +else +G2_DIR = $(FX_GLIDE_HW)/glide/src +endif + +all: + make -f Makefile.mingw -C $(G2_DIR) +# USE_X86=1 USE_3DNOW=1 USE_MMX=1 + +clean: + make -f Makefile.mingw -C $(G2_DIR) clean + +realclean: + make -f Makefile.mingw -C $(G2_DIR) realclean diff --git a/glide2x/Makefile.win32 b/glide2x/Makefile.win32 new file mode 100644 index 0000000..45f24bb --- /dev/null +++ b/glide2x/Makefile.win32 @@ -0,0 +1,61 @@ +# Win32 makefile for Glide2, using Visual Studio (cl.exe) +# This makefile MUST be processed by GNU make!!! +# +# Copyright (c) 2003 - Daniel Borca +# Email : dborca@users.sourceforge.net +# Web : http://www.geocities.com/dborca +# + +# +# Available options: +# +# Environment variables: +# FX_GLIDE_HW build for the given ASIC (sst1, sst96, cvg, h3). +# default = h3 +# H4=1 High speed Avenger/Napalm. +# target = h3 +# default = no +# OPTFLAGS pass given optimization flags to compiler +# target = sst1, sst96, cvg, h3 +# default = -G6 -O2 (or -Od if DEBUG=1) +# DEBUG=1 enable debugging checks and messages +# target = sst1, sst96, cvg, h3 +# default = no +# USE_X86=1 use assembler triangle specializations +# target = sst1, sst96, cvg, h3 +# default = no +# USE_3DNOW=1 allow 3DNow! specializations. However, the true CPU +# capabilities are still checked at run-time to avoid +# crashes. +# target = cvg, h3 +# default = no +# USE_MMX=1 (see USE_3DNOW) +# target = cvg +# default = no +# +# Targets: +# all: build everything +# clean: remove object files +# realclean: remove all generated files +# + +.PHONY: all clean realclean + +export BUILD_NUMBER = 40404 +export FX_GLIDE_HW ?= h3 + +ifeq ($(FX_GLIDE_HW),sst96) +G2_DIR = sst1\glide\src +else +G2_DIR = $(FX_GLIDE_HW)\glide\src +endif + +all: + make -f Makefile.win32 -C $(G2_DIR) +# USE_X86=1 USE_3DNOW=1 USE_MMX=1 + +clean: + make -f Makefile.win32 -C $(G2_DIR) clean + +realclean: + make -f Makefile.win32 -C $(G2_DIR) realclean