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# Compiler flags to link loadable module 14LINK_MODULE_FLAGS ?= -shared 15 16# C++ compiler 17CXX = g++ 18 19# Standard flags for C++ 20CXXFLAGS ?= 21 22# Standard preprocessor flags (common for CC and CXX) 23CPPFLAGS ?= 24 25# Standard linker flags 26LDFLAGS ?= 27 28# Location and arguments of wx-config script 29WX_CONFIG ?= wx-config 30 31# C++ flags to use with wxWidgets code 32WX_CXXFLAGS ?= `$(WX_CONFIG) --cxxflags` 33 34# Build shared lib plugin 35SHARED ?= 0 36 37 38 39# ------------------------------------------------------------------------- 40# Do not modify the rest of this file! 41# ------------------------------------------------------------------------- 42 43### Variables: ### 44 45CPPDEPS = -MT$@ -MF`echo $@ | sed -e 's,\.o$$,.d,'` -MD -MP 46RENDER_CXXFLAGS = -I. $(WX_CXXFLAGS) $(CPPFLAGS) $(CXXFLAGS) 47RENDER_OBJECTS = \ 48 render_render.o 49RENDDLL_CXXFLAGS = -I. -fPIC -DPIC $(WX_CXXFLAGS) $(CPPFLAGS) $(CXXFLAGS) 50RENDDLL_OBJECTS = \ 51 renddll_renddll.o 52 53### Conditionally set variables: ### 54 55ifeq ($(SHARED),1) 56__renddll___depname = renddll.so 57endif 58 59 60### Targets: ### 61 62all: render $(__renddll___depname) 63 64install: 65 66uninstall: 67 68clean: 69 rm -f ./*.o 70 rm -f ./*.d 71 rm -f render 72 rm -f renddll.so 73 74render: $(RENDER_OBJECTS) 75 $(CXX) -o $@ $(RENDER_OBJECTS) `$(WX_CONFIG) --libs core,base` $(LDFLAGS) 76 77ifeq ($(SHARED),1) 78renddll.so: $(RENDDLL_OBJECTS) 79 $(CXX) $(LINK_MODULE_FLAGS) -fPIC -o $@ $(RENDDLL_OBJECTS) `$(WX_CONFIG) --libs core,base` $(LDFLAGS) 80endif 81 82render_render.o: ./render.cpp 83 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $< 84 85renddll_renddll.o: ./renddll.cpp 86 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $< 87 88.PHONY: all install uninstall clean 89 90 91# Dependencies tracking: 92-include ./*.d 93