COMM
COMM  Copyright (C) 2004-2005 by CERN
COMM  All rights reserved
COMM
COMM  @(#)$RCSfile: Imakefile,v $ $Revision: 1.7 $ $Date: 2005/11/11 15:39:23 $ CERN Jean-Philippe Baud

COMM    Make dpm socket tests

#if BuildSecurity
LIBCSEC = -ldl
#endif
INCLUDES = FileName(FileName(..,..),h)
#if SOLARIS
LIBS = -L../../lib -ldpm -lsocket -lnsl
#else   
LIBS = -L../../lib -ldpm $(LIBCSEC)
#endif
RFIOFLG = -DGFAL_ENABLE_RFIO

prefixsocket = 	$(prefix)/test/sbin/

COMM######################### FLAGS ##############################

CFLAGS =        -I$(INCLUDES)

COMM######################### RULES ##############################

PROGS = ProgramTargetName(dpm_testcopy) \
	ProgramTargetName(dpm_testget) \
	ProgramTargetName(dpm_testgetprotocols) \
	ProgramTargetName(dpm_testput) \
	ProgramTargetName(dpm_testputdone)

SCRIPTS = 	socketSuite \
		socketStress

PROGSBIN = 	$(addprefix $(prefixsocket),$(PROGS) $(SCRIPTS))

all: $(PROGS)

NormalProgramTarget(dpm_testcopy,dpm_testcopy.Osuf,$(DEPLIBS),$(LIBS) $(SECLIB))
NormalProgramTarget(dpm_testget,dpm_testget.Osuf,$(DEPLIBS),$(LIBS) $(SECLIB))
NormalProgramTarget(dpm_testgetprotocols,dpm_testgetprotocols.Osuf,$(DEPLIBS),$(LIBS) $(SECLIB))
NormalProgramTarget(dpm_testput,dpm_testput.Osuf,$(DEPLIBS),$(LIBS) $(SECLIB))
NormalProgramTarget(dpm_testputdone,dpm_testputdone.Osuf,$(DEPLIBS),$(LIBS) $(SECLIB))

install:	$(PROGSBIN)

install.man:

$(prefixsocket)%: %
	cp $? $@

COMM###################### CLEANING RULES ########################

clean:
	-@RemoveFiles(FilesToClean)

clobber: clean
	-@RemoveFiles($(PROGS))

#if _WIN32
depend:
	@echo Not supported on this platform
#else
depend:
	makedepend -Y$(INCLUDES) *.c 2> /dev/null
#endif

Makefiles:

FORCE:

COMM###################### DEPENDENCIES ##########################

COMM DO NOT DELETE THIS LINE -- make  depend  depends  on  it.
