# Copyright (C) 1996 Keith Whitwell. # This file may only be copied under the terms of the GNU Library General # Public License - see the file COPYING in the lib3d distribution. # MSDOS makefile for djgpp v2 and GNU make # Contributed by Markus F.X.J. Oberhumer include ../Makedefs.dj2 CXXFLAGS += -MD SOURCES1 = \ Debuggable.cc \ HrTimer.cc \ Matrix.cc \ Vector.cc \ Node.cc \ World.cc \ Model.cc \ Camera.cc \ BoundingBox.cc \ Material.cc \ Texture.cc \ ColourRamp.cc \ Light.cc \ Pipeline.cc \ FlatPipeline.cc \ SmoothPipeline.cc \ WirePipeline.cc \ TexturePipeline.cc \ Scene.cc \ Array.cc \ ModelBuilder.cc \ WorldBuilder.cc \ PrimitiveModelBuilder.cc \ PlgReader.cc \ arch/djgpp2.cc SOURCES2 = \ Device.cc \ ADevice.cc \ FileDevice.cc \ PsDevice.cc \ ZBuffer.cc \ Viewport.cc \ View8Dithered.cc \ View8Ci.cc \ View16Bpp.cc \ View32Bpp.cc \ VpNew.cc \ Vp8.cc \ Vp16.cc \ Vp32.cc SOURCES = $(SOURCES1) $(SOURCES2) OBJECTS1 = $(SOURCES1:.cc=$(O)) OBJECTS2 = $(SOURCES2:.cc=$(O)) OBJECTS = $(SOURCES:.cc=$(O)) default all lib: $(LIB3D) $(LIB3D): $(OBJECTS1) lib3d$(O) -$(RM) $@ $(AR) rcs $@ $^ lib3d$(O): $(OBJECTS2) ld -Ur -o $@ $^ # Inspect the quality of the compiled files assembly: $(SOURCES:.cc=.s) # Dependencies are generated automatically by gcc using '-MD' depend: DEPS := $(wildcard *.d) ifneq ($(DEPS),) include $(DEPS) endif cleanlib: -$(RM) $(LIB3D) clean: cleanlib -$(RM) $(CLEAN_FILES) arch/*.o arch/*.obj distclean: clean -$(RM) $(DISTCLEAN_FILES) tags: etags *.H *.cc ../include/Lib3d/*.H ../include/Lib3d/*/*.H