1 # Mesa 3-D graphics library
4 # Copyright (C) 1999 Brian Paul All Rights Reserved.
6 # Permission is hereby granted, free of charge, to any person obtaining a
7 # copy of this software and associated documentation files (the "Software"),
8 # to deal in the Software without restriction, including without limitation
9 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 # and/or sell copies of the Software, and to permit persons to whom the
11 # Software is furnished to do so, subject to the following conditions:
13 # The above copyright notice and this permission notice shall be included
14 # in all copies or substantial portions of the Software.
16 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17 # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 # BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 # DOS/DJGPP glut makefile v0.2 for Mesa 4.0
25 # Copyright (C) 2002 - Borca Daniel
26 # Email : dborca@yahoo.com
27 # Web : http://www.geocities.com/dborca
34 CFLAGS = -I$(TOP)/include -Wall -W -Wno-unused -mcpu=pentium -ffast-math -O2
61 SOURCES = $(CORE_SOURCES)
63 OBJECTS = $(SOURCES:.c=.o) $(PC_HW_OBJECTS)
66 gcc -o $@ -c $(CFLAGS) $<
68 gcc -o $@ -c $(CFLAGS) $(<:.s=.S)
70 gcc -o $@ -c $(CFLAGS) $<
72 all: $(LIBDIR)/$(GLUT_LIB)
74 $(LIBDIR)/$(GLUT_LIB): $(OBJECTS)
75 $(AR) $(ARFLAGS) $(LIBDIR)/$(GLUT_LIB) $(OBJECTS)
81 callback.o: callback.c ../include/GL/glut.h internal.h PC_HW/pc_hw.h
82 color.o: color.c ../include/GL/glut.h
83 font.o: font.c ../include/GL/glut.h
84 globals.o: globals.c ../include/GL/glut.h internal.h PC_HW/pc_hw.h
85 init.o: init.c ../include/GL/glut.h internal.h PC_HW/pc_hw.h
86 menu.o: menu.c ../include/GL/glut.h
87 models.o: models.c ../include/GL/glut.h
88 overlay.o: overlay.c ../include/GL/glut.h
89 state.o: state.c ../include/GL/glut.h internal.h pc_hw/pc_hw.h
90 teapot.o: teapot.c ../include/GL/glut.h
91 window.o: window.c ../include/GL/glut.h ../include/GL/dmesa.h internal.h \
94 PC_HW/pc_hw.o: PC_HW/pc_hw.c PC_HW/pc_hw.h
95 PC_HW/pc_keyb.o: PC_HW/pc_keyb.c PC_HW/pc_hw.h
96 PC_HW/pc_mouse.o: PC_HW/pc_mouse.c PC_HW/pc_hw.h
97 PC_HW/pc_timer.o: PC_HW/pc_timer.c PC_HW/pc_hw.h
98 PC_HW/pc_irq.o: PC_HW/pc_irq.S