# Makefile additions for A/UX

INSTALL=cp
LIB2FUNCS_EXTRA= _exithk.c mcount_.o
EXTRA_PASSES=ld crtfix
CLIB=-lld # needed for collect2
LDFLAGS=-static	# needed if binaries will be used on multiple A/UX versions

#ld: collect2
#	ln collect2 ld

mcount_.o: mcount_.asm
	/bin/as -o mcount_.o mcount_.asm

crtfix: crtfix.c
	$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o crtfix crtfix.c $(LIBS)
