aboutsummaryrefslogtreecommitdiff
path: root/src/isode/h/Makefile.in
blob: 92e3b1baa6165e505d4b09004c550687d89e2b81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
###############################################################################
#   Instructions to Make, for compilation of ISODE header files
###############################################################################
srcdir = @srcdir@
VPATH = @srcdir@

BUILDTOP = ../../
TOPDIR = $(BUILDTOP)

OPTIONS	=	-I. -I$(HDIR) $(PEPYPATH) $(KRBOPT)
CFLAGS  =       $(OPTIONS) $(LOPTIONS) 

HDIR	=	$(TOPDIR)isode/h/
UTILDIR	=	$(TOPDIR)isode/util/
INCDIRM	=	$(HDIR)
INCDIR	=	$(INCDIRM)/
PEPSYDIRM=	$(INCDIR)pepsy
PEPSYDIR=	$(PEPSYDIRM)/
LIBISODE=	$(TOPDIR)libisode.a
LIBDSAP	=	$(TOPDIR)libdsap.a

KRBINC	=	$(TOPDIR)include/
ISODEINCM=	$(KRBINC)isode
ISODEINC=	$(ISODEINCM)/

LIBES	=	libcompat.a
LLIBS   =
HFILES	=	$(HDIR)manifest.h $(HDIR)general.h $(HDIR)config.h
LN	=	ln


###############################################################################
#
#				 NOTICE
#
#    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
#    this agreement.
#
###############################################################################


HEADERS	=	config.h \
		sys.dirent.h usr.dirent.h \
		general.h manifest.h isoaddrs.h sys.file.h \
		internet.h x25.h tp4.h dgram.h \
		cmd_srch.h isoservent.h logger.h tailor.h \
		mpkt.h \
		tpkt.h tsap.h \
		spkt.h ssap.h \
		pepsy.h \
		ppkt.h psap2.h psap.h \
		acpkt.h acsap.h \
		rtpkt.h rtsap.h \
		ropkt.h rosap.h \
		ronot.h \
		rosy.h

FHEADERS=	fpkt.h ftam.h


##################################################################
# Here it is...
##################################################################

all:;	-mkdir $(ISODEINCM)
	@for h in $(HEADERS); do cp $(srcdir)/$$h $(ISODEINC)/$$h; done
	-@echo copied $(HEADERS)

inst-all:;	-mkdir $(INCDIRM)
		@for h in $(HEADERS); do $(MAKE) TARGET=$$h inst-target; done

inst-ftam:;	@for h in $(FHEADERS); do $(MAKE) TARGET=$$h inst-target; done

inst-target:	$(INCDIR)$(TARGET)

$(INCDIR)$(TARGET):	$(TARGET)
		-cp $@ z$(TARGET)
		sed -e 's%#include "\([^/]*\)"%#include "$(INCDIR)\1"%' \
			< $(TARGET) | \
			sed -e 's%#include "/usr/include/\(.*\)"%#include <\1>%' > $@
		-@ls -gls $@
		-@echo ""

install:	inst-all clean

lint:;

clean:;		rm -f z* _*

grind:;		tgrind -lc $(HEADERS)