aboutsummaryrefslogtreecommitdiff
path: root/src/isode/support/Makefile.in
blob: 6d6df306e663b0707c076b2e8ecbc11967de4b11 (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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
BUILDTOP=@BUILDTOP@
###############################################################################
#   Instructions to Make, for compilation of ISODE support processes
###############################################################################

srcdir = @srcdir@
VPATH = @srcdir@

TOPDIR = $(BUILDTOP)/

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

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

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.
#
###############################################################################


LIBES   =       $(TOPDIR)lib/libpepsy.a $(TOPDIR)lib/libpsap.a $(TOPDIR)lib/libcompat.a


LLIBS   =       $(TOPDIR)llib-lpsap $(TOPDIR)llib-lcompat


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

all:		libisode
inst-all:	inst-libisode
install:	inst-all clean

inst-:;
man-:;
l-:;


################################################################
# libisode
################################################################

inst-libisode:	$(LIBDIR)libisode.a

libisode:	libisode.a libisode-$(SHAREDLIB)

libisode.a:	isodevrsn.o
		-rm -f $@ $(TOPDIR)libisode.a
		-rm -rf tmp
		-mkdir tmp
		sh -c 'ln isodevrsn.o tmp || cp isodevrsn.o tmp'
		for i in $(LIBES); do (cd tmp; ar x ../$$i; \
		    ../$(UTILDIR)make-lib.sh -quick $(SYSTEM) ../$@ *.o; \
		    rm -f *); done
		$(UTILDIR)make-lib.sh $(SYSTEM) $@ -ranlib
		-rm -rf tmp
		-@rm -f $(TOPDIR)lib/libisode.a
		-@$(LN) $@ $(TOPDIR)lib/libisode.a || cp $@ $(TOPDIR)lib/libisode.a
		-@ls -l $@
		-@echo "ISODE library built normally"

libisode-:;

libisode-shared: isodevrsn.o
		@rm -f libisode.so.* $(TOPDIR)libisode.so.*
		@$(UTILDIR)make-lib.sh $(SYSTEM) -shared \
			-major `cat version.major``cat version.minor` \
			-minor `cat version.local` \
			libisode.a 
		@for i in libisode.s[ao].* ;\
		do \
			rm -f $(TOPDIR)$$i; \
			$(LN) $$i $(TOPDIR)$$i; \
			ls -l $$i; \
		done
		@echo "shared ISODE library built normally"
		@touch $@
		

llib-lisode:	$(LLIBS)
		-@echo '/* llib-lisode - lint library for -lisode */' > $@
		-@echo '' >> $@
		cat $(LLIBS) >> $@
		-@rm -f $(TOPDIR)llib-lisode
		-@$(LN) llib-lisode $(TOPDIR)llib-lisode

isodevrsn.c:	$(LIBES)
		@$(UTILDIR)version.sh isode > $@


################################################################
# clean
################################################################

clean:;		rm -f *.o *.a *.so.* x* z* _* core isodevrsn.c llib-lisode \
		    libisode-shared

true:;