]> git.mxchange.org Git - flightgear.git/blob - FixNode/Makefile
236c6acc9439f585db4343cbd7b5f17d95d4f671
[flightgear.git] / FixNode / 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 = fixnode
28
29 CFILES = ../Dem2node/demparse.c fixnode.c main.c ../Dem2node/mesh.c triload.c
30 OFILES = $(CFILES:.c=.o)
31
32
33 include ../make.inc
34
35
36 CFLAGS = $(FG_CFLAGS) -g
37
38
39 #---------------------------------------------------------------------------
40 # Primary Targets
41 #---------------------------------------------------------------------------
42
43 all: $(TARGET)
44
45 $(TARGET): $(OFILES)
46         $(CC) $(OFILES) -o $(TARGET)
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 ../Dem2node/demparse.o: ../Dem2node/demparse.c
64         $(CC) $(CFLAGS) -c ../Dem2node/demparse.c -o $@
65
66 main.o: main.c
67         $(CC) $(CFLAGS) -c main.c -o $@
68
69 mesh.o: mesh.c
70         $(CC) $(CFLAGS) -c mesh.c -o $@
71
72 triload.o: triload.c
73         $(CC) $(CFLAGS) -c triload.c -o $@
74
75
76 #---------------------------------------------------------------------------
77 # $Log$
78 # Revision 1.1  1997/11/27 00:17:32  curt
79 # Initial revision.
80 #