
#include ../../buildprefix

SRCS=	diff.c  diffdir.c diffreg.c
HDRS=	diff.h
OBJS=	diff.b  diffdir.b diffreg.b
LIBS =

#ifdef X
OPTS = -O -V -vx 
INCLUDES = -I../../libc/include 
#else X
OPTS = -O -V 
INCLUDES = -I../../libc/include 
#endif X

.SUFFIXES: .b .ls .s .c
# normal compile of a module
.c.b:
	cc68 $(OPTS) $(INCLUDES) -c $*.c 

# how to make an assembly file (Not deleting it or assembling it)
.c.s:
	cc68 $(OPTS) $(INCLUDES) -S $*.c

# how to make an assembly listing
.c.ls:
	cc68 $(OPTS) $(INCLUDES) -c -L $*.c


diff:	${OBJS}	$(HDRS)
	cc68 ${OPTS} -r -o diff ${OBJS} 


install: diff
#ifdef X
	netinstall -x -p diff /usr/sun/xVboot
#else X
	netinstall -p "diff" /usr/sun/Vboot
#endif X

clean:
	rm -f *.CKP *.BAK *.b diff

backup:
	cd ..; cpdir diff ../../Vbackup/cmds/diff


