TARGET = libScenery.a
-CFILES = common.c mesh.c
+CFILES = common.c mesh.c scenery.c scanner.c parser.c geometry.c
HFILES =
OFILES = $(CFILES:.c=.o)
-CC = gcc
-CFLAGS = $(FG_CFLAGS)
-AR = ar
+include ../make.inc
+
-INCLUDES =
+CFLAGS = $(FG_CFLAGS)
#---------------------------------------------------------------------------
# Primary Targets
#---------------------------------------------------------------------------
-$(TARGET): $(OFILES) $(HFILES)
+$(TARGET): $(OFILES) $(HFILES)
$(AR) rv $(TARGET) $(OFILES)
+ $(RANLIB) $(TARGET)
all: $(TARGET)
-dep:
- $(CC) -MM *.c > depend
-
clean:
rm -f *.o $(TARGET) lib*.a *~ core
+realclean: clean
+ rm -f scanner.c parser.c parser.h parser.output
+
#---------------------------------------------------------------------------
# Secondary Targets
include depend
+scanner.c: scanner.l parser.h
+ $(FLEX) -oscanner.c scanner.l
+
+parser.h: parser.y
+ $(BISON) -o parser.c -d parser.y
+
+parser.c: parser.y
+ $(BISON) -o parser.c parser.y
+
+scanner.o: scanner.c
+ $(CC) $(CFLAGS) -c scanner.c
+
+parser.o: parser.c
+ $(CC) $(CFLAGS) -c parser.c
+
common.o:
$(CC) $(CFLAGS) -c common.c
mesh.o:
$(CC) $(CFLAGS) -c mesh.c
+scenery.o:
+ $(CC) $(CFLAGS) -c scenery.c
+
+geometry.o:
+ $(CC) $(CFLAGS) -c geometry.c
#---------------------------------------------------------------------------
# $Log$
+# Revision 1.15 1997/07/12 02:24:47 curt
+# Added ranlib.
+#
+# Revision 1.14 1997/06/29 21:16:47 curt
+# More twiddling with the Scenery Management system.
+#
+# Revision 1.13 1997/06/27 21:38:10 curt
+# Working on Makefile structure.
+#
+# Revision 1.12 1997/06/27 20:03:37 curt
+# Working on Makefile structure.
+#
+# Revision 1.11 1997/06/26 22:14:57 curt
+# Beginning work on a scenery management system.
+#
# Revision 1.10 1997/06/26 19:08:34 curt
# Restructuring make, adding automatic "make dep" support.
#