1 # Copyright 2000, International Business Machines Corporation and others.
4 # This software has been released under the terms of the IBM Public
5 # License. For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
9 !INCLUDE ..\config\NTMakefile.$(SYS_NAME)
10 !INCLUDE ..\config\NTMakefile.version
12 ############################################################################
13 # Install header files
15 INCFILEDIR = $(DESTDIR)\include
18 $(INCFILEDIR)\ubik.h \
19 $(INCFILEDIR)\ubik_int.h
23 ############################################################################
26 LIBFILE = $(DESTDIR)\lib\afsubik.lib
37 $(OUT)\ubik_int.cs.obj \
38 $(OUT)\ubik_int.ss.obj \
39 $(OUT)\ubik_int.xdr.obj \
41 $(OUT)\ubikclient.obj \
43 $(OUT)\AFS_component_version_number.obj
46 $(LIBFILE): $(LIBOBJS)
49 ############################################################################
50 # Definitions for building a EXE.
52 RS_UDBG_EXEFILE = $(DESTDIR)\root.server\usr\afs\bin\udebug.exe
53 CL_UDBG_EXEFILE = $(DESTDIR)\bin\udebug.exe
60 $(DESTDIR)\lib\afsubik.lib \
61 $(DESTDIR)\lib\afsrx.lib \
62 $(DESTDIR)\lib\afs\afsreg.lib \
63 $(DESTDIR)\lib\afslwp.lib \
64 $(DESTDIR)\lib\afs\afscom_err.lib \
65 $(DESTDIR)\lib\afs\afscmd.lib \
66 $(DESTDIR)\lib\afs\afsutil.lib
69 $(RS_UDBG_EXEFILE): $(UDBG_EXEOBJS) $(UDBG_EXELIBS)
73 $(CL_UDBG_EXEFILE): $(RS_UDBG_EXEFILE)
76 ############################################################################
77 # generate versioninfo resources
79 $(OUT)\udebug.res: AFS_component_version_number.h
82 ############################################################################
83 # rxgen on ubik_int.xg
86 $(COPY) $** $(INCFILEDIR)\.
88 ubik_int.ss.c ubik_int.cs.c ubik_int.xdr.c ubik_int.h: ubik_int.xg
91 ############################################################################
92 # compile_et on uerrors.et
94 uerrors.c ubik.h: uerrors.et ubik.p.h
95 $(DEL) ubik.h uerrors.c
96 $(COMPILE_ET) uerrors -h ubik
98 ############################################################################
99 # Install target; primary makefile target
101 install9X: $(INCFILES) $(LIBFILE)
103 install: $(INCFILES) $(LIBFILE) $(CL_UDBG_EXEFILE)
107 $(DEL) ubik_int.ss.c ubik_int.cs.c ubik_int.xdr.c
108 $(DEL) uerrors.c $(INCFILES)
109 $(DEL) ubik_int.h ubik.h
111 ############################################################################
114 test tests: utst_server utst_client $(EXEFILE)
116 utst_server: $(OUT)\utst_server.obj $(OUT)\utst_int.ss.obj $(OUT)\utst_int.xdr.obj $(EXELIBS)
119 utst_client: $(OUT)\utst_client.obj $(OUT)\utst_int.cs.obj $(OUT)\utst_int.xdr.obj $(EXELIBS)
122 # rxgen on utst_int.xg
123 utst_int.ss.c utst_int.cs.c utst_int.xdr.c utst_int.h: utst_int.xg
126 $(OUT)\utst_server.obj $(OUT)\utst_client.obj : utst_int.h