1 2############################################################################### 3# MODULE : Make file for plugin example 4# COPYRIGHT : (C) 1999-2008 Joris van der Hoeven 5############################################################################### 6# This software falls under the GNU general public license version 3 or later. 7# It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE 8# in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>. 9############################################################################### 10 11CXX = g++ 12RM = rm -f 13 14FILES_CPP := $(wildcard src/*.cpp) 15FILES_BIN := $(patsubst src/%.cpp,bin/%.bin,$(FILES_CPP)) 16 17all: $(FILES_BIN) 18 19bin/%.bin : src/%.cpp 20 $(CXX) $< -o $@ 21 22clean: 23 $(RM) *~ 24 $(RM) */*~ 25 $(RM) bin/* 26