]> git.mxchange.org Git - flightgear.git/blobdiff - Scenery/Makefile
Changed #ifdef FILE_H to #ifdef _FILE_H
[flightgear.git] / Scenery / Makefile
index e3a5c1f773ddaa3f3dc8d44ffc0b5a55688933e2..87786dc632f70f4187b681ed7444bb65e406e2e5 100644 (file)
@@ -3,73 +3,36 @@
 #
 # Written by Curtis Olson, started May 1997.
 #
+# Copyright (C) 1997  Curtis L. Olson  - curt@infoplane.com
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
 # $Id$
 # (Log is kept at end of this file)
 #---------------------------------------------------------------------------
 
 
-TARGET = libscenery.a
-
-CFILES = scanner.c parser.c common.c mesh.c
-HFILES = 
-LFILES = scanner.l
-YFILES = parser.y
-OFILES = $(CFILES:.c=.o)
-
-CC = gcc
-CFLAGS = -g -Wall
-# CFLAGS = -O2 -Wall
-
-FLEX = flex
-BISON = bison -v
-AR = ar
-
-INCLUDES = 
-
-LIBS = -lfl
-
-
-#---------------------------------------------------------------------------
-# Primary Targets
-#---------------------------------------------------------------------------
-
-all: $(TARGET)
+ARLIBRARY = libScenery.a
+TARGETS = $(ARLIBRARY)
 
-$(TARGET): $(OFILES) $(HFILES)
-       $(AR) rv $(TARGET) $(OFILES)
+CFILES = common.c geometry.c mesh.c obj.c scenery.c texload.c \
+       tilemgr.c tileutils.c
+CXXFILES = 
 
-clean:
-       rm -f *.o $(TARGET) *~ core
+LDIRT = $(FG_ROOT_LIB)/$(ARLIBRARY)
 
+include $(FG_ROOT_SRC)/commondefs
 
-#---------------------------------------------------------------------------
-# Secondary Targets
-#---------------------------------------------------------------------------
-
-scanner.c: scanner.l parser.h
-       $(FLEX) -oscanner.c scanner.l
-
-scanner.o: scanner.c
-       $(CC) $(CFLAGS) -c scanner.c
-
-parser.h: parser.y
-       $(BISON) -o parser.c -d parser.y
-
-parser.c: parser.y common.h mesh.h scenery.h
-       $(BISON) -o parser.c parser.y
-
-parser.o: parser.c
-       $(CC) $(CFLAGS) -c parser.c
-
-common.o: common.c common.h
-       $(CC) $(CFLAGS) -c common.c
-
-mesh.o: mesh.c mesh.h common.h
-       $(CC) $(CFLAGS) -c mesh.c
-
-
-#---------------------------------------------------------------------------
-# $Log$
-# Revision 1.1  1997/05/16 16:07:02  curt
-# Initial revision.
-#
+include $(COMMONRULES)