55 lines
981 B
Makefile
55 lines
981 B
Makefile
# DOS/DJGPP tests makefile for Glide3
|
|
#
|
|
# Copyright (c) 2002 - Borca Daniel
|
|
# Email : dborca@yahoo.com
|
|
# Web : http://www.geocities.com/dborca
|
|
#
|
|
# $Header$
|
|
# $Log$
|
|
|
|
|
|
#
|
|
# Available options:
|
|
#
|
|
# Environment variables:
|
|
# CPU optimize for the given processor.
|
|
# default = k6
|
|
# DXE=1 use DXE modules.
|
|
# default = no
|
|
#
|
|
# Targets:
|
|
# <file.exe> build a specific file
|
|
#
|
|
|
|
|
|
.PHONY: all
|
|
.SUFFIXES: .c .o .exe
|
|
.SECONDARY: tlib.o
|
|
|
|
FX_GLIDE_HW = h5
|
|
TOP = ../../..
|
|
CPU ?= k6
|
|
|
|
CC = gcc
|
|
CFLAGS = -Wall -O2 -ffast-math -mcpu=$(CPU)
|
|
CFLAGS += -I$(TOP)/$(FX_GLIDE_HW)/glide3/src -I$(TOP)/$(FX_GLIDE_HW)/incsrc
|
|
CFLAGS += -I$(TOP)/swlibs/fxmisc
|
|
CFLAGS += -D__DOS__ -DH3
|
|
CFLAGS += -D__DOS32__
|
|
|
|
LDFLAGS = -s -L$(TOP)/$(FX_GLIDE_HW)/lib
|
|
|
|
ifdef DXE
|
|
LDLIBS = -lg3i
|
|
else
|
|
LDLIBS = -lglid3
|
|
endif
|
|
|
|
.c.o:
|
|
$(CC) -o $@ $(CFLAGS) -c $<
|
|
%.exe: tlib.o %.o
|
|
$(CC) -o $@ $(LDFLAGS) $^ $(LDLIBS)
|
|
|
|
all:
|
|
$(error Must specify <filename.exe> to build)
|