| 1 |
# /usr/share/doc/libmpfi-doc/examples/Makefile |
| 2 |
# |
| 3 |
# Ad hoc Makefile for building and playing with the sample sources |
| 4 |
# distributed within the debian package libmpfi-doc. |
| 5 |
# |
| 6 |
# Recommended usage: |
| 7 |
# create a dedicated folder somewhere in your HOME directory; |
| 8 |
# link all the files in /usr/share/doc/libmpfi-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-2024 Jerome Benoit <[email protected]> |
| 20 |
# distributed under the terms and conditions of GPL version 2 or later |
| 21 |
# |
| 22 |
|
| 23 |
PROGRAMS = $(patsubst %.c,%,$(wildcard *.c)) |
| 24 |
|
| 25 |
default: all |
| 26 |
|
| 27 |
LDLIBS = -lmpfi -lmpfr -lgmp -lm |
| 28 |
|
| 29 |
all: build |
| 30 |
|
| 31 |
build: $(PROGRAMS) |
| 32 |
|
| 33 |
check: build |
| 34 |
@$(foreach eg, $(PROGRAMS), echo "*** $(eg) ***" ; ./$(eg) ; ) |
| 35 |
|
| 36 |
clean: |
| 37 |
$(RM) $(PROGRAMS) |
| 38 |
|
| 39 |
maintainer-clean: clean |