# newterm buildfile
# Kenneth Brooks November 1983

#include ../../buildprefix


.SUFFIXES: .c .b

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

OBJS = newterm.b

LIBS =

.c.b:
	cc68  $(C68FLAGS) -c $<

.c.s:
	cc68 $(C68FLAGS) -S -c $<

newterm: $(OBJS)
	cc68 $(C68FLAGS) -r -o newterm $(OBJS) $(LIBS)

clean:
	rm -f *.BAK *.CKP
	rm -f *.b .emacs* newterm

cleanbak:
	rm -f *.BAK *.CKP

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

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


