mirror of
https://github.com/iandinwoodie/cpp-design-patterns-for-humans.git
synced 2025-12-16 20:17:08 +03:00
Added makefile for behavioral design patterns.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
dirs= creational structural
|
dirs= $(wildcard */.)
|
||||||
cleandirs= $(dirs:%=clean-%)
|
cleandirs= $(dirs:%=clean-%)
|
||||||
|
|
||||||
all: $(dirs)
|
all: $(dirs)
|
||||||
|
|||||||
13
examples/behavioral/Makefile
Normal file
13
examples/behavioral/Makefile
Normal 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
|
||||||
Reference in New Issue
Block a user