makefile.unx 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. ACCESSTEST_CXXFLAGS = -I. `$(WX_CONFIG) --cxxflags $(WX_CONFIG_FLAGS)` \
  37. $(CPPFLAGS) $(CXXFLAGS)
  38. ACCESSTEST_OBJECTS = \
  39. accesstest_accesstest.o
  40. ### Conditionally set variables: ###
  41. ifeq ($(WX_UNICODE),0)
  42. WX_CONFIG_UNICODE_FLAG = --unicode=no
  43. endif
  44. ifeq ($(WX_UNICODE),1)
  45. WX_CONFIG_UNICODE_FLAG = --unicode=yes
  46. endif
  47. ifeq ($(WX_SHARED),0)
  48. WX_CONFIG_SHARED_FLAG = --static=yes
  49. endif
  50. ifeq ($(WX_SHARED),1)
  51. WX_CONFIG_SHARED_FLAG = --static=no
  52. endif
  53. ### Targets: ###
  54. all: test_for_selected_wxbuild accesstest
  55. install:
  56. uninstall:
  57. clean:
  58. rm -f ./*.o
  59. rm -f ./*.d
  60. rm -f accesstest
  61. test_for_selected_wxbuild:
  62. @$(WX_CONFIG) $(WX_CONFIG_FLAGS)
  63. accesstest: $(ACCESSTEST_OBJECTS)
  64. $(CXX) -o $@ $(ACCESSTEST_OBJECTS) $(LDFLAGS) `$(WX_CONFIG) $(WX_CONFIG_FLAGS) --libs core,base`
  65. accesstest_accesstest.o: ./accesstest.cpp
  66. $(CXX) -c -o $@ $(ACCESSTEST_CXXFLAGS) $(CPPDEPS) $<
  67. .PHONY: all install uninstall clean
  68. # Dependencies tracking:
  69. -include ./*.d