]> git.mxchange.org Git - flightgear.git/blob - Tri2obj/Makefile
Restructured to split 1deg x 1deg dem's into 64 subsections.
[flightgear.git] / Tri2obj / Makefile
1 #---------------------------------------------------------------------------
2 # Makefile
3 #
4 # Written by Curtis Olson, started October 1997.
5 #
6 # Copyright (C) 1997  Curtis L. Olson  - curt@infoplane.com
7 #
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #
22 # $Id$
23 # (Log is kept at end of this file)
24 #---------------------------------------------------------------------------
25
26
27 TARGET = tri2obj
28
29 CFILES = tri2obj.c
30 OFILES = $(CFILES:.c=.o)
31
32
33 include ../make.inc
34
35
36 CFLAGS = $(FG_CFLAGS) -O3 -fomit-frame-pointer -funroll-all-loops -ffast-math
37
38
39 #---------------------------------------------------------------------------
40 # Primary Targets
41 #---------------------------------------------------------------------------
42
43 all: $(TARGET)
44
45 $(TARGET): $(OFILES)
46         $(CC) $(OFILES) -o $(TARGET) ../../Src/Math/libMath.a -lm
47
48 clean:
49         rm -f *.o $(TARGET) lib*.a *.os2 *~ core
50
51 realclean: clean
52
53
54 #---------------------------------------------------------------------------
55 # Secondary Targets
56 #---------------------------------------------------------------------------
57
58 makedepend:
59         $(CC) -MM *.c > depend
60
61 include depend
62
63 tri2obj.o: tri2obj.c
64         $(CC) $(CFLAGS) -c tri2obj.c -o $@
65
66
67 #---------------------------------------------------------------------------
68 # $Log$
69 # Revision 1.3  1997/12/02 13:13:32  curt
70 # Fixed problem with averaged vertex normals.
71 #
72 # Revision 1.2  1997/11/14 00:29:13  curt
73 # Transform scenery coordinates at this point in pipeline when scenery is
74 # being translated to .obj format, not when it is being loaded into the end
75 # renderer.  Precalculate normals for each node as average of the normals
76 # of each containing polygon so Garoude shading is now supportable.
77 #
78 # Revision 1.1  1997/10/29 23:05:14  curt
79 # Initial revision.
80 #
81 # Revision 1.1  1997/10/23 23:12:09  curt
82 # Initial revision.
83 #