1# ========================================================================= 2# This makefile was generated by 3# Bakefile 0.2.9 (http://www.bakefile.org) 4# Do not modify, all changes will be overwritten! 5# ========================================================================= 6 7 8 9# ------------------------------------------------------------------------- 10# These are configurable options: 11# ------------------------------------------------------------------------- 12 13# C compiler 14CC = gcc 15 16# C++ compiler 17CXX = g++ 18 19# Standard flags for CC 20CFLAGS ?= 21 22# Standard flags for C++ 23CXXFLAGS ?= 24 25# Standard preprocessor flags (common for CC and CXX) 26CPPFLAGS ?= 27 28# Standard linker flags 29LDFLAGS ?= 30 31# Location and arguments of wx-config script 32WX_CONFIG ?= wx-config 33 34# C flags to use with wxWidgets code 35WX_CFLAGS ?= `$(WX_CONFIG) --cflags` 36 37# C++ flags to use with wxWidgets code 38WX_CXXFLAGS ?= `$(WX_CONFIG) --cxxflags` 39 40 41 42# ------------------------------------------------------------------------- 43# Do not modify the rest of this file! 44# ------------------------------------------------------------------------- 45 46### Variables: ### 47 48CPPDEPS = -MT$@ -MF`echo $@ | sed -e 's,\.o$$,.d,'` -MD -MP 49PENGUIN_CFLAGS = -I. $(WX_CFLAGS) $(CPPFLAGS) $(CFLAGS) 50PENGUIN_CXXFLAGS = -I. $(WX_CXXFLAGS) $(CPPFLAGS) $(CXXFLAGS) 51PENGUIN_OBJECTS = \ 52 penguin_penguin.o \ 53 penguin_dxfrenderer.o \ 54 penguin_trackball.o 55 56### Conditionally set variables: ### 57 58 59 60### Targets: ### 61 62all: penguin 63 64install: 65 66uninstall: 67 68clean: 69 rm -f ./*.o 70 rm -f ./*.d 71 rm -f penguin 72 73penguin: $(PENGUIN_OBJECTS) 74 $(CXX) -o $@ $(PENGUIN_OBJECTS) `$(WX_CONFIG) --libs gl,core,base` $(LDFLAGS) 75 76penguin_penguin.o: ./penguin.cpp 77 $(CXX) -c -o $@ $(PENGUIN_CXXFLAGS) $(CPPDEPS) $< 78 79penguin_dxfrenderer.o: ./dxfrenderer.cpp 80 $(CXX) -c -o $@ $(PENGUIN_CXXFLAGS) $(CPPDEPS) $< 81 82penguin_trackball.o: ./trackball.c 83 $(CC) -c -o $@ $(PENGUIN_CFLAGS) $(CPPDEPS) $< 84 85.PHONY: all install uninstall clean 86 87 88# Dependencies tracking: 89-include ./*.d 90