Debian Codegraph @

src/mod/sec/tst/Makefile

raw
1 # ----------------------------------------------------------------------------
2 # - Makefile -
3 # - afnix:sec module test makefile -
4 # ----------------------------------------------------------------------------
5 # - This program is free software; you can redistribute it and/or modify -
6 # - it provided that this copyright notice is kept intact. -
7 # - -
8 # - This program is distributed in the hope that it will be useful, but -
9 # - without any warranty; without even the implied warranty of -
10 # - merchantability or fitness for a particular purpose. In not event shall -
11 # - the copyright holder be liable for any direct, indirect, incidental or -
12 # - special damages arising in any way out of the use of this software. -
13 # ----------------------------------------------------------------------------
14 # - copyright (c) 1999-2023 amaury darsch -
15 # ----------------------------------------------------------------------------
16
17 TOPDIR = ../../../..
18 MAKDIR = $(TOPDIR)/cnf/mak
19 CONFFILE = $(MAKDIR)/afnix-conf.mak
20 RULEFILE = $(MAKDIR)/afnix-rule.mak
21 include $(CONFFILE)
22
23 # NOTE: Disable SEC0004.als on all arch.
24 SEC_TESTS = SEC0002.als SEC0005.als SEC0006.als \
25 SEC0007.als SEC0008.als SEC0009.als SEC0010.als SEC0011.als SEC0012.als \
26 SEC0013.als SEC0104.als
27
28 DEB_HOST_ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)
29 ifneq (,$(filter amd64 aarch64 i386 ppc64el alpha hppa kfreebsd-amd64 \
30 kfreebsd-i386 powerpc powerpcspe x32 ,$(DEB_HOST_ARCH)))
31 SEC_TESTS += SEC0001.als SEC0003.als
32 endif
33
34 # ----------------------------------------------------------------------------
35 # project configurationn -
36 # ----------------------------------------------------------------------------
37
38 DSTDIR = $(BLDDST)/src/mod/sec/tst
39
40 # ----------------------------------------------------------------------------
41 # test definition -
42 # ----------------------------------------------------------------------------
43
44 TESTALS = $(SEC_TESTS)
45
46 # ----------------------------------------------------------------------------
47 # - project rules -
48 # ----------------------------------------------------------------------------
49
50 # rule: all
51 # this rule is the default rule which call the test rule
52
53 all: test
54 .PHONY: all
55
56 # include: rule.mak
57 # this rule includes the platform dependant rules
58
59 include $(RULEFILE)
60
61 # rule: distri
62 # this rule install the tst distribution files
63
64 distri:
65 @$(MKDIR) $(DSTDIR)
66 @$(CP) Makefile $(DSTDIR)
67 @$(CP) *.als $(DSTDIR)
68 .PHONY: distri