SOURCE = lvx.c

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

INC = -DMLO_H='"mlo404.h"'\
      -DMUT_H='"mut315.h"'

EXTRAFLAGS = -I$(ALLIANCE_INCLUDE) -O $(INC) -DALC=$(ALLIANCE_VERSION)

LIB = -L$(ALLIANCE_LIB) -lMlu411 -lMcl408 -lMal404 -lMvl406 -lMel406 -lMsl608 -lMhl402 -lMlo404 -lMut315

distrib : lvx.c Makefile
	$(CC) $(CFLAGS) $(EXTRAFLAGS) -o ../bin/lvx $(SOURCE) $(LIB)
	@touch distrib
	@if [ -f ../bin/INSTALLED ] ; then $(RM) ../bin/INSTALLED ; else exit 0 ; fi

clean:
	-@$(RM) -f ../bin/* ../lib/* ../include/* *.o distrib > /dev/null 2>&1
