####################################################
# Copyright (C) 2001-2003, CompHEP COllaboration
#------------------------------------------------------
# Author: Sherstnev                                #
# Makefile, v1.5 08/01/2003                        #
#--------------------------------
# $Id: Makefile,v 1.9 2003/08/25 09:31:10 sherstnv Exp $
#
# $Log: Makefile,v $
# Revision 1.9  2003/08/25 09:31:10  sherstnv
# drandXX.c/h files move to service2, so all pathes is changed
#
# Revision 1.8  2003/08/21 10:31:12  sherstnv
# Izmenena sistema nazvaniya bibliotek CompHEP
#
# Revision 1.7  2003/06/27 13:04:38  sherstnv
# All libraries are transfered to the lib directroy
#
# Revision 1.6  2003/06/25 18:46:41  kryukov
# *** empty log message ***
#
# Revision 1.5  2003/06/17 11:15:26  sherstnv
# An error in memory usage has been fixed.
#
# Revision 1.4  2003/04/20 08:42:58  kryukov
# Use generic rules for compilation
#
####################################################
.PHONY: clean all

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

OBJS=4_vector.o alphas2.o cs_22.o cut.o decay.o event_reader.o err_code.o \
     events.o f_c.o fill_tags.o histogram.o kinaux.o kininpt.o mc_menu.o \
     n_comphep_.o n_comphep.o num_serv.o param.o pdf.o phys_val.o \
     q_kin.o rd_num.o regfunal.o regul.o runVegas.o rw_sess.o simpson.o \
     spline.o subproc.o tools.o vegas.o width_12.o \
     kfcodes.o tag_parser.o tag_reader.o tag_writer.o

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

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