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
18 $(INCFILEDIR)\roken.h \
19 $(INCFILEDIR)\search.h
22 $(INCFILEDIR)\roken-common.h \
23 $(INCFILEDIR)\base64.h
25 LIBFILE = $(DESTDIR)\lib\afsroken.dll
38 $(OUT)\getprogname.obj \
39 $(OUT)\gettimeofday.obj \
42 $(OUT)\localtime_r.obj \
46 $(OUT)\net_write.obj \
49 $(OUT)\setprogname.obj \
52 $(OUT)\strerror_r.obj \
66 $(OUT)\win32_alloc.obj
68 $(ROKEN_OBJS):$(ROKEN)\$$(@B).c
69 $(C2OBJ) $** -I$(ROKEN)
71 $(ROKEN_INCFILES):$(ROKEN)\$$(@B).h
72 $(COPY) $** $(INCFILEDIR)
75 $(COPY) $** $(INCFILEDIR)
77 RESFILE = $(OUT)\afsroken.res
79 $(RESFILE): afsroken.rc AFS_component_version_number.h
81 roken.h: $(ROKEN)\roken.h.in
84 err.h: $(ROKEN)\err.hin
87 search.h: $(ROKEN)\search.hin
91 NTMAKE = nmake /nologo /f ntmakefile
95 # $(DESTDIR)\lib\afs\afsreg.lib
97 $(LIBFILE): $(ROKEN_OBJS) $(RESFILE) $(DLLLIBS)
98 $(DLLCONLINK) /DEF:afsroken.def shell32.lib
99 $(_VC_MANIFEST_EMBED_DLL)
103 $(MAKECYGLIB) --input-def afsroken.def
105 # Definitions for generating versioninfo resources
106 $(OUT)\afsroken.res: AFS_component_version_number.h
108 install_headers: $(INCFILES) $(ROKEN_INCFILES)
110 install: install_headers $(LIBFILE)
114 $(DEL) err.h roken.h search.h
115 $(DEL) $(LIBFILE) $(DESTDIR)\lib\afsroken.lib $(DESTDIR)\lib\afsroken.exp