# Buildfile for V "rm" program.

#include ../../buildprefix


ALL= rm

#ifdef X
C68FLAGS = -O -V -vx
#else X
C68FLAGS = -O -V
#endif X
LIBS = 

# first, define the world of 68000s
.SUFFIXES: .r .dl .sym .b .68 .ls .a68 .c

# how to compile a 68000 file
.c.b:
	cc68 $(C68FLAGS) -c $*.c 

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

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

#END of the world of 68000's

all: $(ALL)

rm :  rm.b
	cc68 $(C68FLAGS) -r -o rm rm.b  $(LIBS) 

install: $(ALL)
#ifdef X
	netinstall -p -x "$(ALL)" /usr/sun/xVboot
#else X
	netinstall -p "$(ALL)" /usr/sun/Vboot
#endif X

clean:
	rm -f *.CKP *.BAK *.b $(ALL)

checkin:
	ci -u rm.c buildfile

rm.c:		;co rm.c
buildfile:	;co buildfile
