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

# Makefile for ip telnet
# Bill Nowicki October 1982

CFLAGS = -O -I/usr/sun/include
.SUFFIXES: .b .ls .s .c
C68FLAGS = -O -V
LIBS = 

# 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

all: iptelnet iptn

iptelnet: standalone.b telnet.b malloc.b small.b file.b
	cc68 $(C68FLAGS) -r -o iptelnet standalone.b malloc.b telnet.b \
		small.b file.b $(LIBS) \
		-lVgts -lVexcept -lVinternet \
		-lsfonts -lgraphics

iptn: iptn.b telnet.b  file.b
	cc68 $(C68FLAGS) -o iptn.68 iptn.b telnet.b file.b \
		-lVteamsrv $(LIBS) 
	rev68 iptn.68 iptn

small.b: ../vgtsexec/small.c
	cc68 $(C68FLAGS) -c -I../../servers/vgts ../vgtsexec/small.c

install: all
	netinstall "iptn iptelnet" /usr/sun/Vboot

symbols:
	nm68 -nh iptn.68 > iptn.sym

clean: 
	rm -f *.b *BAK *CKP *.r *.d .emacs* *.68
	rm -f iptelnet iptn
cleanbak:
	rm -f *BAK *CKP

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

build:
	buildmake

xbuild:
	buildmake -DX=1
