#-------------------------------------------------------------------------
# common part of the makefile for the PSI specific parts of SICS
#
# Mark Koennecke, June 2003
#-------------------------------------------------------------------------
.SUFFIXES: 
.SUFFIXES: .c .o .f

OBJ=psi.o buffer.o ruli.o dmc.o nxsans.o nextrics.o sps.o pimotor.o \
	pipiezo.o sanswave.o faverage.o fowrite.o amor2t.o nxamor.o \
	amorstat.o tasinit.o tasdrive.o tasutil.o tasscan.o swmotor.o \
	polterwrite.o ecb.o frame.o el734driv.o el734dc.o ecbdriv.o \
	ecbcounter.o el737driv.o sinqhmdriv.o tdchm.o velodorn.o \
	velodornier.o docho.o sanscook.o tecsdriv.o itc4driv.o itc4.o\
	bruker.o ltc11.o A1931.o dilludriv.o eurodriv.o slsmagnet.o \
	el755driv.o amorscan.o serial.o scontroller.o  t_update.o \
	t_rlp.o t_conv.o el737hpdriv.o dornier2.o el734hp.o \
	el737hpv2driv.o swmotor2.o tricssupport.o \
	oicom.o fsm.o remob.o eve.o logger.o dgrambroadcast.o \
	ipsdriv.o itcdriv.o ilmdriv.o lcdriv.o sinq.o tabledrive.o 

libpsi.a: $(OBJ)
	rm -f libpsi.a
	ar cr libpsi.a $(OBJ)
	ranlib libpsi.a

clean:
	rm -f *.a
	rm -f *.o

SINQOPT=-DGRAPH_MHC3 -DUSE_MULTICAST -DSEND_PORT=0xABCB -DSERVER_HOST="\"acslg1\""
dgrambroadcast.o: dgrambroadcast.h dgrambroadcast.c
	$(CC) $(SINQOPT) -c -g dgrambroadcast.c

sinq.o: sinq.c sinq.h dgrambroadcast.h
	$(CC) $(SINQOPT) -I../ -g -c sinq.c
