File: Makefile

package info (click to toggle)
primecount 8.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,648 kB
  • sloc: cpp: 21,887; ansic: 121; sh: 100; makefile: 89
file content (41 lines) | stat: -rw-r--r-- 1,159 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# /usr/share/doc/primecount/examples/cpp/Makefile
#
# Ad hoc Makefile for building and playing with the sample sources
# distributed within the debian package primecount-doc.
#
# Recommended usage:
#  create a dedicated folder somewhere in your HOME directory;
#  link all the files in /usr/share/doc/primecount/examples/cpp
#  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 <calculus@rezozer.net>
# on behalf of the Debian Math Team
# copyright: 2022-2026 Jerome Benoit <calculus@rezozer.net>
# distributed under the terms and conditions of BSD-2-clause
#

PROGRAMS = $(patsubst %.cpp,%,$(wildcard *.cpp))

default: all

CXXFLAGS = $(shell pkg-config primecount --cflags)
LDLIBS = $(shell pkg-config primecount --libs)

all: build

build: $(PROGRAMS)

check: build
	$(foreach eg, $(PROGRAMS), echo "*** $(eg) ***" ; ./$(eg) ; )

clean:
	$(RM) $(PROGRAMS)

maintainer-clean: clean