W32LIB += $(W32DLL:%.dll=lib/lib%.a) W32LIB += $(W32DRV:%.drv=lib/lib%.a)
lib/lib%.a: $(SOURCE_DIR)/def/%.def $(SOURCE_DIR)/fake/%.dll host.tag tree.tag $(MDSO) -n $.dll -i $@ --libpath=system32 $(SOURCE_DIR)/def/$.def
lib/lib%.a: $(SOURCE_DIR)/def/%.def $(SOURCE_DIR)/fake/%.drv host.tag tree.tag $(MDSO) -n $.drv -i $@ --libpath=system32 $(SOURCE_DIR)/def/$.def
w32lib: $(W32LIB)
all: w32lib
install-w32lib: w32lib mkdir -p $(DESTDIR)$(LIBDIR)/$(PACKAGE) cp $(W32LIB) $(DESTDIR)$(LIBDIR)/$(PACKAGE)
install: install-w32lib
clean-w32lib: rm -rf $(W32LIB)
clean: clean-w32lib
.PHONY: w32lib .PHONY: install-w32lib .PHONY: clean-w32lib