Debian Codegraph @

src/srv/bce/shl/Makefile

raw
1 # ----------------------------------------------------------------------------
2 # - Makefile -
3 # - afnix:bce service 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 # ----------------------------------------------------------------------------
24 # project configurationn -
25 # ----------------------------------------------------------------------------
26
27 TRGDIR = bce
28 TRGLIB = afnix-bce
29 DSTDIR = $(BLDDST)/src/srv/bce/shl
30 EXTLIB = -L$(BLDLIB) \
31 -lafnix-sec \
32 -lafnix-nwg \
33 -lafnix-eng \
34 -lafnix-std \
35 -lafnix-plt
36 INCLUDE = -I. \
37 -I$(BLDHDR)/sec \
38 -I$(BLDHDR)/nwg \
39 -I$(BLDHDR)/eng \
40 -I$(BLDHDR)/std \
41 -I$(BLDHDR)/plt
42
43 # ----------------------------------------------------------------------------
44 # - project rules -
45 # ----------------------------------------------------------------------------
46
47 # rule: all
48 # this rule is the default rule which call the build rule
49
50 all: $(TRGLIB)
51 .PHONY: all
52
53 # include: rule.mak
54 # this rule includes the platform dependant rules
55
56 include $(RULEFILE)
57
58 # rule: distri
59 # this rule install the bce distribution files
60
61 distri:
62 @$(MKDIR) $(DSTDIR)
63 @$(CP) Makefile $(DSTDIR)
64 @$(CP) *.hpp $(DSTDIR)
65 @$(CP) *.hxx $(DSTDIR)
66 @$(CP) *.cpp $(DSTDIR)
67 .PHONY: distri
68
69 # rule: install
70 # this rule install the distribution
71
72 install: install-lib
73 @$(MKDIR) $(HDRDIR)/bce
74 @$(CP) *.hpp $(HDRDIR)/bce
75 .PHONY: install