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