# $Id: Makefile,v 1.6 2001/08/10 22:23:13 mpashniak Exp $
# Copyright 2001 Sun Microsystems, Inc.  All rights reserved.
# Makefile for common src

include ../../dynamic.mk

SRCS = \
	argparse.c \
	csem.c \
	tcp_socket.c \
	ud_socket.c \
	stresc.c \
	xml_parse.c \
	cce_debug_mask.c \
	intspan.c
OBJS = $(patsubst %.c,%.o,$(SRCS))
DIRLIB = ../common.a

all: $(DIRLIB)

$(DIRLIB): $(OBJS) boolparse/boolparse.o
	$(AR) rcs $@ $^

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

clean:
	$(RM) -f .depend $(OBJS) $(DIRLIB)
	$(MAKE) -C boolparse clean

boolparse/boolparse.o: FORCE
	$(MAKE) -C boolparse

FORCE:

# add dependency info
ifeq (.depend,$(wildcard .depend))
include .depend
endif
