diff --git a/examples/Makefile b/examples/Makefile index c93c0b3..65802ff 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,4 +1,4 @@ -dirs= creational +dirs= creational structural cleandirs= $(dirs:%=clean-%) all: $(dirs) diff --git a/examples/structural/Makefile b/examples/structural/Makefile new file mode 100644 index 0000000..e553d6a --- /dev/null +++ b/examples/structural/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