File: Makefile

package info (click to toggle)
sprng 2.0a-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,308 kB
  • sloc: ansic: 30,353; fortran: 1,618; makefile: 575; cpp: 58; sh: 5
file content (60 lines) | stat: -rwxr-xr-x 1,433 bytes parent folder | download | duplicates (3)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
############################################################################
#
# Then typing the command below   => results in the following being created
#      make               => all
#      make src		  => SPRNG library, libsprng, and checksprng, timesprng
#      make examples	  => SPRNG examples
#      make tests	  => Tests of quality of random streams
#
# Object files created during the compilation process can be deleted finally
# by typing
#       make clean
#
# Object files, executables, and the libraries can be deleted by typing
#       make realclean
############################################################################

SHELL = /bin/sh

include make.CHOICES

LIBDIR = $(LIB_REL_DIR)
SRCDIR = SRC
DIRS = SRC EXAMPLES TESTS lib

include $(SRCDIR)/make.$(PLAT)

all : src examples tests

install:
	install -d $(DESTDIR)/usr/lib
	install -p $(SRCDIR)/../lib/libsprng.a $(DESTDIR)/usr/lib
	install -d $(DESTDIR)/usr/include
	install -p $(SRCDIR)/../include/* $(DESTDIR)/usr/include

src :
	$(MAKE) -C SRC

examples : 
	$(MAKE) -C EXAMPLES 

tests : 
	$(MAKE) -C TESTS

#---------------------------------------------------------------------------
clean :
	@for l in $(DIRS) ; do \
	  cd $$l ; \
	  $(MAKE) PLAT=$(PLAT) clean ; \
	  cd .. ; \
        done

realclean :
	@for l in $(DIRS) ; do \
	  cd $$l ; \
	  $(MAKE) PLAT=$(PLAT) realclean ; \
	  cd .. ; \
        done
	@rm -f core *~ check* tim* *.data gen*