###############################################################################
# Instructions to Make, for compilation of ISODE FTAM processes
###############################################################################
###############################################################################
# $Header: /f/osi/ftam/RCS/Makefile,v 7.7 91/02/22 09:22:22 mrose Interim $
# Revision 7.7 91/02/22 09:22:22 mrose
# Revision 7.6 91/01/24 14:50:14 mrose
# Revision 7.5 90/12/23 18:39:53 mrose
# Revision 7.4 90/07/27 08:44:37 mrose
# Revision 7.3 90/07/09 14:36:30 mrose
# Revision 7.2 90/07/01 21:02:59 mrose
# Revision 7.1 90/03/06 13:56:31 mrose
# Revision 7.0 89/11/23 21:53:13 mrose
###############################################################################
###############################################################################
# Acquisition, use, and distribution of this module and related
# materials are subject to the restrictions of a license agreement.
# Consult the Preface in the User's Manual for the full terms of
###############################################################################
LIBES
= libftam.a
$(TOPDIR
)libisode.a
LLIBS
= $(TOPDIR
)llib-lisode
$(HDIR
)acsap.h
$(HDIR
)psap2.h
$(HDIR
)psap.h
$(HDIR
)ssap.h \
$(HDIR
)manifest.h
$(HDIR
)general.h
$(HDIR
)config.h
HXFILES
= $(HFILES
) $(HDIR
)fpkt.h CONT-types.h FADU-types.h \
##################################################################
##################################################################
inst-all
: inst-libftam documents manuals
##################################################################
##################################################################
CFILES
= ftamprovider.c ftamerror.c ftaminitiate.c ftamrespond.c \
ftamrelease1.c ftamrelease2.c ftamabort.c ftamgroup1.c \
ftamgroup2.c ftamaccess1.c ftamaccess2.c ftambulk.c \
ftambulk1.c ftambulk2.c ftamselect.c ftamtrace.c ftamacl.c \
ftamattr.c ftambits.c ftamchrg.c ftamconctl.c ftamdiag.c \
ftamfaduid.c ftampass.c ftamshare.c ftamlose.c ftamdocument.c \
PYFILES
= cont.py fadu.py ftam.py
OFILES
= ftamprovider.o ftamerror.o ftaminitiate.o ftamrespond.o \
ftamrelease1.o ftamrelease2.o ftamabort.o ftamgroup1.o \
ftamgroup2.o ftamaccess1.o ftamaccess2.o ftambulk.o \
ftambulk1.o ftambulk2.o ftamselect.o ftamtrace.o ftamacl.o \
ftamattr.o ftambits.o ftamchrg.o ftamconctl.o ftamdiag.o \
ftamfaduid.o ftampass.o ftamshare.o ftamlose.o ftamdocument.o \
HEADERS
= CONT.ph CONT-types.h CONT_defs.h CONT_pre_defs.h \
FADU.ph FADU-types.h FADU_defs.h FADU_pre_defs.h \
FTAM.ph FTAM-types.h FTAM_defs.h FTAM_pre_defs.h
inst-libftam
: $(LIBDIR
)libftam.a inst-headers
$(LINTDIR
)llib-lftam
$(LIBDIR
)libftam.a
: libftam.a
@
$(UTILDIR
)make-lib.sh
$(SYSTEM
) $@
-ranlib
$(LINTDIR
)llib-lftam
: llib-lftam
sed
-e
's%#include "\(.*\)"%#include "$(INCDIR)\1"%' \
sed
-e
's%#include "/usr/include/\(.*\)"%#include <\1>%' > $@
@
$(UTILDIR
)inst-lint.sh
$(SYSTEM
) $(OPTIONS
) $@
inst-headers
:; @cd
$(TOPDIR
)h
; $(MAKE
) inst-ftam
@for h in
$(HEADERS
); do
$(MAKE
) TARGET
=$$h inst-target
; done
inst-target
: $(PEPSYDIR
)$(TARGET
)
$(PEPSYDIR
)$(TARGET
): $(TARGET
)
-@
rm -f
$(TOPDIR
)h
/CONT
*.h
$(TOPDIR
)h
/FADU
*.h \
-@
$(LN
) CONT-types.h
$(TOPDIR
)h
/CONT-types.h
-@
$(LN
) CONT_defs.h
$(TOPDIR
)h
/CONT_defs.h
-@
$(LN
) CONT_pre_defs.h
$(TOPDIR
)h
/CONT_pre_defs.h
-@
$(LN
) FADU-types.h
$(TOPDIR
)h
/FADU-types.h
-@
$(LN
) FADU_defs.h
$(TOPDIR
)h
/FADU_defs.h
-@
$(LN
) FADU_pre_defs.h
$(TOPDIR
)h
/FADU_pre_defs.h
-@
$(LN
) FTAM-types.h
$(TOPDIR
)h
/FTAM-types.h
-@
$(LN
) FTAM_defs.h
$(TOPDIR
)h
/FTAM_defs.h
-@
$(LN
) FTAM_pre_defs.h
$(TOPDIR
)h
/FTAM_pre_defs.h
@
$(UTILDIR
)make-lib.sh
$(SYSTEM
) $(ARFLAGS
) $@
$(OFILES
) \
CONT_tables.o FADU_tables.o FTAM_tables.o ftamvrsn.o
-@
rm -f
$(TOPDIR
)libftam.a
$(TOPDIR
)llib-lftam
-@
$(LN
) libftam.a
$(TOPDIR
)libftam.a
-@
$(LN
) llib-lftam
$(TOPDIR
)llib-lftam
-@echo
"FTAM library built normally"
FTAM_tables.o
: FTAM_tables.c FTAM-types.h CONT-types.h FADU-types.h
FTAM_tables.c FTAM-types.h
: ftam.py
$(TOPDIR
)pepsy
/xpepsy
$(TOPDIR
)pepsy
/xpepsy
-A
-f
-h
-m ftam.py
FADU_tables.o
: FADU_tables.c FADU-types.h
FADU_tables.c FADU-types.h
: fadu.py
$(TOPDIR
)pepsy
/xpepsy
$(TOPDIR
)pepsy
/xpepsy
-A
-f
-h
-m fadu.py
CONT_tables.o
: CONT_tables.c CONT-types.h
CONT_tables.c CONT-types.h
: cont.py
$(TOPDIR
)pepsy
/xpepsy
$(TOPDIR
)pepsy
/xpepsy
-A
-f
-h
-m cont.py
ftamvrsn.c
: $(OFILES
) CONT_tables.o FADU_tables.o FTAM_tables.o
@
$(UTILDIR
)version.sh ftam
> $@
l-libftam
: CONT_tables.c FADU_tables.c FTAM_tables.c true
$(LINT
) $(LFLAGS
) $(CFILES
) CONT_tables.c FADU_tables.c \
FTAM_tables.c ftamvrsn.c
$(LLIBS
) \
| grep
-v
"warning: possible pointer alignment problem"
ftamprovider.o
: $(HXFILES
)
ftaminitiate.o
: $(HXFILES
)
ftamrespond.o
: $(HXFILES
)
ftamrelease1.o
: $(HXFILES
)
ftamrelease2.o
: $(HXFILES
)
ftamaccess1.o
: $(HXFILES
)
ftamaccess2.o
: $(HXFILES
)
ftamdocument.o
: $(HFILES
) $(HDIR
)tailor.h
$(HDIR
)logger.h
################################################################
################################################################
documents
: $(ETCDIR
)isodocuments
$(ETCDIR
)isodocuments
: isodocuments
##################################################################
##################################################################
MANUALS
= libftam
.3n isodocuments
.5
manuals
:; @
$(UTILDIR
)inst-man.sh
$(MANOPTS
) $(MANUALS
)
##################################################################
##################################################################
clean:; rm -f
*.o
*.a
*.ph CONT
* FADU
* FTAM
* z
* _
* core \
$(TOPDIR
)h
/CONT
*.h
$(TOPDIR
)h
/FADU
*.h \
grind
:; iprint Makefile isodocuments
tgrind
-lc
$(CFILES
) ftamvrsn.c llib-lftam
tgrind
-lpepy
-d
$(TOPDIR
)pepy
/grindefs
$(PYFILES
)
sed
-e
"s%.*%itroff -man &%" | \