Debian Codegraph @

debian/adhoc/examples/Makefile

raw
1 # /usr/share/doc/nauty-doc/examples/Makefile
2 #
3 # Ad hoc Makefile for building and playing with the sample sources
4 # distributed within the debian package nauty-doc.
5 #
6 # Recommended usage:
7 # create a dedicated folder somewhere in your HOME directory;
8 # link all the files in /usr/share/doc/nauty-doc/examples in the dedicated folder;
9 # launch this Makefile in the dedicated folder:
10 # $ make ;
11 # for a basic cleanup, consider the clean target:
12 # $ make clean ;
13 # for an entire cleanup, the maintainer-clean target:
14 # $ make maintainer-clean ;
15 # for other targets, just read the Makefile.
16 #
17 # written for Debian by Jerome Benoit <[email protected]>
18 # on behalf of the Debian Science Team
19 # copyright: 2016 Jerome Benoit <[email protected]>
20 # distributed under the terms and conditions of Apache 2.0
21 #
22
23 PROGRAMS = $(patsubst %.c,%,$(wildcard *.c))
24
25 default: all
26
27 CFLAGS = $(shell pkg-config nauty --cflags)
28 LDLIBS = $(shell pkg-config nauty --libs)
29
30 all: build
31
32 callgeng: callgeng.c /usr/share/nauty/geng.c
33 $(CC) $(CFLAGS) -DOUTPROC=myoutproc -DGENG_MAIN=geng_main \
34 -Wno-implicit-function-declaration $^ $(LDLIBS) -o $@
35
36 build: $(PROGRAMS)
37
38 check: build
39 @true
40
41 clean:
42 $(RM) $(PROGRAMS)
43
44 maintainer-clean: clean