]> git.mxchange.org Git - flightgear.git/blobdiff - Tri2obj/Makefile
Cumulative tweaks.
[flightgear.git] / Tri2obj / Makefile
index 074139b2fa52891c25262763ad7da69460380bba..abc733a8939838cfe479d2391a8e9c4836a7a2b2 100644 (file)
 TARGET = tri2obj
 
 CFILES = tri2obj.c
-OFILES = $(CFILES:.c=.o)
+LDLIBS = -lMath -lScenery -lm
 
 
-include ../make.inc
-
-
-CFLAGS = $(FG_CFLAGS) -g
+include $(FG_ROOT_SRC)/commondefs
 
 
 #---------------------------------------------------------------------------
 # Primary Targets
 #---------------------------------------------------------------------------
 
-all: $(TARGET)
-
-$(TARGET): $(OFILES)
-       $(CC) $(OFILES) -o $(TARGET)
-
-clean:
-       rm -f *.o $(TARGET) lib*.a *.os2 *~ core
-
-realclean: clean
-
-
-#---------------------------------------------------------------------------
-# Secondary Targets
-#---------------------------------------------------------------------------
-
-makedepend:
-       $(CC) -MM *.c > depend
+$(TARGET): $(OBJECTS)
+       $(CC) -o $(TARGET) $(OBJECTS) $(LDFLAGS) $(LDLIBS)
 
-include depend
 
-tri2obj.o: tri2obj.c
-       $(CC) $(CFLAGS) -c tri2obj.c -o $@
+include $(COMMONRULES)
 
 
 #---------------------------------------------------------------------------
 # $Log$
+# Revision 1.5  1998/01/21 02:55:56  curt
+# Incorporated new make system from Bob Kuehne <rpk@sgi.com>.
+#
+# Revision 1.4  1998/01/17 01:25:39  curt
+# Added support for shared normals.
+#
+# Revision 1.3  1997/12/02 13:13:32  curt
+# Fixed problem with averaged vertex normals.
+#
+# Revision 1.2  1997/11/14 00:29:13  curt
+# Transform scenery coordinates at this point in pipeline when scenery is
+# being translated to .obj format, not when it is being loaded into the end
+# renderer.  Precalculate normals for each node as average of the normals
+# of each containing polygon so Garoude shading is now supportable.
+#
 # Revision 1.1  1997/10/29 23:05:14  curt
 # Initial revision.
 #