From c05320d6f0b49a84de882070a838c93e71256872 Mon Sep 17 00:00:00 2001 From: Ian Dinwoodie Date: Sun, 19 May 2019 17:42:16 -0400 Subject: [PATCH] Added makefile for behavioral design patterns. --- examples/Makefile | 2 +- examples/behavioral/Makefile | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 examples/behavioral/Makefile diff --git a/examples/Makefile b/examples/Makefile index 65802ff..274ea48 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,4 +1,4 @@ -dirs= creational structural +dirs= $(wildcard */.) cleandirs= $(dirs:%=clean-%) all: $(dirs) diff --git a/examples/behavioral/Makefile b/examples/behavioral/Makefile new file mode 100644 index 0000000..e553d6a --- /dev/null +++ b/examples/behavioral/Makefile @@ -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