BASE = /usr/pkg/dx

include /usr/pkg/dx/lib_netbsd/arch.mak

# include ../../netbsd.mak

EXP      = $(BASE)/lib_netbsd/dxexec.exp
CFLAGS = -g -Dnetbsd -I$(BASE)/include \
	$(DXCFLAGS)

CC = $(DXCC)

.c.o: ; $(CC) -c $*.c $(DXABI) $(DX_RTL_CFLAGS) $(CFLAGS)

loadable: interactors

interactors: interactors.o
	-rm interactors
	$(MAKE) -f module_make usual_interactors || $(MAKE) -f module_make aix_interactors
	
usual_interactors:
	$(CCLD) $(DXABI) $(DX_RTL_LDFLAGS) -e DXEntry \
		-o interactors interactors.o -lm

aix_interactors:
	$(CCLD) -o interactors interactors.o -e DXEntry -bI:$(EXP) -lm

