Added makefile for behavioral design patterns.

This commit is contained in:
Ian Dinwoodie
2019-05-19 17:42:16 -04:00
parent 7a245e5ebf
commit c05320d6f0
2 changed files with 14 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
dirs= creational structural dirs= $(wildcard */.)
cleandirs= $(dirs:%=clean-%) cleandirs= $(dirs:%=clean-%)
all: $(dirs) all: $(dirs)

View File

@@ -0,0 +1,13 @@
targets = $(basename $(wildcard *.cpp))
CXXFLAGS= -std=c++11 -g -Wall -Werror
all: $(targets)
$(targets): %: %.cpp
$(CXX) $(CXXFLAGS) -o $@ $^
clean:
$(RM) $(targets)
.PHONY: all clean