roken: Add setprogname
[openafs.git] / src / roken / NTMakefile
index 91bc1c6..591ad89 100644 (file)
@@ -15,7 +15,8 @@ INCFILEDIR = $(DESTDIR)\include
 
 INCFILES = \
        $(INCFILEDIR)\err.h \
-       $(INCFILEDIR)\roken.h
+       $(INCFILEDIR)\roken.h \
+       $(INCFILEDIR)\search.h
 
 ROKEN_INCFILES = \
        $(INCFILEDIR)\roken-common.h \
@@ -42,6 +43,7 @@ ROKEN_OBJS = \
        $(OUT)\mkstemp.obj \
        $(OUT)\net_read.obj \
        $(OUT)\net_write.obj \
+       $(OUT)\setprogname.obj \
        $(OUT)\snprintf.obj \
        $(OUT)\socket.obj \
        $(OUT)\strerror_r.obj \
@@ -49,6 +51,7 @@ ROKEN_OBJS = \
        $(OUT)\strlcpy.obj \
        $(OUT)\strnlen.obj \
        $(OUT)\strsep.obj \
+       $(OUT)\tsearch.obj \
         $(OUT)\verr.obj \
         $(OUT)\verrx.obj \
         $(OUT)\vwarn.obj \
@@ -66,12 +69,19 @@ $(ROKEN_INCFILES):$(ROKEN)\$$(@B).h
 $(INCFILES):$$(@B).h
        $(COPY) $** $(INCFILEDIR)
 
+RESFILE = $(OUT)\afsroken.res
+
+$(RESFILE): afsroken.rc AFS_component_version_number.h
+
 roken.h: $(ROKEN)\roken.h.in
        $(COPY) $** $@
 
 err.h: $(ROKEN)\err.hin
        $(COPY) $** $@
 
+search.h: $(ROKEN)\search.hin
+       $(COPY) $** $@
+
 !if !defined(NMAKE)
 NTMAKE = nmake /nologo /f ntmakefile
 !endif
@@ -79,7 +89,7 @@ NTMAKE = nmake /nologo /f ntmakefile
 DLLLIBS = \
 #       $(DESTDIR)\lib\afs\afsreg.lib
 
-$(LIBFILE): $(ROKEN_OBJS) $(DLLLIBS)
+$(LIBFILE): $(ROKEN_OBJS) $(RESFILE) $(DLLLIBS)
        $(DLLCONLINK) /DEF:afsroken.def shell32.lib
        $(_VC_MANIFEST_EMBED_DLL)
        $(DLLPREP)