1 # Copyright 2010, Your File System Inc
4 # This software has been released under the terms of the BSD License
5 # For details, see the LICENSE file in the top level source directory
8 !include ..\config\NTMakefile.$(SYS_NAME)
9 !include ..\config\NTMakefile.version
10 AFSDEV_AUXCDEFINES = $(AFSDEV_AUXCDEFINES) -DHAVE_CONFIG_H=1
12 ROKEN = $(SRC)\external\heimdal\roken
14 INCFILEDIR = $(DESTDIR)\include
21 $(INCFILEDIR)\roken-common.h \
22 $(INCFILEDIR)\base64.h
24 LIBFILE = $(DESTDIR)\lib\afsroken.dll
37 $(OUT)\getprogname.obj \
38 $(OUT)\gettimeofday.obj \
41 $(OUT)\localtime_r.obj \
44 $(OUT)\net_write.obj \
47 $(OUT)\strerror_r.obj \
60 $(ROKEN_OBJS):$(ROKEN)\$$(@B).c
61 $(C2OBJ) $** -I$(ROKEN)
63 $(ROKEN_INCFILES):$(ROKEN)\$$(@B).h
64 $(COPY) $** $(INCFILEDIR)
67 $(COPY) $** $(INCFILEDIR)
69 roken.h: $(ROKEN)\roken.h.in
72 err.h: $(ROKEN)\err.hin
76 NTMAKE = nmake /nologo /f ntmakefile
80 # $(DESTDIR)\lib\afs\afsreg.lib
82 $(LIBFILE): $(ROKEN_OBJS) $(DLLLIBS)
83 $(DLLCONLINK) /DEF:afsroken.def shell32.lib
84 $(_VC_MANIFEST_EMBED_DLL)
88 $(MAKECYGLIB) --input-def afsroken.def
90 # Definitions for generating versioninfo resources
91 $(OUT)\afsroken.res: AFS_component_version_number.h
93 install_headers: $(INCFILES) $(ROKEN_INCFILES)
95 install: install_headers $(LIBFILE)
100 $(DEL) $(LIBFILE) $(DESTDIR)\lib\afsroken.lib $(DESTDIR)\lib\afsroken.exp