1
0
Fork 0
flightgear/Scenery/Makefile

79 lines
1.6 KiB
Makefile
Raw Normal View History

1997-05-16 15:58:23 +00:00
#---------------------------------------------------------------------------
# Makefile
#
# Written by Curtis Olson, started May 1997.
#
# $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)
$(TARGET): $(OFILES) $(HFILES)
$(AR) rv $(TARGET) $(OFILES)
clean:
1997-05-17 00:17:01 +00:00
rm -f *.o $(TARGET) parser.output *~ core
1997-05-16 15:58:23 +00:00
#---------------------------------------------------------------------------
# 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$
1997-05-17 00:17:01 +00:00
# Revision 1.2 1997/05/17 00:17:01 curt
# Cosmetic changes.
#
1997-05-16 15:58:23 +00:00
# Revision 1.1 1997/05/16 16:07:02 curt
# Initial revision.
#