Advertisement
Guest User

Untitled

a guest
Apr 14th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.37 KB | None | 0 0
  1. TARGET = main.out
  2. CFLAGS = -std=c++11
  3. CXX = g++
  4. # XXX: Don't forget backslash at the end of any line except the last one
  5. HDRS = \
  6.        project/include
  7.  
  8. SRCS = \
  9.        project/src/main.cpp \
  10.        project/src/utils.cpp
  11.  
  12. .PHONY: all clean
  13.  
  14. all: $(SRCS)
  15.     $(CXX) -Wall -Wextra -Werror $(addprefix -I,$(HDRS)) -o $(TARGET) $(CFLAGS) $(SRCS)
  16.  
  17. clean:
  18.     rm -rf $(TARGET)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement