# $Source: /hpux/shared/supp//usr/src/lib/libdvio_shared/./makefile,v $
# @(#) $Revision: 72.3 $    

#KERNOPTS = -Dhp9000s200 -Dhpux -Uvax -DMOREFILES -DHFS
#FLAGS = $(KERNOPTS)

SOURCES = dillib.c hpux_rel.c
OBJECTS= dillib.o hpux_rel.o
INCLUDES = dil.h dilio.h

LIB=	libdvio.a
LIB_M=	libdvio.M

default:    $(LIB)

metrics:    $(LIB_M)

$(LIB):	$(OBJECTS)
	rm -f $(LIB)
	ar q $(LIB) $(OBJECTS) 

$(LIB_M): $(SOURCES)
	$(METRICS) $(CFLAGS) $(FLAGS) $(SOURCES) -o $(LIB_M)

dillib.o: dillib.c 
	$(CC) -c $(CFLAGS) dillib.c

#dillibs.o:	assym.s dillibs.s	
#	cat assym.s dillibs.s >dillibs.c
#	$(AS) -o dillibs.o dillibs.c
#	rm -f dillibs.c

#assym.s:	dillibsym.o
#	$(CC) -Wl,-a,archive dillibsym.o
#	./a.out > assym.s
#	rm -f a.out

clean:
	rm -f $(OBJECTS) assym.s dillibsym.o

clobber:    clean
	rm -f $(LIB)

# 
# Re-define .c.o rule so that implicit compiles from source to object
# use FLAGS
#
.c.o:
	$(CC) $(CFLAGS) $(FLAGS) -c $<
