#=============================================================================

CLASS =	AcquireWaveformLecroy
RELEASE    = Release_$(MAJOR_VERS)_$(MINOR_VERS)

#

# file :        Makefile.h

#

# description : Include for the AcquireWaveformLecroy class.

#

# project :     Makefile to generate a Tango server

#

# $Author: syldup $

#

# $Revision: 1.5 $

#

# $Log: not supported by cvs2svn $
# Revision 1.4  2004/10/18 13:17:49  xavela
# xavier : add an attr waveArray2.
# Sorts attr in expert and operator view with Pogo.
# Inconsistencies removed.
#
# Revision 1.3  2004/10/07 09:21:19  xavela
# xavier : no cout now.
#
# Revision 1.2  2004/10/05 13:11:11  xavela
# Xavier : previous commit failed.
#
# Revision 1.1.1.1  2004/09/29 15:42:14  syldup
# Initial import.
#

#

# copyleft :    European Synchrotron Radiation Facility

#               BP 220, Grenoble 38043

#               FRANCE

#

#=============================================================================

#  		This file is generated by POGO

#	(Program Obviously used to Generate tango Object)

#

#         (c) - Software Engineering Group - ESRF

#=============================================================================

#



ifdef _solaris

CC = CC

BIN_DIR = solaris7_CC

endif



ifdef linux

CC = c++

AR = ar

BIN_DIR = suse72

endif



TANGO_HOME   =  /segfs/tango

INCLUDE_DIRS =  -I$(TANGO_HOME)/include/$(BIN_DIR)	-I.

LIB_DIRS     =  -L $(TANGO_HOME)/lib/$(BIN_DIR)



ifdef _solaris

CXXFLAGS =  -mt -D_PTHREADS $(INCLUDE_DIRS)

LFLAGS =  -g $(LIB_DIRS)  		\

				-ltango			\

				-llog4tango		\

				-lomniORB4 		\

				-lomniDynamic4	\

				-lomnithread	\

				-lpthread		\

				-lposix4 -lsocket -lnsl

endif



ifdef linux

CXXFLAGS =  -g -D_REENTRANT $(INCLUDE_DIRS)

LFLAGS =  -g $(LIB_DIRS)  		\

				-ltango			\

				-llog4tango		\

				-lomniORB4 		\

				-lomniDynamic4	\

				-lomnithread	\

				-ldl -lpthread

endif













SVC_OBJS = 	main.o	\

		ClassFactory.o	\

		$(CLASS)Class.o	\

		$(CLASS)StateMachine.o \
		$(CLASS).o



SVC_INC = 	$(CLASS)Class.h \

			$(CLASS).h





%.o: %.cpp $(SVC_INC)

	$(CC) $(CXXFLAGS) -c $<

			

all: $(CLASS)



$(CLASS):	$(SVC_OBJS)

	$(CC) $(SVC_OBJS) -o $(CLASS) $(LFLAGS)



clean:

	rm -f *.o $(CLASS) core

	

install:

	cp $(CLASS) $(TANGO_HOME)/bin/$(BIN_DIR)


#----------------------------------------------------
#	Tag the CVS module corresponding to this class
#----------------------------------------------------
tag:
	@cvstag "$(CLASS)-$(RELEASE)"
	@make   $(CLASS)
	@make show_tag

show_tag:
	@cvstag -d