Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This file was automatically generated by bakefile.
- #
- # Any manual changes will be lost if it is regenerated,
- # modify the source .bkl file instead if possible.
- # You may define standard make variables such as CFLAGS or
- # CXXFLAGS to affect the build. For example, you could use:
- #
- # make CXXFLAGS=-g
- #
- # to build with debug information. The full list of variables
- # that can be used by this makefile is:
- # AR, CC, CFLAGS, CPPFLAGS, CXX, CXXFLAGS, LD, LDFLAGS, MAKE, RANLIB.
- # You may also specify config=Debug|Release
- # or their corresponding lower case variants on make command line to select
- # the corresponding default flags values.
- ifeq ($(config),debug)
- override config := Debug
- endif
- ifeq ($(config),release)
- override config := Release
- endif
- ifeq ($(config),Debug)
- CPPFLAGS ?= -DDEBUG
- CFLAGS ?= -g -O0
- CXXFLAGS ?= -g -O0
- LDFLAGS ?= -g
- else ifeq ($(config),Release)
- CPPFLAGS ?= -DNDEBUG
- CFLAGS ?= -O2
- CXXFLAGS ?= -O2
- else ifneq (,$(config))
- $(warning Unknown configuration "$(config)")
- endif
- # Use "make RANLIB=''" for platforms without ranlib.
- RANLIB ?= ranlib
- CC := cc
- CXX := c++
- # The directory for the build files, may be overridden on make command line.
- builddir = .
- all: $(builddir)/main
- $(builddir)/main: $(builddir)/main_muffin.o
- $(CXX) -o $@ $(LDFLAGS) $(builddir)/main_muffin.o -pthread
- $(builddir)/main_muffin.o: muffin.cpp
- $(CXX) -c -o $@ $(CPPFLAGS) $(CXXFLAGS) -MD -MP -pthread muffin.cpp
- clean:
- rm -f *.o
- rm -f *.d
- rm -f $(builddir)/main
- .PHONY: all clean
- # Dependencies tracking:
- -include *.d
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement