#
#
#include object.list
#include ../../vax/buildtemplate
#include dependencies

# --- should depend on /xV/libc/include/vax/ipl.h, too
#     Can we fool "build depend" and "build object.list" into doing the right
#     thing for .c -> .s ?
ipl.hdr: ipl.c 
	$(RULE) -S ipl.c
	mv ipl.s ipl.hdr

crt0.o: crt0.s ipl.hdr
	ccVAX $(CFLAGS) -DINITINTS -E crt0.s | $(AS) -o $*.o
	-ld -x -r $*.o
	chmod 664 a.out
	mv a.out $*.o

xdeltacrt0.o: crt0.s ipl.hdr
	ccVAX $(CFLAGS) -DINITINTS -DXDELTA -E crt0.s | $(AS) -o $*.o
	-ld -x -r $*.o
	chmod 664 a.out
	mv a.out $*.o

	$(RULE) -DINITINTS -DXDELTA -c -o xdeltacrt0.o crt0.s
