#
# Makefile for MetaServerII
#
CFILES	= main.c scan.c server.c disp_old.c disp_new.c disp_info.c
OFILES	= $(CFILES:.c=.o)
HDRS	= meta.h packets.h copyright2.h
TARGET	= metaserverII
UTSLIBS	= -lbsd -lsocket

CFLAGS	= -O -s
#CFLAGS	= -g
#CFLAGS	= -g -p -DPROF
LIBS	=

# Amdahl UTS stuff
#LIBS	= $(UTSLIBS)

all: $(TARGET)

$(TARGET): $(OFILES)
	cc $(CFLAGS) -o $(TARGET) $(OFILES) $(LIBS)

$(OFILES):	meta.h

tar:
	tar cvf metaII.tar README.msII INFO.msII Makefile metastat \
			   sample.metarc Customers $(CFILES) $(HDRS)

clean:
	-rm -f $(OFILES)
clobber: clean
	-rm -f $(TARGET)

