]> git.sur5r.net Git - openldap/blob - libraries/msdos/makeud.msc
merged with autoconf branch
[openldap] / libraries / msdos / makeud.msc
1 #-----------------------------------------------------------------------------
2 # Copyright (c) 1992 Regents of the University of Michigan.
3 # All rights reserved.
4 #
5 # Redistribution and use in source and binary forms are permitted
6 # provided that this notice is preserved and that due credit is given
7 # to the University of Michigan at Ann Arbor. The name of the University
8 # may not be used to endorse or promote products derived from this
9 # software without specific prior written permission. This software
10 # is provided ``as is'' without express or implied warranty.
11 #
12 #       ud makefile for Microsoft C
13 #
14 #       Use -DUOFM for University of Michigan specifics like:
15 #               if ud should know about noBatchUpdates
16 #       Use -DDOS if building for a DOS machine
17 #       Use -DNOTERMCAP if there is no termcap library
18 #               also need to redefine/undefine the Makefile TERMLIB variable
19 #-----------------------------------------------------------------------------
20 SRCS=   find.c mod.c print.c auth.c util.c help.c getopt.c versio.c
21 OBJS=   find.obj mod.obj print.obj auth.obj util.obj help.obj \
22                 getopt.obj version.obj
23 HDRS=   ud.h protoud.h
24
25 CFLAGS  = $(ACFLAGS) -I../h
26 NCFLAGS = -I../../include
27 CC      = echo "cd up a level first"
28
29 #default:
30 #       (cd ../; make ud)
31
32 all:    ud
33
34 main.obj:       main.c
35         $(CC) $(CFLAGS) main.c
36
37 find.obj:       find.c
38         $(CC) $(CFLAGS) find.c
39
40 mod.obj:        mod.c
41         $(CC) $(CFLAGS) mod.c
42
43 print.obj:      print.c
44         $(CC) $(CFLAGS) print.c
45
46 auth.obj:       auth.c
47         $(CC) $(CFLAGS) auth.c
48
49 util.obj:       util.c
50         $(CC) $(CFLAGS) util.c
51
52 help.obj:       help.c
53         $(CC) $(CFLAGS) help.c
54
55 getopt.obj:     getopt.c
56         $(CC) $(CFLAGS) getopt.c
57
58 version.obj:    version.c
59         $(CC) $(CFLAGS) version.c
60
61 libud.lib:      $(OBJS)
62         del libud.lib
63         lib libud.lib find.obj+mod.obj+print.obj+auth.obj+util.obj+help.obj+getopt+version;
64
65 bud:    libud.lib ../libldap/libldap.lib ../liblber/liblber.lib
66         copy libud.lib ..\..\lib
67         copy ..\libldap\libldap.lib ..\..\lib
68         copy ..\liblber\liblber.lib ..\..\lib
69         cd ..\..\lib
70         $(LD) $(LDFLAGS) ..\ldap\ud\main+memdebug+ncsaio,bud,nul,libud+libldap+liblber+tcp+sess+enet+common
71         copy bud.exe ..\ldap\ud\bud.exe
72         del libldap.lib
73         del liblber.lib
74         del bud.exe
75         cd ..\ldap\ud
76