added .SUFFIXES : .cc line
[mesa.git] / Makefile.wfx
1 # Mesa 3-D graphics library
2 # Version: 5.1
3 #
4 # Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
5 #
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:
12 #
13 # The above copyright notice and this permission notice shall be included
14 # in all copies or substantial portions of the Software.
15 #
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.
22
23 # Win32/FX makefile for Mesa
24 #
25 # Copyright (c) 2003 - Hiroshi Morii
26 # Email : koolsmoky@users.sourceforge.net
27 # URL : http://www.3dfxzone.it/koolsmoky
28
29 # Debug build : nmake -f Makefile.wfx debug
30 # Optimized build : nmake -f Makefile.wfx
31 # Remove objects : nmake -f Makefile.wfx clean
32 # Remove files in bin, lib : nmake -f Makefile.wfx clobber
33 # Remove all generated files : nmake -f Makefile.wfx realclean
34
35 # Build the libs
36 SUBDIRS = src\mesa.dir
37 DBGBUILD = $(SUBDIRS:.dir=.debug)
38 CLEAN = $(SUBDIRS:.dir=.clean)
39 CLOBBER = $(SUBDIRS:.dir=.clobber)
40 REALCLEAN = $(SUBDIRS:.dir=.realclean)
41 LIBDIR = lib
42
43 # default rule
44 default : $(LIBDIR) $(SUBDIRS)
45
46 # debug build rules
47 debug : $(LIBDIR) $(DBGBUILD)
48
49 # cleanup rules
50 clean : $(CLEAN)
51 clobber : $(CLOBBER)
52 realclean : $(REALCLEAN)
53
54 # inference rules
55 $(LIBDIR):
56 @echo.
57 @mkdir $(LIBDIR)
58
59 $(SUBDIRS):
60 @echo.
61 @cd $*
62 @nmake -f Makefile.wfx
63 @cd ..
64
65 $(DBGBUILD):
66 @echo.
67 @cd $*
68 @nmake -f Makefile.wfx DEBUG=1
69 @cd ..
70
71 $(CLEAN):
72 @echo.
73 @cd $*
74 @nmake -f Makefile.wfx clean
75 @cd ..
76
77 $(CLOBBER):
78 @echo.
79 @cd $*
80 @nmake -f Makefile.wfx clobber
81 @cd ..
82
83 $(REALCLEAN):
84 @echo.
85 @cd $*
86 @nmake -f Makefile.wfx realclean
87 @cd ..