Windows: add missing items to 'clean' rules
[openafs.git] / src / roken / NTMakefile
index 5337e9f..665286a 100644 (file)
@@ -15,14 +15,17 @@ INCFILEDIR = $(DESTDIR)\include
 
 INCFILES = \
        $(INCFILEDIR)\err.h \
-       $(INCFILEDIR)\roken.h
+       $(INCFILEDIR)\roken.h \
+       $(INCFILEDIR)\search.h
 
 ROKEN_INCFILES = \
-       $(INCFILEDIR)\roken-common.h
+       $(INCFILEDIR)\roken-common.h \
+       $(INCFILEDIR)\base64.h
 
 LIBFILE = $(DESTDIR)\lib\afsroken.dll
 
 ROKEN_OBJS = \
+       $(OUT)\base64.obj \
         $(OUT)\cloexec.obj \
         $(OUT)\ct.obj \
        $(OUT)\ecalloc.obj \
@@ -30,26 +33,34 @@ ROKEN_OBJS = \
        $(OUT)\erealloc.obj \
         $(OUT)\err.obj \
         $(OUT)\errx.obj \
+       $(OUT)\flock.obj \
        $(OUT)\getopt.obj \
         $(OUT)\getprogname.obj \
+       $(OUT)\gettimeofday.obj \
        $(OUT)\hex.obj \
         $(OUT)\issuid.obj \
        $(OUT)\localtime_r.obj \
+       $(OUT)\mkstemp.obj \
        $(OUT)\net_read.obj \
        $(OUT)\net_write.obj \
+        $(OUT)\realloc.obj \
+       $(OUT)\setprogname.obj \
        $(OUT)\snprintf.obj \
        $(OUT)\socket.obj \
        $(OUT)\strerror_r.obj \
        $(OUT)\strlcat.obj \
        $(OUT)\strlcpy.obj \
        $(OUT)\strnlen.obj \
+       $(OUT)\strsep.obj \
+       $(OUT)\tsearch.obj \
         $(OUT)\verr.obj \
         $(OUT)\verrx.obj \
         $(OUT)\vwarn.obj \
         $(OUT)\vwarnx.obj \
         $(OUT)\warn.obj \
         $(OUT)\warnerr.obj \
-        $(OUT)\warnx.obj
+        $(OUT)\warnx.obj \
+        $(OUT)\win32_alloc.obj
 
 $(ROKEN_OBJS):$(ROKEN)\$$(@B).c
        $(C2OBJ) $** -I$(ROKEN)
@@ -60,12 +71,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
@@ -73,7 +91,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)
@@ -90,5 +108,5 @@ install: install_headers $(LIBFILE)
 
 clean::
        $(DEL) $(INCFILES)
-       $(DEL) err.h
+       $(DEL) err.h roken.h search.h
        $(DEL) $(LIBFILE) $(DESTDIR)\lib\afsroken.lib $(DESTDIR)\lib\afsroken.exp