############################################################################
# Definitions for installing header files
-INCFILEDIR = $(DESTDIR)\include\afs
+INCFILEDIR = $(DESTDIR)\include\afs
INCFILES = \
- $(INCFILEDIR)\afs\vl_opcodes.h \
- $(INCFILEDIR)\afs\vlserver.h \
- $(INCFILEDIR)\afs\vldbint.h
+ $(INCFILEDIR)\vl_opcodes.h \
+ $(INCFILEDIR)\vlserver.h \
+ $(INCFILEDIR)\vldbint.h
+$(INCFILEDIR)\vl_opcodes.h: vl_opcodes.h
+ $(COPY) vl_opcodes.h $(INCFILEDIR)\vl_opcodes.h
+
############################################################################
# build afsvldb.lib
$(DESTDIR)\lib\afs\afseventlog.lib \
$(DESTDIR)\lib\afs\afsreg.lib \
$(DESTDIR)\lib\afs\afsprocmgmt.lib \
- $(DESTDIR)\lib\cm_dns.obj
+ $(DESTDIR)\lib\cm_dns.obj \
+ $(DESTDIR)\lib\cm_nls.obj
-
$(VLSERVER): $(VLSERVER_EXEOBJS) $(LIBFILE) $(VLSERVER_EXECLIBS)
- $(EXECONLINK) dnsapi.lib mpr.lib iphlpapi.lib
+ $(EXECONLINK) dnsapi.lib mpr.lib iphlpapi.lib shell32.lib
$(_VC_MANIFEST_EMBED_EXE)
$(EXEPREP)
############################################################################
# rxgen on vldbint.xg
-$(INCFILES):$$(@F)
- $(COPY) $** $(INCFILEDIR)\.
+vldbint.cs.c: vldbint.xg vldbint.h
+ $(RXGEN) -u -x -C -o $@ vldbint.xg
-vldbint.ss.c vldbint.cs.c vldbint.xdr.c vldbint.h: vldbint.xg
- $(RXGEN) -x $**
- $(COPY) vldbint.h $(DESTDIR)\include\afs\vldbint.h
+vldbint.ss.c: vldbint.xg vldbint.h
+ $(RXGEN) -x -S -o $@ vldbint.xg
+
+vldbint.xdr.c: vldbint.xg vldbint.h
+ $(RXGEN) -x -c -o $@ vldbint.xg
+
+vldbint.h: vldbint.xg
+ $(RXGEN) -u -x -h -o $@ vldbint.xg
+
+$(INCFILEDIR)\vldbint.h: vldbint.h
+ $(COPY) vldbint.h $(INCFILEDIR)\vldbint.h
############################################################################
# Definitions for generating files via COMPILE_ET
# Need an explicit copy here, since we've fussed with the general rule.
-vlserver.h vl_errors.c: vl_errors.et vlserver.p.h
+$(INCFILEDIR)\vlserver.h vlserver.h vl_errors.c: vl_errors.et vlserver.p.h
$(DEL) vlserver.h vl_errors.c
$(COMPILE_ET) vl_errors -h vlserver
- $(COPY) vlserver.h $(INCFILEDIR)\afs\vlserver.h
+ $(COPY) vlserver.h $(INCFILEDIR)\vlserver.h
############################################################################
# build local vldb_check
$(DESTDIR)\lib\afs\afspioctl.lib
$(OUT)\vlclient.exe: $(OUT)\vlclient.obj $(LIBFILE) $(VLSERVER_EXECLIBS) $(VLCLIENT_LIBS)
- $(EXECONLINK) dnsapi.lib mpr.lib iphlpapi.lib
+ $(EXECONLINK) dnsapi.lib mpr.lib iphlpapi.lib shell32.lib
$(_VC_MANIFEST_EMBED_EXE)
# clean up
clean::
- $(DEL) vldbint.cs.c vldbint.ss.c vldbint.xdr.c vldbint.h$$
+ $(DEL) vldbint.cs.c vldbint.ss.c vldbint.xdr.c vldbint.h
$(DEL) vlserver.h vl_errors.c $(INCFILES)
mkdir: