Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. # This file was automatically generated by bakefile.
  2. #
  3. # Any manual changes will be lost if it is regenerated,
  4. # modify the source .bkl file instead if possible.
  5.  
  6. # You may define standard make variables such as CFLAGS or
  7. # CXXFLAGS to affect the build. For example, you could use:
  8. #
  9. # make CXXFLAGS=-g
  10. #
  11. # to build with debug information. The full list of variables
  12. # that can be used by this makefile is:
  13. # AR, CC, CFLAGS, CPPFLAGS, CXX, CXXFLAGS, LD, LDFLAGS, MAKE, RANLIB.
  14.  
  15. # You may also specify config=Debug|Release
  16. # or their corresponding lower case variants on make command line to select
  17. # the corresponding default flags values.
  18. ifeq ($(config),debug)
  19. override config := Debug
  20. endif
  21. ifeq ($(config),release)
  22. override config := Release
  23. endif
  24. ifeq ($(config),Debug)
  25. CPPFLAGS ?= -DDEBUG
  26. CFLAGS ?= -g -O0
  27. CXXFLAGS ?= -g -O0
  28. LDFLAGS ?= -g
  29. else ifeq ($(config),Release)
  30. CPPFLAGS ?= -DNDEBUG
  31. CFLAGS ?= -O2
  32. CXXFLAGS ?= -O2
  33. else ifneq (,$(config))
  34. $(warning Unknown configuration "$(config)")
  35. endif
  36.  
  37. # Use "make RANLIB=''" for platforms without ranlib.
  38. RANLIB ?= ranlib
  39.  
  40. CC := cc
  41. CXX := c++
  42.  
  43. # The directory for the build files, may be overridden on make command line.
  44. builddir = .
  45.  
  46. all: $(builddir)/main
  47.  
  48. $(builddir)/main: $(builddir)/main_muffin.o
  49. $(CXX) -o $@ $(LDFLAGS) $(builddir)/main_muffin.o -pthread
  50.  
  51. $(builddir)/main_muffin.o: muffin.cpp
  52. $(CXX) -c -o $@ $(CPPFLAGS) $(CXXFLAGS) -MD -MP -pthread muffin.cpp
  53.  
  54. clean:
  55. rm -f *.o
  56. rm -f *.d
  57. rm -f $(builddir)/main
  58.  
  59. .PHONY: all clean
  60.  
  61. # Dependencies tracking:
  62. -include *.d
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement