# modify OBJ to reflect the files composing the x-kernel user program

# for some reason the ARCH var is not set correctly
# do it manually
ARCH = sparc

OBJ = user.o


# the rest of this is unchanging boilerplate

CC = cc

CFLAGS = -g -I.. -I../../share -I../../protocols -I../../sunos -DXSIMUL

LIBDIR = ../../lib/$(ARCH)


LOAD = $(LIBDIR)/userrt0.o $(OBJ) $(LIBDIR)/libxsim.a


user:	$(LOAD)
	ld -r -o user $(LOAD)

clean:
	rm -f $(OBJ) user

user.o: user.c
	$(CC) -c $(CFLAGS) -o user.o user.c


