# /usr/share/doc/libscscp-doc/examples/Makefile # # Ad hoc Makefile for building and playing with the sample sources # distributed within the debian package libscscp-doc. # # Recommended usage: # create a dedicated folder somewhere in your HOME directory; # link all the files in /usr/share/doc/libscscp-doc/examples in the dedicated folder; # launch this Makefile in the dedicated folder: # $ make ; # for a basic cleanup, consider the clean target: # $ make clean ; # for an entire cleanup, the maintainer-clean target: # $ make maintainer-clean ; # for other targets, just read the Makefile. # # written for Debian by Jerome Benoit # on behalf of the Debian Science Team # copyright: 2016-2018 Jerome Benoit # distributed under the terms and conditions of GPL version 3 or later # default: all PROGRAMS = \ $(patsubst %.c,%,$(wildcard *.c)) \ $(patsubst %.cpp,%,$(wildcard *.cpp)) CFLAGS = $(shell pkg-config libscscp-c --cflags) LDLIBS = $(shell pkg-config libscscp-c --libs) CXXFLAGS = $(shell pkg-config libscscp-cxx --cflags) LDXXLIBS = $(shell pkg-config libscscp-cxx --libs) all: build check build: $(PROGRAMS) check: build clean: $(RM) $(PROGRAMS) maintainer-clean: clean % : %.cpp $(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ $< $(LDXXLIBS)