
#*********************************************************************
#
# File:          Makefile
#
# Project:       Device Servers with sun-rpc
#
# Description:   Makefile for XDR-library libxdr.a and os9-xdrlib.l
#		 Please use the conditional Makefile commands !
#
# Author(s):     Jens Meyer
#
# Original:	 January 1991
#
#
# $Revision: 4.30 $
# $Date: 1999/05/23 13:03:48 $
#
# $Author: goetz $
#
# $Log: Makefile,v $
# Revision 4.30  1999/05/23 13:03:48  goetz
# removed /opt/rcs/ident for Solaris
#
# Revision 4.29  1999/05/12 12:38:14  goetz
# determine XDVERS dynamically using ident and awk script
#
# Revision 4.28  1998/10/12 08:08:41  goetz
# added support for VxWorks on x86 and 68k platforms
#
# Revision 4.27  1998/08/27  07:20:09  goetz
# *** empty log message ***
#
# Revision 4.26  1997/08/05 16:47:29  goetz
# *** empty log message ***
#
# Revision 4.25  1997/04/04  11:52:38  goetz
# upgraded support for shared libraries to new standard
#
# Revision 4.24  97/01/09  07:08:23  07:08:23  goetz (Andy Goetz)
# added Linux support
# 
# Revision 4.23  96/11/18  16:44:07  16:44:07  goetz (Andy Goetz)
# converted Makefile to gmake
# 
# Revision 4.22  96/10/21  17:28:48  17:28:48  taurel (E.Taurel)
# Added shared library generation for HP-UX and Solaris.
# 
# Revision 4.21  96/08/19  17:51:47  17:51:47  meyer (J.Meyer)
# Deleted -g flag for OS9.
# 
# Revision 4.20  96/02/27  13:32:28  13:32:28  meyer (J.Meyer)
# Changed SOLARIS compiler path.
# 
# Revision 4.2  96/01/09  08:54:33  08:54:33  meyer (Jens Meyer)
# Added compile options for solaris.
# 
# Revision 4.1  95/03/02  10:28:42  10:28:42  meyer (Jens Meyer)
# Corrected spacing for RCS handling.
# 
# Revision 4.0  95/03/02  10:06:15  10:06:15  meyer (Jens Meyer)
# Make for UltraC compiler in c89 mode.
# 
# Revision 1.18  94/12/21  13:02:56  13:02:56  meyer (Jens Meyer)
# Added API_xdr_vers3.h and api_xdr_vers3.c
# 
# Revision 1.17  94/03/03  10:22:12  10:22:12  taurel (Emmanuel TAUREL)
# Sorry, Jens Jens, it was a false check out !.
# 
# Revision 1.16  94/01/31  10:54:47  10:54:47  meyer (Jens Meyer)
# Make Kernel.
# 
# Revision 1.15  93/12/02  11:56:17  11:56:17  meyer (Jens Meyer)
# Corrected os9 compilation.
# 
# Revision 1.14  93/12/02  09:49:29  09:49:29  meyer (Jens Meyer)
# New release with small XDR data type kernel.
# 
# Revision 1.1  93/12/01  18:11:26  18:11:26  meyer (Jens Meyer)
# Initial revision
# 
#
# Copyright (c) 1990 by European Synchrotron Radiation Facility,
#                       Grenoble, France
#
#                       All Rights Reserved
#
#**********************************************************************

#---------------------------------------------------------------------
# Home Directories
#
#
#  	The variables DSHOME is passed to the Makefile 
#       as input arguments or via the environment.
#
# external variable DSHOME
DS_HOME	=	$(DSHOME)

# retrieve version number for present release (4.x) from dev_api.c
# this will be used to name the shared library (assumes ident is
# supported for Solaris, if this is not the case then force the
# version number or pass it as a symbol)
XDRVERS=$(shell ident dev_xdr.c | grep Header | awk -f ./version.awk)

ifdef OSK
INSTALL_HOME = 	$(DS_HOME)/lib/os9
endif
ifdef _UCC
INSTALL_HOME =  $(DS_HOME)/lib/os9/ucc
endif
ifdef __hp9000s700
INSTALL_HOME =  $(DS_HOME)/lib/s700
INSTALL_HOME_SL =  $(DS_HOME)/lib/s700
endif
ifdef __hpux10
INSTALL_HOME =  $(DS_HOME)/lib/hpux10.2
INSTALL_HOME_SL =  $(DS_HOME)/lib/hpux10.2
endif
ifdef sun
INSTALL_HOME = 	$(DS_HOME)/lib/sun4
endif
ifdef _solaris
INSTALL_HOME = 	$(DS_HOME)/lib/solaris
INSTALL_HOME_SL = 	$(DS_HOME)/lib/solaris
endif
ifdef linux
ifdef 68k
INSTALL_HOME =  $(DS_HOME)/lib/linux/68k
INSTALL_HOME_SL =  $(DS_HOME)/lib/linux/68k
else # 68k
INSTALL_HOME =  $(DS_HOME)/lib/linux/x86
INSTALL_HOME_SL =  $(DS_HOME)/lib/linux/x86
endif # 68k
endif # linux
ifdef vw68k
INSTALL_HOME =  $(DS_HOME)/lib/vxworks/68k
endif # vw68k
ifdef vwx86
INSTALL_HOME =  $(DS_HOME)\lib\vxworks\x86
endif # vwx86

#---------------------------------------------------------------------
ifdef OSK
#               The C Compiler for OS9

#               ... and his Flags
#                       Includes
INCLDIRS=       -v=../include \
		-v=$(DS_HOME)/include

#                       Libraries
#               There's no link phase - ergo no libraries to include

#               	Compiler Flags
CFLAGS  =       -g -DBUG -K=2F -r=. $(INCLDIRS) $(EXTRACFLAGS)
endif

ifdef _UCC
#               The C Compiler for OS9

#               ... and his Flags
#                       Includes
INCLDIRS=       -I ../include \
                -I $(DS_HOME)/include

#                       Compiler Flags
CFLAGS =        -mode=c89 -D EBUG -to osk -tp 020 -x il -e as=. $(INCLDIRS) \
		$(EXTRACFLAGS)
ICODE_CFLAGS =  -mode=c89 -D EBUG -to osk -tp 020 -e il $(INCLDIRS)
NAME =          -o $@
endif


ifdef unix

#               ... and his Flags
#                       Includes
INCLDIRS=       -I../include \
		-I$(DS_HOME)/include

ifdef vw68k
INCLDIRS = 	-I../include \
		-I$(DS_HOME)/include \
		-I/usr/local/tornado/target/h \
		-I/usr/local/tornado/target/h/rpc \
		-I/usr/local/tornado/target/src/config
endif # vw68k
ifdef vwx86
INCLDIRS = 	-I..\include \
		-I$(DS_HOME)\include \
		-IC:\TORNADO\target\h \
		-IC:\TORNADO\target\rpc \
		-IC:\TORNADO\target\src\config
endif # vxworks

#                       Libraries
#               There's no link phase - ergo no libraries to include
NAME    =       -o
endif # unix


#                       Optimizer or ANSI standart ?
ifdef __hpux
CFLAGS  =       -Aa -g -DBUG -Dunix -D_HPUX_SOURCE -c $(INCLDIRS) \
		$(EXTRACFLAGS)
CFLAGS_SL  =    $(CFLAGS) +z
endif # __hpux
ifdef sun
CFLAGS  =       -Aa -g -DBUG -Dunix -c $(INCLDIRS) $(EXTRACFLAGS)
endif # sun
ifdef _solaris
ifdef NATIVE
CFLAGS  =       -Xa -g -Dsolaris -DBUG -c $(INCLDIRS) $(EXTRACFLAGS)
CFLAGS_SL  =    $(CFLAGS) -KPIC
else
CFLAGS  =       -g -Dsolaris -DBUG -c $(INCLDIRS) $(EXTRACFLAGS)
CFLAGS_SL  =    $(CFLAGS) -fPIC
endif # NATIVE
endif # _solaris
ifdef linux
CFLAGS  =      	$(INCLDIRS) -Dlinux -Dunix -D_BSD_SOURCE -ansi -DEBUG -g -c \
		$(EXTRACFLAGS)
CFLAGS_SL  =   	$(INCLDIRS) -Dlinux -Dunix -D_BSD_SOURCE -ansi -DEBUG -fPIC -c \
		$(EXTRACFLAGS)
endif # linux
ifdef lynx
CFLAGS  =      -Dlynx -Dunix -ansi -X -DBUG -g -c $(INCLDIRS) $(EXTRACFLAGS)
endif # lynx
ifdef vw68k
CFLAGS  =       -Dvxworks -Dunix -DCPU=MC68040 -ansi -m68040 \
		-fno-builtin -nostdinc -DEBUG $(INCLDIRS) $(EXTRACFLAGS)
endif # vw68k
ifdef vwx86
CFLAGS  =      	-Dvxworks -Dunix -DCPU=I80386 -ansi -mno-486 -fno-builtin \
		-nostdinc -fno-defer-pop -DBUG -g $(INCLDIRS)  $(EXTRACFLAGS)
endif # vwx86


#---------------------------------------------------------------------
# RCS options
#
#		RCS lock options
RCSLOCK  =	co -l -r$(VERSION)
#		RCS check out options
RCSCO    =	co -r$(VERSION)
#		RCS check in options
RCSCI    =	ci -u -f -s"Rel" -r$(VERSION) -m"$(LOCKMSG)"


#---------------------------------------------------------------------
# All files needed for the library
#
#		include files
INCL 	=	macros.h \
		API_xdr.h \
		API_xdr_vers3.h \
		DevXdrKernel.h \
		dev_xdr.h \
                bpm_xdr.h \
                vgc_xdr.h \
                haz_xdr.h \
                vrif_xdr.h \
                gpib_xdr.h \
                bpss_xdr.h \
                ct_xdr.h \
                maxe_xdr.h \
                rf_xdr.h \
                ws_xdr.h \
                pss_xdr.h \
                ram_xdr.h \
                union_xdr.h \
                thc_xdr.h \
                seism_xdr.h \
                atte_xdr.h \
                slit_xdr.h \
                icv101_xdr.h \
                mstat_xdr.h \
                grp_xdr.h \
                m4_xdr.h \
                pin_xdr.h

#		source files
SRC  	=	api_xdr.c \
		api_xdr_vers3.c \
		DevXdrKernel.c \
		dev_xdr.c \
                bpm_xdr.c \
                vgc_xdr.c \
                haz_xdr.c \
                vrif_xdr.c \
                gpib_xdr.c \
                bpss_xdr.c \
                ct_xdr.c \
                maxe_xdr.c \
                rf_xdr.c \
                ws_xdr.c \
                pss_xdr.c \
                ram_xdr.c \
                union_xdr.c \
                thc_xdr.c \
                seism_xdr.c \
                atte_xdr.c \
                slit_xdr.c \
                icv101_xdr.c \
                mstat_xdr.c \
                grp_xdr.c \
                m4_xdr.c \
                pin_xdr.c

#		object files
OBJS  	=	api_xdr.o \
		api_xdr_vers3.o \
		dev_xdr.o \
                bpm_xdr.o \
                vgc_xdr.o \
                haz_xdr.o \
                vrif_xdr.o \
                gpib_xdr.o \
                bpss_xdr.o \
                ct_xdr.o \
                maxe_xdr.o \
                rf_xdr.o \
                ws_xdr.o \
                pss_xdr.o \
                ram_xdr.o \
                union_xdr.o \
                thc_xdr.o \
                seism_xdr.o \
                atte_xdr.o \
                slit_xdr.o \
                icv101_xdr.o \
                mstat_xdr.o \
                grp_xdr.o \
                m4_xdr.o \
                pin_xdr.o

OBJS_SL	=	api_xdr.sl.o \
		api_xdr_vers3.sl.o \
		dev_xdr.sl.o \
                bpm_xdr.sl.o \
                vgc_xdr.sl.o \
                haz_xdr.sl.o \
                vrif_xdr.sl.o \
                gpib_xdr.sl.o \
                bpss_xdr.sl.o \
                ct_xdr.sl.o \
                maxe_xdr.sl.o \
                rf_xdr.sl.o \
                ws_xdr.sl.o \
                pss_xdr.sl.o \
                ram_xdr.sl.o \
                union_xdr.sl.o \
                thc_xdr.sl.o \
                seism_xdr.sl.o \
                atte_xdr.sl.o \
                slit_xdr.sl.o \
                icv101_xdr.sl.o \
                mstat_xdr.sl.o \
                grp_xdr.sl.o \
                m4_xdr.sl.o \
                pin_xdr.sl.o

OBJS_SMALL = 	api_xdr.o \
		api_xdr_vers3.o \
		dev_xdr.o \
		DevXdrKernel.o

ICODE_OBJS =    api_xdr.ic \
		api_xdr_vers3.ic \
		dev_xdr.ic \
                bpm_xdr.ic \
                vgc_xdr.ic \
                haz_xdr.ic \
                vrif_xdr.ic \
                gpib_xdr.ic \
                bpss_xdr.ic \
                ct_xdr.ic \
                maxe_xdr.ic \
                rf_xdr.ic \
                ws_xdr.ic \
                pss_xdr.ic \
                ram_xdr.ic \
                union_xdr.ic \
                thc_xdr.ic \
                seism_xdr.ic \
                atte_xdr.ic \
                slit_xdr.ic \
                icv101_xdr.ic \
                mstat_xdr.ic \
                grp_xdr.ic \
                m4_xdr.ic \
                pin_xdr.ic

ifdef OSK
OBJS  	=	api_xdr.r \
		api_xdr_vers3.r \
		dev_xdr.r \
                bpm_xdr.r \
                vgc_xdr.r \
                haz_xdr.r \
                vrif_xdr.r \
                gpib_xdr.r \
                bpss_xdr.r \
                ct_xdr.r \
                maxe_xdr.r \
                rf_xdr.r \
                ws_xdr.r \
                pss_xdr.r \
                ram_xdr.r \
                union_xdr.r \
                thc_xdr.r \
                seism_xdr.r \
                atte_xdr.r \
                slit_xdr.r \
                icv101_xdr.r \
                mstat_xdr.r \
                grp_xdr.r \
                m4_xdr.r \
                pin_xdr.r
endif

#--------------------------------------------------------------------
# What has to be made
#
LIBNAME	   =	libdsxdr.a
LIBNAME_ALL=	libdsxdr_all.a
ifdef __hp9000s700
LIBNAME_SL =	libdsxdr
LIBNAME_ALL_SL=	libdsxdr_all
SL_EXT =	sl
endif # __hp9000s700
ifdef _solaris
LIBNAME_SL =	libdsxdr
LIBNAME_ALL_SL=	libdsxdr_all
SL_EXT =	so
endif # _solaris
ifdef linux
LIBNAME_SL =    libdsxdr
LIBNAME_ALL_SL=	libdsxdr_all
SL_EXT =	so
endif # linux
ifdef _UCC
ICODE_LIBNAME 	 =	libdsxdr.il
ICODE_LIBNAME_ALL=	libdsxdr_all.il
endif # _UCC
ifdef OSK
LIBNAME    =	os9-dsxdrlib.l
LIBNAME_ALL=	os9-dsxdr_alllib.l
endif # OSK

#---------------------------------------------------------------------
# Build library

all:	$(OBJS) $(LIBNAME) $(LIBNAME_ALL)

all_sl:	$(LIBNAME_SL).$(SL_EXT) $(LIBNAME_ALL_SL).$(SL_EXT)

#
# DO NOT recompile everything everytime
#
#$(OBJS):	
#		$(CC) $(CFLAGS) $(SRC)


ifdef OSK
#               Making an OS-9 library is concatenating the members
#		Small kernel
$(LIBNAME):     $(OBJS)
		rm -rf $(LIBNAME)
		rm -rf DevXdrKernel.r
		$(CC) $(CFLAGS) DevXdrKernel.c
		cat $(OBJS) DevXdrKernel.r > $(LIBNAME)      
#
# 		All xdr types
$(LIBNAME_ALL):	$(OBJS)	
		rm -rf $(LIBNAME_ALL)
		rm -rf DevXdrKernel.r
		$(CC) $(CFLAGS) -D_XDR_ALL DevXdrKernel.c
		cat $(OBJS) DevXdrKernel.r > $(LIBNAME_ALL)      
endif # OSK

ifdef unix
# define a rule for making shared library objects (suffice .sl.o)
.SUFFIXES: .sl.o .c
.c.sl.o:
		$(CC) $(CFLAGS_SL) $< -o $*.sl.o
endif


ifdef _UCC
.SUFFIXES: .ic .c
.c.ic:

#$(ICODE_OBJS):
#		$(CC) $(ICODE_CFLAGS) -P $? $(NAME)

		$(CC) $(ICODE_CFLAGS) $(NAME) -efe $<


#               Make OS-9 library
#		Small kernel
$(LIBNAME):     $(OBJS) $(ICODE_OBJS)
		rm -rf $(LIBNAME)
		rm -rf DevXdrKernel.o
		$(CC) $(CFLAGS) DevXdrKernel.c
		libgen $(OBJS) DevXdrKernel.o -co=$(LIBNAME)
	
		rm -rf $(ICODE_LIBNAME)
		rm -rf DevXdrKernel.i
		$(CC) $(ICODE_CFLAGS) -P DevXdrKernel.c
		$(CC) $(ICODE_CFLAGS) $(ICODE_OBJS) DevXdrKernel.i -Wi,-m -f $(ICODE_LIBNAME)
#
# 		All xdr types
$(LIBNAME_ALL):	$(OBJS)	$(ICODE_OBJS)
		rm -rf $(LIBNAME_ALL)
		rm -rf DevXdrKernel.o
		$(CC) $(CFLAGS) -D _XDR_ALL DevXdrKernel.c
		libgen $(OBJS) DevXdrKernel.o -co=$(LIBNAME_ALL)

		rm -rf $(ICODE_LIBNAME_ALL)
		rm -rf DevXdrKernel.i
		$(CC) $(ICODE_CFLAGS) -D _XDR_ALL -P DevXdrKernel.c
		$(CC) $(ICODE_CFLAGS) $(ICODE_OBJS) DevXdrKernel.i -Wi,-m -f $(ICODE_LIBNAME_ALL)
endif # _UCC

#DevXdrKernel.o : 
#		rm -rf DevXdrKernel.o
#		$(CC) $(CFLAGS) DevXdrKernel.c 

#DevXdrKernel_all.o : 
#		$(CC) $(CFLAGS) -D_XDR_ALL DevXdrKernel.c -o DevXdrKernel_all.o



ifdef unix
#		Make HPUX library
#		Small kernel
$(LIBNAME):	$(OBJS)
		rm -rf DevXdrKernel.o
		$(CC) $(CFLAGS) -c DevXdrKernel.c
ifdef vw68k
#		ar68k -rc $(LIBNAME) $(OBJS) DevXdrKernel.o
#		ar68k -s $(LIBNAME) $(OBJS) DevXdrKernel.o
#		ranlib68k $(LIBNAME)
		ld68k -o libdsxdr.o -r $(OBJS) DevXdrKernel.o
else
ifdef vwx86
#		ar386 -r $(LIBNAME) $(OBJS) DevXdrKernel.o
#		ranlib386 $(LIBNAME)
		ld386 -o libdsxdr.o -r $(OBJS) DevXdrKernel.o
else
		ar rv $(LIBNAME) $(OBJS) DevXdrKernel.o
endif # vwx86
endif # vw68k

#
# 		All xdr types
$(LIBNAME_ALL):	$(OBJS)	
		rm -rf DevXdrKernel.o
		$(CC) $(CFLAGS) -c -D_XDR_ALL DevXdrKernel.c
ifdef vw68k
#		ar68k -rc $(LIBNAME_ALL) $(OBJS) DevXdrKernel.o
#		ar68k -s $(LIBNAME_ALL) $(OBJS) DevXdrKernel.o
#		ranlib68k $(LIBNAME_ALL)
		ld68k -o libdsxdr_all.o -r $(OBJS) DevXdrKernel.o
else
ifdef vwx86
#		ar386 -r $(LIBNAME_ALL) $(OBJS) DevXdrKernel.o
#		ranlib386 $(LIBNAME_ALL)
		ld386 -o libdsxdr_all.o -r $(OBJS) DevXdrKernel.o
else
		ar rv $(LIBNAME_ALL) $(OBJS) DevXdrKernel.o
endif # vwx86
endif # vw68k
ifdef sun
		ranlib $(LIBNAME)
		ranlib $(LIBNAME_ALL)
endif # sun

#
# shared libraries
#
ifndef vxworks
$(LIBNAME_SL).$(SL_EXT):	$(OBJS_SL)
		rm -rf DevXdrKernel.sl.o
		$(CC) $(CFLAGS_SL) -o DevXdrKernel.sl.o DevXdrKernel.c
ifdef _solaris
		ld -G -o $(LIBNAME_SL).$(XDRVERS).$(SL_EXT) $(OBJS_SL) DevXdrKernel.sl.o
endif # _solaris
ifdef __hp9000s700
		ld -b -o $(LIBNAME_SL).$(XDRVERS).$(SL_EXT) $(OBJS_SL) DevXdrKernel.sl.o
endif # __hp9000s700
ifdef linux
		$(CC) -shared -Wl,-soname,$(LIBNAME_SL).$(SL_EXT) \
		-o $(LIBNAME_SL).$(XDRVERS).$(SL_EXT) $(OBJS_SL) DevXdrKernel.sl.o
endif # linux
		rm -rf $(LIBNAME_SL).$(SL_EXT)
		ln -s $(LIBNAME_SL).$(XDRVERS).$(SL_EXT) $(LIBNAME_SL).$(SL_EXT)
$(LIBNAME_ALL_SL).$(SL_EXT):	$(OBJS_SL)
		rm -rf DevXdrKernel.sl.o
		$(CC) $(CFLAGS_SL) -D_XDR_ALL -o DevXdrKernel.sl.o DevXdrKernel.c
ifdef _solaris
		ld -G -o $(LIBNAME_ALL_SL).$(XDRVERS).$(SL_EXT) $(OBJS_SL) DevXdrKernel.sl.o
endif # _solaris
ifdef __hp9000s700
		ld -b -o $(LIBNAME_ALL_SL).$(XDRVERS).$(SL_EXT) $(OBJS_SL) DevXdrKernel.sl.o
endif # __hp9000s700
ifdef linux
		$(CC) -shared -Wl,-soname,$(LIBNAME_ALL_SL).$(SL_EXT) \
		-o $(LIBNAME_ALL_SL).$(XDRVERS).$(SL_EXT) $(OBJS_SL) DevXdrKernel.sl.o
endif # linux
		rm -rf $(LIBNAME_ALL_SL).$(SL_EXT)
		ln -s $(LIBNAME_ALL_SL).$(XDRVERS).$(SL_EXT) $(LIBNAME_ALL_SL).$(SL_EXT)
endif # !vxworks
endif #unix



install :	$(LIBNAME) 
ifndef vxworks
#		intall the library
		cp $(LIBNAME) $(INSTALL_HOME)
		cp $(LIBNAME_ALL) $(INSTALL_HOME)
else
		cp libdsxdr.o $(INSTALL_HOME)
		cp libdsxdr_all.o $(INSTALL_HOME)
endif # !vxworks 
ifdef _UCC
		cp $(ICODE_LIBNAME) $(INSTALL_HOME)
		cp $(ICODE_LIBNAME_ALL) $(INSTALL_HOME)
endif # _UCC
#		install the include files
#
# vxworks group does not have the permissions to copy include files
# 
ifndef vxworks
		for i in $(INCL);\
		do \
		( rm -f $(DSHOME)/include/$$i; \
		  cp ../include/$$i $(DSHOME)/include;\
		  chmod 664 $(DSHOME)/include/$$i; ) \
		done
endif # vxworks

install_sl :	
#
# shared libraries are installed as links; a new copy
# is created for each new XDRVERS version
#
		cp $(LIBNAME_SL).$(XDRVERS).$(SL_EXT) $(INSTALL_HOME_SL)
		rm -rf $(INSTALL_HOME_SL)/$(LIBNAME_SL).$(SL_EXT)
		cd $(INSTALL_HOME_SL); ln -s $(LIBNAME_SL).$(XDRVERS).$(SL_EXT) $(LIBNAME_SL).$(SL_EXT)
		cp $(LIBNAME_ALL_SL).$(XDRVERS).$(SL_EXT) $(INSTALL_HOME_SL)
		rm -rf $(INSTALL_HOME_SL)/$(LIBNAME_ALL_SL).$(SL_EXT)
		cd $(INSTALL_HOME_SL); ln -s $(LIBNAME_ALL_SL).$(XDRVERS).$(SL_EXT) $(LIBNAME_ALL_SL).$(SL_EXT)


clean :		
		rm -rf $(OBJS)	
		rm -rf $(OBJS_SL)	
		rm -rf $(ICODE_OBJS)
		rm -rf DevXdrKernel.o
		rm -rf DevXdrKernel.sl.o
		rm -rf DevXdrKernel.r
		rm -rf DevXdrKernel.i
		rm -rf *.i


clobber:	clean
		rm -rf	$(LIBNAME) 
		rm -rf	$(LIBNAME_ALL) 
ifdef $(LIBNAME_SL)
		rm -rf  $(LIBNAME_SL).$(SL_EXT)
		rm -rf  $(LIBNAME_SL).$(XDRVERS).$(SL_EXT)
		rm -rf	$(LIBNAME_ALL).$(SL_EXT)
		rm -rf	$(LIBNAME_ALL_SL).$(XDRVERS).$(SL_EXT)
endif # $(LIBNAME_SL)
ifdef _UCC
		rm -rf	$(ICODE_LIBNAME) 
		rm -rf	$(ICODE_LIBNAME_ALL) 
endif # _UCC


lock:
	$(RCSLOCK) $(SRC)
	cd ../include; $(RCSLOCK) $(INCL); cd ../src

co:
	$(RCSCO) $(SRC)
	cd ../include; $(RCSCO) $(INCL); cd ../src

ci:
	$(RCSCI) $(SRC)
	cd ../include; $(RCSCI) $(INCL); cd ../src
#
