Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. INCLUDES = -Iinclude -Iinclude/MyInclude
  2. CXXFLAGS += $(INCLUDES) -MD -pipe -Wall -Wextra -std=c++11 -fPIC
  3. CFLAGS += $(INCLUDES) -MD -pipe -Wall -Wextra -std=c99 -fPIC
  4. SRCS = MyFile.cpp MyFile2.cpp
  5. C_SRCS = MyCFile.c
  6. OBJS = $(SRCS:.cpp=.o) $(C_SRCS:.c=.o)
  7. DEPS = $(SRCS:.cpp=.d) $(C_SRCS:.c=.d)
  8. OUT = coreupdater
  9.  
  10. .PHONY: all clean
  11.  
  12. all: $(OBJS)
  13. $(CXX) $(CXXFLAGS) -o $(OUT) $(OBJS)
  14.  
  15. clean:
  16. rm -f $(OBJS) $(DEPS) $(OUT)
  17.  
  18. -include $(DEPS)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement