# Makefile written by Scott D. Anderson 8/16/2006 as part of an effort to # organize the TW stuff into the usual categories (src/lib/bin). # The flags, such as CFLAGS, CPPFLAGS, LDLIBS, should all be defined # correctly by the main Makefile. TWLIB = ../lib/tw.o FILES = tw-bounding-box.cc tw-camera.cc tw-color.cc tw-fonts.cc \ tw-geometry.cc tw-keyboard.cc tw-lighting.cc tw-menu.cc \ tw-messages.cc tw-mouse.cc tw-objects.cc tw-textures.cc \ tw-window.cc tw-wrappers.cc # This is just the same as the default compilation; it exists only because # I don't want to forget to make the object file world readable. all: $(TWLIB) @echo Done building TW library $(TWLIB): tw.cc tw-bounding-box.cc tw-camera.cc tw-color.cc tw-fonts.cc \ tw-geometry.cc tw-keyboard.cc tw-lighting.cc tw-menu.cc \ tw-messages.cc tw-mouse.cc tw-objects.cc tw-textures.cc \ tw-window.cc tw-wrappers.cc @echo "TWLIB is $(TWLIB)" @echo "LDLIBS is $(LDLIBS)" g++ $(CFLAGS) $(CPPFLAGS) -c tw.cc -o $(TWLIB) chmod a+r $(TWLIB)