# WARNING: DO NOT EDIT.
# THIS FILE WAS AUTOMATICALLY GENERATED USING THE
# BUILDMAKE PROGRAM.

#
# Makefile for the V login/logout commands
# Timothy P. Mann
#
C68FLAGS = -O -V
LIBS = -lVhost

# 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 : login logout

login : login.b
	cc68 $(C68FLAGS) -o login.68 login.b $(LIBS) 
	rev68 login.68 login

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

install: all
	netinstall -p "login logout" /usr/sun/Vboot


clean:
	rm -f *.CKP *.BAK *.b .emacs* login logout

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

build:
	buildmake.sh

xbuild:
	buildmake.sh -DX=1
