diff --git a/lib/Makefile.netware b/lib/Makefile.netware
index d5440c7b45e59e09fc30449686addb95a0be1886..23a0f68fb344a99ad55ced1cc1f16892007518a2 100644
--- a/lib/Makefile.netware
+++ b/lib/Makefile.netware
@@ -230,7 +230,7 @@ nlm: prebuild $(TARGET).nlm
 
 lib: prebuild $(TARGET).$(LIBEXT)
 
-prebuild: $(OBJDIR) $(OBJDIR)/version.inc config.h
+prebuild: $(OBJDIR) $(CURL_INC)/curl/curlbuild.h $(OBJDIR)/version.inc config.h
 
 $(OBJDIR)/%.o: %.c
 #	@echo Compiling $<
@@ -584,4 +584,7 @@ ca-bundle.crt: mk-ca-bundle.pl
 	@echo Creating $@
 	@-$(PERL) $< -b -n $@
 
+$(CURL_INC)/curl/curlbuild.h: $(CURL_INC)/curl/curlbuild.h.dist
+	@cp $< $@
 
+