# Makefile for comm
# $Id: Makefile,v 1.3 1994/07/22 07:30:49 k3sato Exp $

SRCS = comm.c agent.c event.c mem.c dprintf.c
OBJS = comm.o agent.o event.o mem.o dprintf.o
TARGET=../../lib/libcomm.a
TOPDIR=..
CFLAGS_ADD= # -DAGENT_HARDCODED

AR=/bin/ar
RANLIB=/bin/ranlib
CC = gcc

CFLAGS = -Wall -g -I${TOPDIR}/include ${CFLAGS_ADD}

all: ${TARGET}

${TARGET}: ${OBJS}
	rm -f ${TARGET}
	${AR} rcv ${TARGET} ${OBJS}
	${RANLIB} ${TARGET}
	ln -s ${TARGET} .

clean:
	rm -f ${TARGET} ${OBJS} core 

# dep: ${SRCS}
#	$(CPP) ${CFLAGS} -M ${SRCS} > .depend
#
#
# include a dependency file if one exists
#
# ifeq (.depend,$(wildcard .depend))
# 	include .depend
# endif
