#############################
# Auteur : Christian Miguel
#############################


##########################################################
# Fichier des dependances pour le logiciel enregistrement
# des fenetres et visualisation
###########################################################


CC	=	/opt/SUNWspro/bin/cc
THEINC	=	../../include
CFLAGS	=	 -I${THEINC} -xsb

THESCRIPTS	=	../../../scripts
BROWSERDBASE	=	../../../CodeBrowser_database

INC	=
THELIB	=	../../lib
THEBIN	=	../../bin
LIBS	=	-L/usr/lib
LIB	= ${THELIB}/Sun-inst-pont.a ${THELIB}/Sun-client-vme.a ${THELIB}/decode.a ${THELIB}/process.a ${THELIB}/erreurs.a  ${THELIB}/util-tab.a  ${THELIB}/the_time.a ${THELIB}/shared-mem.a  ${THELIB}/util_facq.a -lsocket -lnsl

GOAL = noyau.a

OBJS =   enrg.o  controle.o   rao-file.o ready-enrg.o gen_entete.o

SRCS =   enrg.c  controle.c  rao-file.c ready-enrg.c gen_entete.c


#####################
# Cibles utilisees par le make general

#all: browserdb ${GOAL}
all: ${GOAL}
	@cp ${GOAL} ${THELIB}
	@echo bibli  acquisition ok
clean:
	rm -f ${OBJS}


######################
# dependances de ppal


%.o: %.c
	${CC} -c ${CFLAGS} ${INC} $*.c	

 
${GOAL}: ${OBJS} 
	ar rv $@ ${OBJS} 

browserdb :
	${THESCRIPTS}/test_SymLink2BrowserDbase ${BROWSERDBASE}


