]> git.mxchange.org Git - flightgear.git/blobdiff - FixNode/Makefile
Incorporated new make system from Bob Kuehne <rpk@sgi.com>.
[flightgear.git] / FixNode / Makefile
index 236c6acc9439f585db4343cbd7b5f17d95d4f671..80e346cd38e84c94a36d20324e884649a74c9019 100644 (file)
 
 TARGET = fixnode
 
-CFILES = ../Dem2node/demparse.c fixnode.c main.c ../Dem2node/mesh.c triload.c
-OFILES = $(CFILES:.c=.o)
+CFILES = fixnode.c main.c triload.c
+LDLIBS = ../Dem2node/demparse.o ../Dem2node/mesh.o -lm
 
 
-include ../make.inc
-
-
-CFLAGS = $(FG_CFLAGS) -g
-
-
-#---------------------------------------------------------------------------
-# Primary Targets
-#---------------------------------------------------------------------------
-
-all: $(TARGET)
-
-$(TARGET): $(OFILES)
-       $(CC) $(OFILES) -o $(TARGET)
-
-clean:
-       rm -f *.o $(TARGET) lib*.a *.os2 *~ core
-
-realclean: clean
+include $(FG_ROOT_SRC)/commondefs
 
 
 #---------------------------------------------------------------------------
-# Secondary Targets
+# Rule for TARGET
 #---------------------------------------------------------------------------
 
-makedepend:
-       $(CC) -MM *.c > depend
-
-include depend
+$(TARGET): $(OBJECTS)
+       $(CC) -o $(TARGET) $(OBJECTS) $(LDFLAGS) $(LDLIBS)
 
-../Dem2node/demparse.o: ../Dem2node/demparse.c
-       $(CC) $(CFLAGS) -c ../Dem2node/demparse.c -o $@
 
-main.o: main.c
-       $(CC) $(CFLAGS) -c main.c -o $@
-
-mesh.o: mesh.c
-       $(CC) $(CFLAGS) -c mesh.c -o $@
-
-triload.o: triload.c
-       $(CC) $(CFLAGS) -c triload.c -o $@
+include $(COMMONRULES)
 
 
 #---------------------------------------------------------------------------
 # $Log$
+# Revision 1.2  1998/01/21 02:55:50  curt
+# Incorporated new make system from Bob Kuehne <rpk@sgi.com>.
+#
 # Revision 1.1  1997/11/27 00:17:32  curt
 # Initial revision.
 #