Skip to content
Snippets Groups Projects
Commit 240d9200 authored by Recolic K's avatar Recolic K
Browse files

improve-makefile

parent 4c669bb4
No related branches found
No related tags found
No related merge requests found
Pipeline #894 canceled with stage
......@@ -40,19 +40,27 @@ endif
POSTFIX=$(STD)_$(CXX)
all: string common header-include-all
# all: string common header-include-all
common:
$(CXX) $(CXXFLAGS) src/common.cc $(CXXFLAGS) -o src/common_$(POSTFIX).out
src/common_$(POSTFIX).out
all: string.test common.test pool.test threading.test header-include-all.test
string:
$(CXX) $(CXXFLAGS) src/string.cc $(CXXFLAGS) -o src/string_$(POSTFIX).out
src/string_$(POSTFIX).out
%.test: src/%.cc
@echo Testing $< ...
$(CXX) $< $(CXXFLAGS) -o src/$@_$(POSTFIX).out
src/$@_$(POSTFIX).out
header-include-all:
$(CXX) $(CXXFLAGS) src/header-include-all.cc $(CXXFLAGS) -o src/header-include-all_$(POSTFIX).out
src/header-include-all_$(POSTFIX).out
# common:
# $(CXX) $(CXXFLAGS) src/common.cc $(CXXFLAGS) -o src/common_$(POSTFIX).out
# src/common_$(POSTFIX).out
#
# string:
# $(CXX) $(CXXFLAGS) src/string.cc $(CXXFLAGS) -o src/string_$(POSTFIX).out
# src/string_$(POSTFIX).out
#
# header-include-all:
# $(CXX) $(CXXFLAGS) src/header-include-all.cc $(CXXFLAGS) -o src/header-include-all_$(POSTFIX).out
# src/header-include-all_$(POSTFIX).out
clean:
rm -f src/*.out
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment