####################################################
# Copyright (C) 2001-2003, CompHEP COllaboration
# Author: Sherstnev                                #
# Makefile, v1.5 08/01/2003                        #
#--------------------------------
# $Id: Makefile,v 1.6 2003/08/21 10:31:13 sherstnv Exp $
#
# $Log: Makefile,v $
# Revision 1.6  2003/08/21 10:31:13  sherstnv
# Izmenena sistema nazvaniya bibliotek CompHEP
#
# Revision 1.5  2003/06/27 13:04:38  sherstnv
# All libraries are transfered to the lib directroy
#
# Revision 1.4  2003/06/25 18:46:41  kryukov
# *** empty log message ***
#
# Revision 1.3  2003/06/17 16:43:14  sherstnv
# mk_tab is linked by user in the $WDIR/usr directory.
#
# Revision 1.2  2003/04/20 08:42:58  kryukov
# Use generic rules for compilation
#
####################################################

.PHONY: clean all

INS:=-I$(CHEP)/src -Iinclude

OBJS=crt.o crt_util.o edittab.o file_scr.o help.o \
     pictures.o syst.o tex_util.o

all: $(OBJS)
	$(MAKE) -C xwin CC=$(CC) CFLAGS='$(CFLAGS)' CHEP=$(CHEP)
	@ar r  $(CHEP)/lib/libserv.a $(OBJS)
	@ranlib $(CHEP)/lib/libserv.a

clean:
	$(MAKE) -C xwin clean
	@rm -f *.o
	
.c.o:
	$(CC) $(CFLAGS) $(INS) -c $<
