Debian Codegraph @

src/srv/wax/shl/Makefile

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