# fexecute: remote execution on a storage server using the FEXECUTE bit
.SUFFIXES: .b .ls .a68 .c
#ifdef X
C68FLAGS = -O -V -vx
#else X
C68FLAGS = -O -V
#endif X
LIBS = 

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

fexecute :  fexecute.b
	cc68 $(C68FLAGS) -o fexecute.68 fexecute.b $(LIBS) 
	rev68 fexecute.68 fexecute
	nm68 -nh fexecute.68 >fexecute.sym
	rm fexecute.68

clean:
	rm -f *.CKP *.BAK *.b fexecute *.68 *.sym .emacs* .netup*

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

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

build:
	buildmake

xbuild:
	buildmake -DX=1
