# makefile for hilo driver
# version : 4.2
# date    : 13/12/93

include $(TOP)/etc/$(MACHINE).mk


HILO_LIB = libMhl402.a
HILO_C   = drive_hilo.c
HILO_OBJ = drive_hilo.o

LOCAL_CFLAGS = $(CFLAGS) -I$(ALLIANCE_INCLUDE) \
	-DMLO_H='"mlo404.h"' -DMUT_H='"mut315.h"'

distrib : ../lib/$(HILO_LIB)
	@$(TOUCH) distrib
	@if [ -f ../lib/INSTALLED ] ; then $(RM) ../lib/INSTALLED  ; else exit 0 ; fi


../lib/$(HILO_LIB) : $(HILO_OBJ)
	$(AR) $(ARFLAGS) ../lib/$(HILO_LIB) $(HILO_OBJ) 
	$(RANLIB) ../lib/$(HILO_LIB)

$(HILO_OBJ) : $(HILO_C)
	$(CC) $(LOCAL_CFLAGS) -c $(HILO_C)

clean :
	$(RM) -f *.o ../lib/*.a distrib
