1###################################################################### 2# BEGIN LICENSE BLOCK 3# Version: CMPL 1.1 4# 5# The contents of this file are subject to the Cisco-style Mozilla Public 6# License Version 1.1 (the "License"); you may not use this file except 7# in compliance with the License. You may obtain a copy of the License 8# at www.eclipse-clp.org/license. 9# 10# Software distributed under the License is distributed on an "AS IS" 11# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See 12# the License for the specific language governing rights and limitations 13# under the License. 14# 15# The Original Code is The ECLiPSe Constraint Logic Programming System. 16# The Initial Developer of the Original Code is Cisco Systems, Inc. 17# Portions created by the Initial Developer are 18# Copyright (C) 1994-2006 Cisco Systems, Inc. All Rights Reserved. 19# 20# Contributor(s): Kees Schuerman, ECRC 21# 22# END LICENSE BLOCK 23####################################################################### 24## System: Parallel Distributed System 25## File: Makefile 26## Authors: Kees Schuerman 27## SccsId: "@(#)Makefile.in 1.22 10/15/95" 28## $Id: Makefile.in,v 1.1 2006/09/23 01:54:50 snovello Exp $ 29####################################################################### 30 31ARCH = @ARCH@ 32SYS_DIR = @SYS_DIR@ 33CC = @CC@ 34CFLAGS = @CFLAGS@ 35DFLAGS = @DFLAGS@ 36LIBS = @LIBS@ 37RANLIB = @RANLIB@ 38 39 40SYS_INCL = $(SYS_DIR)/sys_include 41SYS_LIB = $(SYS_DIR)/sys_lib/$(ARCH) 42 43IPATH = -I$(SYS_INCL) 44 45CCFLAGS = $(CFLAGS) $(DFLAGS) $(IPATH) 46 47AR = ar 48RM = /bin/rm -f 49CP = /bin/cp 50 51USC_OBJS = usc.o 52ALOG_OBJS = alog.o alogf.o 53PDS_OBJS = pds.mem.o pds.xdr.o pds.error.o pds.mdt.o 54BMSG_OBJS = bmsg.msg.o bmsg.xdr.o 55AMSG_OBJS = amsg.msg.o amsg.xdr.o 56NSRV_OBJS = nsrv_client.o nsrv_int.o nsrv.xdr.o 57PDS_LIB_OBJS = $(NSRV_OBJS) $(AMSG_OBJS) $(BMSG_OBJS) $(PDS_OBJS) \ 58 $(ALOG_OBJS) $(USC_OBJS) 59NSRV_LIB_OBJS = $(NSRV_OBJS) 60AMSG_LIB_OBJS = $(AMSG_OBJS) $(BMSG_OBJS) $(PDS_OBJS) 61BMSG_LIB_OBJS = $(BMSG_OBJS) $(PDS_OBJS) 62 63PDS_H = pds.types.h pds.error.h pds.mem.h pds.mdt.h pds.xdr.h 64 65all: libs nsrv nsrvping 66 67libs: libpds.a libnsrv.a libamsg.a libbmsg.a 68 69install_all: install_nsrv install_libs 70 71install_libs: install_libpds install_libnsrv install_libbmsg install_libamsg 72 73install_include_nsrv: install_include_amsg 74 -$(RM) ../include/nsrv.h 75 $(CP) nsrv.h ../include 76 -$(RM) ../include/nsrv.xdr.h 77 $(CP) nsrv.xdr.h ../include 78 79install_include_amsg: install_include_bmsg 80 -$(RM) ../include/amsg.h 81 $(CP) amsg.h ../include 82 -$(RM) ../include/amsg.msg.h 83 $(CP) amsg.msg.h ../include 84 -$(RM) ../include/amsg.xdr.h 85 $(CP) amsg.xdr.h ../include 86 87install_include_bmsg: install_include_pds 88 -$(RM) ../include/bmsg.h 89 $(CP) bmsg.h ../include 90 -$(RM) ../include/bmsg.msg.h 91 $(CP) bmsg.msg.h ../include 92 -$(RM) ../include/bmsg.xdr.h 93 $(CP) bmsg.xdr.h ../include 94 95install_include_pds: 96 -$(RM) ../include/pds.h 97 $(CP) pds.h ../include 98 -$(RM) ../include/pds.types.h 99 $(CP) pds.types.h ../include 100 -$(RM) ../include/pds.error.h 101 $(CP) pds.error.h ../include 102 -$(RM) ../include/pds.mem.h 103 $(CP) pds.mem.h ../include 104 -$(RM) ../include/pds.mdt.h 105 $(CP) pds.mdt.h ../include 106 -$(RM) ../include/pds.xdr.h 107 $(CP) pds.xdr.h ../include 108 109install_libpds: libpds.a install_include_nsrv install_include_amsg \ 110 install_include_bmsg install_include_pds 111 -$(RM) ../lib/libpds.a 112 $(CP) libpds.a ../lib/$(ARCH) 113 $(RANLIB) ../lib/$(ARCH)/libpds.a 114 115install_libnsrv: libnsrv.a nsrv_server.o nsrv_ping.o install_include_nsrv 116 -$(RM) ../lib/libnsrv.a 117 $(CP) libnsrv.a ../lib/$(ARCH) 118 $(RANLIB) ../lib/$(ARCH)/libnsrv.a 119 -$(RM) ../lib/nsrv_server.o 120 $(CP) nsrv_server.o ../lib/$(ARCH) 121 -$(RM) ../lib/nsrv_ping.o 122 $(CP) nsrv_ping.o ../lib/$(ARCH) 123 124install_libamsg: libamsg.a install_include_amsg 125 -$(RM) ../lib/libamsg.a 126 $(CP) libamsg.a ../lib/$(ARCH) 127 $(RANLIB) ../lib/$(ARCH)/libamsg.a 128 129install_libbmsg: libbmsg.a install_include_bmsg 130 -$(RM) ../lib/libbmsg.a 131 $(CP) libbmsg.a ../lib/$(ARCH) 132 $(RANLIB) ../lib/$(ARCH)/libbmsg.a 133 134install_nsrv: nsrv nsrvping 135 -$(RM) ../bin/$(ARCH)/nsrv 136 $(CP) nsrv ../bin/$(ARCH) 137 -$(RM) ../bin/$(ARCH)/nsrvping 138 $(CP) nsrvping ../bin/$(ARCH) 139 140libpds.a: $(PDS_LIB_OBJS) 141 $(AR) rcv libpds.a $(PDS_LIB_OBJS) 142 $(RANLIB) libpds.a 143 144libnsrv.a: $(NSRV_LIB_OBJS) 145 $(AR) rcv libnsrv.a $(NSRV_LIB_OBJS) 146 $(RANLIB) libnsrv.a 147 148libamsg.a: $(AMSG_LIB_OBJS) 149 $(AR) rcv libamsg.a $(AMSG_LIB_OBJS) 150 $(RANLIB) libamsg.a 151 152libbmsg.a: $(BMSG_LIB_OBJS) 153 $(AR) rcv libbmsg.a $(BMSG_LIB_OBJS) 154 $(RANLIB) libbmsg.a 155 156nsrv: nsrv_server.o nsrv_client.o nsrv_int.o nsrv.xdr.o \ 157 libnsrv.a libamsg.a libbmsg.a 158 $(CC) $(CCFLAGS) -o nsrv nsrv_server.o nsrv_client.o nsrv_int.o \ 159 nsrv.xdr.o libnsrv.a libbmsg.a libamsg.a \ 160 -L$(SYS_LIB) \ 161 -lalog -lusc -lshm $(LIBS) 162 163nsrvping: nsrv_ping.o libnsrv.a libamsg.a libbmsg.a 164 $(CC) $(CCFLAGS) -o nsrvping nsrv_ping.o \ 165 libnsrv.a libbmsg.a libamsg.a \ 166 -L$(SYS_LIB) \ 167 -lalog -lusc -lshm $(LIBS) 168 169amsg.msg.o: amsg.msg.c $(PDS_H) \ 170 bmsg.msg.h bmsg.xdr.h amsg.msg.h amsg.xdr.h 171 $(CC) $(CCFLAGS) -c amsg.msg.c 172 173bmsg.msg.o: bmsg.msg.c $(PDS_H) \ 174 bmsg.msg.h bmsg.xdr.h 175 $(CC) $(CCFLAGS) -c bmsg.msg.c 176 177nsrv_int.o: nsrv_int.c $(PDS_H) \ 178 bmsg.msg.h bmsg.xdr.h amsg.msg.h amsg.xdr.h \ 179 nsrv.h nsrv_int.h nsrv.xdr.h 180 $(CC) $(CCFLAGS) -c nsrv_int.c 181 182nsrv_client.o: nsrv_client.c $(PDS_H) \ 183 bmsg.msg.h bmsg.xdr.h amsg.msg.h amsg.xdr.h \ 184 nsrv.h nsrv_int.h nsrv.xdr.h 185 $(CC) $(CCFLAGS) -c nsrv_client.c 186 187nsrv_server.o: nsrv_server.c $(PDS_H) \ 188 bmsg.msg.h bmsg.xdr.h amsg.msg.h amsg.xdr.h \ 189 nsrv.h nsrv_int.h nsrv.xdr.h 190 $(CC) $(CCFLAGS) -c nsrv_server.c 191 192nsrv_ping.o: nsrv_ping.c 193 $(CC) $(CCFLAGS) -c nsrv_ping.c 194 195pds.xdr.o: pds.xdr.c pds.mdt.h pds.types.h pds.xdr.h 196 $(CC) $(CCFLAGS) -c pds.xdr.c 197 198pds.error.o: pds.error.c pds.types.h pds.error.h 199 $(CC) $(CCFLAGS) -c pds.error.c 200 201pds.mem.o: pds.mem.c pds.types.h pds.mem.h 202 $(CC) $(CCFLAGS) -c pds.mem.c 203 204bmsg.xdr.o: bmsg.xdr.c $(PDS_H) \ 205 bmsg.msg.h bmsg.xdr.h 206 $(CC) $(CCFLAGS) -c bmsg.xdr.c 207 208amsg.xdr.o: amsg.xdr.c $(PDS_H) \ 209 bmsg.msg.h bmsg.xdr.h amsg.msg.h amsg.xdr.h 210 $(CC) $(CCFLAGS) -c amsg.xdr.c 211 212nsrv.xdr.o: nsrv.xdr.c pds.mdt.h pds.types.h pds.xdr.h \ 213 bmsg.msg.h bmsg.xdr.h amsg.msg.h amsg.xdr.h nsrv.h nsrv.xdr.h 214 $(CC) $(CCFLAGS) -c nsrv.xdr.c 215 216pds.mdt.o: pds.mdt.c $(PDS_H) 217 $(CC) $(CCFLAGS) -c pds.mdt.c 218 219$(USC_OBJS): 220 -$(RM) $(USC_OBJS) 221 $(AR) x $(SYS_LIB)/libusc.a $(USC_OBJS) 222 223$(ALOG_OBJS): 224 -$(RM) $(ALOG_OBJS) 225 $(AR) x $(SYS_LIB)/libalog.a $(ALOG_OBJS) 226 227clean: 228 -$(RM) *.o *.a nsrv nsrvping 229 230realclean: clean 231 -$(RM) Makefile 232 -$(RM) *~ *.old core 233 234