Remove remaining miniglx references
[mesa.git] / progs / windml / Makefile.ugl
1 # Mesa 3-D graphics library
2 # Version: 3.5
3 #
4 # Copyright (C) 2001 Wind River Systems, Inc
5
6 # The MIT License
7 # Permission is hereby granted, free of charge, to any person obtaining a
8 # copy of this software and associated documentation files (the "Software"),
9 # to deal in the Software without restriction, including without limitation
10 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
11 # and/or sell copies of the Software, and to permit persons to whom the
12 # Software is furnished to do so, subject to the following conditions:
13 #
14 # The above copyright notice and this permission notice shall be included
15 # in all copies or substantial portions of the Software.
16 #
17 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23 # DEALINGS IN THE SOFTWARE.
24
25 # Makefile for UGL/Mesa demos
26
27 DEMO_SOURCES = readtex.c uglaccum.c uglalldemos.c uglbounce.c uglcube.c \
28 ugldrawpix.c uglflip.c uglgears.c uglicotorus.c uglline.c uglolympic.c \
29 uglpoint.c uglstencil.c uglteapot.c ugltexcube.c ugltexcyl.c
30 #win2d3d/winRoot.c win2d3d/winBall.c win2d3d/winPuzzle.c win2d3d/winHello.c \
31 #win2d3d/winImage.c win2d3d/winGears.c
32
33 DEMO_OBJECTS = $(DEMO_SOURCES:.c=.o)
34
35 SOURCES = $(DEMO_SOURCES)
36
37 include ../rules.windml
38
39 ##### TARGETS #####
40
41 all: depend.$(CPU)$(TOOL) $(DEMO_OBJECTS)
42
43 depend.$(CPU)$(TOOL):
44 ifeq ($(WIND_HOST_TYPE),x86-win32)
45 @ $(RM) $@
46 @ $(ECHO) Creating depend.$(CPU)$(TOOL)
47 ifneq ($(SOURCES),)
48 @ for %f in ($(SOURCES)) do \
49 $(CC) -MM $(CFLAGS) %f >>$@
50 endif
51 else
52 Makefile
53 @ $(RM) $@
54 @ $(ECHO) "Creating depend.$(CPU)$(TOOL)"
55 ifneq ($(SOURCES),)
56 @ for FILE in $(filter-out $(NODEPENDOBJS), $(SOURCES)); \
57 do \
58 $(CC) -MM $(CFLAGS) $$FILE \
59 | $(TCL) $(BIN_DIR)/depend.tcl $(TGT_DIR) >>$@; \
60 done
61 endif
62 endif
63
64 .PHONY = clean
65
66 clean:
67 $(RM) $(DEMO_OBJECTS)
68 $(RM) depend.$(CPU)$(TOOL)