51 lines
1.0 KiB
Makefile
51 lines
1.0 KiB
Makefile
# Win32 tests makefile for Glide3
|
|
# This makefile MUST be processed by GNU make!!!
|
|
#
|
|
# Copyright (c) 2004 - Borca Daniel
|
|
# Email : dborca@users.sourceforge.net
|
|
# Web : http://www.geocities.com/dborca
|
|
#
|
|
# $Header$
|
|
#
|
|
|
|
|
|
#
|
|
# Available options:
|
|
#
|
|
# Environment variables:
|
|
# FX_GLIDE_HW build for the given ASIC (h3).
|
|
# default = h3
|
|
# CPU optimize for the given processor.
|
|
# default = 6
|
|
#
|
|
# Targets:
|
|
# <file.exe> build a specific file
|
|
#
|
|
|
|
|
|
.PHONY: all
|
|
.SUFFIXES: .c .obj .exe
|
|
.SECONDARY: tlib.obj
|
|
|
|
FX_GLIDE_HW ?= h3
|
|
TOP = ../../..
|
|
CPU ?= 6
|
|
|
|
CC = cl
|
|
CFLAGS = -nologo -W3 -WX -D__MSC__=1 -DNDEBUG -G$(CPU) -O2 -MT
|
|
CFLAGS += -I$(TOP)/$(FX_GLIDE_HW)/glide3/src -I$(TOP)/$(FX_GLIDE_HW)/incsrc
|
|
CFLAGS += -I$(TOP)/swlibs/fxmisc
|
|
CFLAGS += -D__WIN32__ -DH3
|
|
|
|
LD = link
|
|
LDFLAGS = -nologo -opt:WIN98 -machine:IX86
|
|
LDLIBS = user32.lib gdi32.lib $(TOP)/$(FX_GLIDE_HW)/lib/glide3x.lib
|
|
|
|
.c.obj:
|
|
$(CC) -Fo$@ $(CFLAGS) -c $<
|
|
%.exe: tlib.obj %.obj
|
|
$(LD) -out:$@ $(LDFLAGS) $^ $(LDLIBS)
|
|
|
|
all:
|
|
$(error Must specify <filename.exe> to build)
|