makefile.unx 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. # These are configurable options:
  8. # -------------------------------------------------------------------------
  9. # C++ compiler
  10. CXX = `$(WX_CONFIG) --cxx`
  11. # Standard flags for C++
  12. CXXFLAGS ?=
  13. # Standard preprocessor flags (common for CC and CXX)
  14. CPPFLAGS ?=
  15. # Standard linker flags
  16. LDFLAGS ?=
  17. # Location and arguments of wx-config script
  18. WX_CONFIG ?= wx-config
  19. # Port of the wx library to build against [gtk1,gtk2,msw,x11,motif,osx_cocoa,osx_carbon,dfb]
  20. WX_PORT ?= $(shell $(WX_CONFIG) --query-toolkit)
  21. # Use DLL build of wx library to use? [0,1]
  22. WX_SHARED ?= $(shell if test -z `$(WX_CONFIG) --query-linkage`; then echo 1; else echo 0; fi)
  23. # Compile Unicode build of wxWidgets? [0,1]
  24. WX_UNICODE ?= $(shell $(WX_CONFIG) --query-chartype | sed 's/unicode/1/;s/ansi/0/')
  25. # Version of the wx library to build against.
  26. WX_VERSION ?= $(shell $(WX_CONFIG) --query-version | sed -e 's/\([0-9]*\)\.\([0-9]*\)/\1\2/')
  27. # -------------------------------------------------------------------------
  28. # Do not modify the rest of this file!
  29. # -------------------------------------------------------------------------
  30. ### Variables: ###
  31. CPPDEPS = -MT$@ -MF`echo $@ | sed -e 's,\.o$$,.d,'` -MD -MP
  32. WX_VERSION_MAJOR = $(shell echo $(WX_VERSION) | cut -c1,1)
  33. WX_VERSION_MINOR = $(shell echo $(WX_VERSION) | cut -c2,2)
  34. WX_CONFIG_FLAGS = $(WX_CONFIG_UNICODE_FLAG) $(WX_CONFIG_SHARED_FLAG) \
  35. --toolkit=$(WX_PORT) --version=$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR)
  36. ARTTEST_CXXFLAGS = -I. `$(WX_CONFIG) --cxxflags $(WX_CONFIG_FLAGS)` $(CPPFLAGS) \
  37. $(CXXFLAGS)
  38. ARTTEST_OBJECTS = \
  39. arttest_arttest.o \
  40. arttest_artbrows.o
  41. ### Conditionally set variables: ###
  42. ifeq ($(WX_UNICODE),0)
  43. WX_CONFIG_UNICODE_FLAG = --unicode=no
  44. endif
  45. ifeq ($(WX_UNICODE),1)
  46. WX_CONFIG_UNICODE_FLAG = --unicode=yes
  47. endif
  48. ifeq ($(WX_SHARED),0)
  49. WX_CONFIG_SHARED_FLAG = --static=yes
  50. endif
  51. ifeq ($(WX_SHARED),1)
  52. WX_CONFIG_SHARED_FLAG = --static=no
  53. endif
  54. ### Targets: ###
  55. all: test_for_selected_wxbuild arttest
  56. install:
  57. uninstall:
  58. clean:
  59. rm -f ./*.o
  60. rm -f ./*.d
  61. rm -f arttest
  62. test_for_selected_wxbuild:
  63. @$(WX_CONFIG) $(WX_CONFIG_FLAGS)
  64. arttest: $(ARTTEST_OBJECTS)
  65. $(CXX) -o $@ $(ARTTEST_OBJECTS) $(LDFLAGS) `$(WX_CONFIG) $(WX_CONFIG_FLAGS) --libs core,base`
  66. arttest_arttest.o: ./arttest.cpp
  67. $(CXX) -c -o $@ $(ARTTEST_CXXFLAGS) $(CPPDEPS) $<
  68. arttest_artbrows.o: ./artbrows.cpp
  69. $(CXX) -c -o $@ $(ARTTEST_CXXFLAGS) $(CPPDEPS) $<
  70. .PHONY: all install uninstall clean
  71. # Dependencies tracking:
  72. -include ./*.d