#IM = MODULE\\
#UPATH = E:\TOOLSES\\
_CFLAGS=$(__CFLAGS) -D__IDP__

__IDP__=1
include ../../allmake.unx

ifdef O1
OBJ1=$(F)$(O1)$(O)
endif

ifdef O2
OBJ2=$(F)$(O2)$(O)
endif

ifdef O3
OBJ3=$(F)$(O3)$(O)
endif

ifdef O4
OBJ4=$(F)$(O4)$(O)
endif

ifdef O5
OBJ5=$(F)$(O5)$(O)
endif

ifdef O6
OBJ6=$(F)$(O6)$(O)
endif

ifdef H1
HELPS=$(H1)$(HH)
endif

OBJS=$(F)ins$(O) $(F)ana$(O) $(F)out$(O) $(F)reg$(O) $(F)emu$(O) \
     $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6)

IDP_MODULE=$(R)procs/$(PROC)$(IDP)

all:    $(HELPS) $(IDP_MODULE) $(ADDITIONAL_GOALS)

$(IDP_MODULE): ../idp.script $(OBJS) makefile ../module.unx
	@echo ".section .ida;.ascii \"$(DESCRIPTION)\";" | as -o idadesc.o
	$(CCL) --shared $(OUTSW)$@ $(OVROFF) $(OBJS) idadesc.o -L$(R) -lida --no-undefined -Wl,--version-script=../idp.script
	@rm -f idadesc.o
