# $Id: Makefile,v 1.10 2001/08/10 22:23:16 mpashniak Exp $
# Copyright 2001 Sun Microsystems, Inc.  All rights reserved.
# Makefile for cce_conf

include ../dynamic.mk

INCLUDES += -I./include
SRCS = \
	src/conf.c \
	src/conf_handler.c
OBJS = $(patsubst %.c,%.o,$(SRCS))
DIRLIB = conf.a

all: $(DIRLIB)

$(DIRLIB): $(OBJS)
	$(AR) rcs $(DIRLIB) $(OBJS)

debug:
	$(MAKE) all DEBUG="$(CCE_DEBUG)"

depend: .depend
.depend: $(SRCS)
	$(CC) -E $(CFLAGS) -M $(SRCS) > .depend

test: 
	$(MAKE) -C test

clean: 
	$(RM) -f $(DIRLIB) $(OBJS) .depend
	$(RM) -f src/conf_parser.c
	$(MAKE) -C test clean

doc: include/cce_conf.h
	$(RM) -rf html
	doc++ -H -a -f -M -j -d html $^

#dependencies
ifeq (.depend,$(wildcard .depend))
include .depend
endif
