From 05ed911aca5ad0a6842ea0d6f3ac99b79ec752db Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 3 Sep 2002 18:11:32 +0000 Subject: updates from Daniel Borca --- src/glu/mesa/Makefile.DJ | 42 ++++++++++++++++++++++++++++-------------- 1 file changed, 28 insertions(+), 14 deletions(-) (limited to 'src/glu') diff --git a/src/glu/mesa/Makefile.DJ b/src/glu/mesa/Makefile.DJ index 5b9ae7b6f0..f05eca14c8 100644 --- a/src/glu/mesa/Makefile.DJ +++ b/src/glu/mesa/Makefile.DJ @@ -20,31 +20,45 @@ # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# DOS/DJGPP glu makefile v1.0 for Mesa 4.0 +# DOS/DJGPP glu makefile v1.1 for Mesa 4.0 # # Copyright (C) 2002 - Borca Daniel # Email : dborca@yahoo.com # Web : http://www.geocities.com/dborca +# +# Available options: +# +# Environment variables: +# CFLAGS +# +# Targets: +# all: build GLU +# clean: remove object files +# + + + .PHONY: all clean TOP = .. +LIBDIR = $(TOP)/lib +GLU_LIB = libglu.a +GLU_DXE = glu.dxe +GLU_IMP = libiglu.a + CC = gcc -CFLAGS = -I$(TOP)/include -Wall -W -Wno-unused -mcpu=$(CPU) -ffast-math -O2 +CFLAGS += -I$(TOP)/include + AR = ar -ARFLAGS = ruv -LIBDIR = $(TOP)/lib +ARFLAGS = ru -ifeq ($(wildcard $(DJDIR)/lib/dxe2.ld),) -DXE2GEN = -else +ifneq ($(wildcard $(DJDIR)/lib/dxe2.ld),) DXE2GEN = $(wildcard $(addsuffix /dxe2gen.exe,$(subst ;, ,$(PATH)))) endif -GLU_LIB = libglu.a -GLU_DXE = glu.dxe -GLU_IMP = libiglu.a +RM = del CORE_SOURCES = \ glu.c \ @@ -64,7 +78,7 @@ SOURCES = $(CORE_SOURCES) OBJECTS = $(SOURCES:.c=.o) .c.o: - gcc -o $@ -c $(CFLAGS) $< + $(CC) -o $@ -c $(CFLAGS) $< all: $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLU_DXE) $(LIBDIR)/$(GLU_IMP) @@ -76,10 +90,10 @@ ifeq ($(DXE2GEN),) $(warning Missing DXE2GEN and/or DXE2.LD! You must have DXE2GEN) $(warning somewhere in PATH, and DXE2.LD in DJGPP/LIB directory.) else - dxe2gen -o $(LIBDIR)/$(GLU_DXE) -I $(LIBDIR)/$(GLU_IMP) $(OBJECTS) -D "Mesa DOS GLU" -U + -dxe2gen -o $(LIBDIR)/$(GLU_DXE) -I $(LIBDIR)/$(GLU_IMP) $(OBJECTS) -E djgpp_ -E glu -D "Mesa DJGPP GLU" -U endif clean: - -$(RM) *.o + -$(RM) $(subst /,\,*.o) -include depend +-include depend -- cgit v1.2.3