COMM       @(#)Imakefile	1.7 04/09/99  CERN IT-PDP/DM Olof Barring
COMM
COMM  Copyright (C) 1998 by CERN/IT/PDP/DM
COMM  All rights reserved
COMM

COMM		Make rfio_hpss routines library

#if UseHpss
#if BuildHpssServer
HPSSFLAGS = -DHPSS -D_THREAD_SAFE -DMAX_THREADS=10
HPSSLIB_OBJS = rfio_hpss.Osuf
#if defined(_AIX)
CC = xlc_r4 -qlanglvl=extended -Dunix -DAIX42 
#endif
#if defined(__osf__) && defined(__alpha)
CC = cc -threads -DDUXV4 
CCOPTFLAGS =  -D__ALPHA -D__ALPHA__ -DBYTE8INT -DLITTLEEND -DDIGITAL_UNIX 
#endif
HPSSINCLUDES=-I/usr/lpp/hpss/include -I/usr/lpp/encina/include
#endif

#if BuildHpssClient
HPSSCFLAGS = -DHPSS -DNO_DCE
HPSSCLIB_OBJS = hpss_common.Osuf ibmconfidential.Osuf 
#if __osf__ && __alpha
CCOPTFLAGS =  -D__ALPHA -D__ALPHA__ -DBYTE8INT -DLITTLEEND -DDIGITAL_UNIX
#endif
#if hpux
CCOPTFLAGS = -Ae -DHPUX10 -Dunix -DHPUX1010 -D__HPUX__
#endif
#endif
#endif
INCLUDES = -I./ -I../h
CFLAGS = -O $(CCOPTFLAGS) $(HPSSCFLAGS) $(INCLUDES)


#if BuildHpssClient
.PRECIOUS:      LibraryTargetName(hpss_common)

all:	LibraryTargetName(hpss_common)

NormalLibraryTarget(hpss_common,$(HPSSCLIB_OBJS))

#endif
#if BuildHpssServer
.PRECIOUS:      LibraryTargetName(rfio_hpss)

all:	LibraryTargetName(rfio_hpss)

NormalLibraryTarget(rfio_hpss,$(HPSSLIB_OBJS))

rfio_hpss.Osuf:	rfio_hpss.c
	$(CC) $(CCOPTFLAGS) $(HPSSFLAGS) $(ACCTFLAG) $(INCLUDES) $(HPSSINCLUDES) -c rfio_hpss.c
#endif

install:	all

export:

exportman:

exportshr:

clean:
	@echo cleaning in CurDir
	-@RemoveFiles(FilesToClean $(CRAYREADFF))

clobber: clean

Makefiles:

#if BuildHpssServer
rfio_hpss.Osuf:	./rfio_hpss.h
rfio_hpss.Osuf:	../h/rfio.h
#endif
#if BuildHpssClient
hpss_common.Osuf: ./hpss_errno.h
hpss_common.Osuf: ./hpss_types.h
hpss_common.Osuf: ./mvr_protocol.h
hpss_common.Osuf: ./pdata.h
hpss_common.Osuf: ./u_signed64.h
hpss_common.Osuf: ../h/rfio.h
hpss_common.Osuf: ../h/osdep.h
ibmconfidential.Osuf:	./hpss_errno.h
ibmconfidential.Osuf:	./mvr_protocol.h
ibmconfidential.Osuf:	./pdata.h
ibmconfidential.Osuf:	./u_signed64.h
#endif
