Windows: Add resource info to afsroken.dll
[openafs.git] / src / roken / NTMakefile
index 9c3ba09..cc63336 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 \
@@ -35,6 +36,7 @@ ROKEN_OBJS = \
        $(OUT)\flock.obj \
        $(OUT)\getopt.obj \
         $(OUT)\getprogname.obj \
+       $(OUT)\gettimeofday.obj \
        $(OUT)\hex.obj \
         $(OUT)\issuid.obj \
        $(OUT)\localtime_r.obj \
@@ -48,6 +50,7 @@ ROKEN_OBJS = \
        $(OUT)\strlcpy.obj \
        $(OUT)\strnlen.obj \
        $(OUT)\strsep.obj \
+       $(OUT)\tsearch.obj \
         $(OUT)\verr.obj \
         $(OUT)\verrx.obj \
         $(OUT)\vwarn.obj \
@@ -65,12 +68,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
@@ -78,7 +88,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)