include ../MkRules Rchtml-CFLAGS= -I "$(HHWDIR)/include" all: ../../../modules/Rchtml.dll ## need -k as hhctrl exports HtmlHelpA libhhctrl.a : MkChmDll $(ECHO) EXPORTS > hhctrl.def $(ECHO) HtmlHelpA@16 >> hhctrl.def $(DLLTOOL) -k --dllname hhctrl.ocx --def hhctrl.def --output-lib libhhctrl.a $(RM) hhctrl.def ../../../modules/Rchtml.dll: Rchtml.o libhhctrl.a $(MKDIR) -p ../../../modules $(DLL) -shared -s -o $@ Rchtml.o -L. -lhhctrl