1 #-----------------------------------------------------------------------------
2 # Copyright (c) 1992 Regents of the University of Michigan.
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.
12 # ud makefile for Microsoft C
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
25 CFLAGS = $(ACFLAGS) -I../h
26 NCFLAGS = -I../../include
27 CC = echo "cd up a level first"
35 $(CC) $(CFLAGS) main.c
38 $(CC) $(CFLAGS) find.c
44 $(CC) $(CFLAGS) print.c
47 $(CC) $(CFLAGS) auth.c
50 $(CC) $(CFLAGS) util.c
53 $(CC) $(CFLAGS) help.c
56 $(CC) $(CFLAGS) getopt.c
58 version.obj: version.c
59 $(CC) $(CFLAGS) version.c
63 lib libud.lib find.obj+mod.obj+print.obj+auth.obj+util.obj+help.obj+getopt+version;
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
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