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 # LDAP library makefile for MicroSoft C
14 #-----------------------------------------------------------------------------
16 SRCS = bind.c opendos.c result.c error.c compare.c search.c parse.c \
17 modify.c add.c modrdn.c delete.c abandon.c synchronous.c \
19 OBJS = bind.obj opendos.obj result.obj error.obj compare.obj search.obj \
20 parse.obj modify.obj add.obj modrdn.obj delete.obj abandon.obj \
21 synchronous.obj kerberos.obj
23 CFLAGS = $(ACFLAGS) -I../h $(KRBINCLUDEDIR)
24 NCFLAGS = -I../../include
25 CC = echo "cd up a level first"
28 # (cd ../; make ldap-library)
30 all: libldap.lib ltest
33 $(CC) $(CFLAGS) $(NCFLAGS) bind.c
35 opendos.obj: opendos.c
36 $(CC) $(CFLAGS) $(NCFLAGS) opendos.c
39 $(CC) $(CFLAGS) $(NCFLAGS) result.c
42 $(CC) $(CFLAGS) error.c
44 compare.obj: compare.c
45 $(CC) $(CFLAGS) compare.c
48 $(CC) $(CFLAGS) search.c
51 $(CC) $(CFLAGS) parse.c
54 $(CC) $(CFLAGS) modify.c
60 $(CC) $(CFLAGS) modrdn.c
63 $(CC) $(CFLAGS) delete.c
65 abandon.obj: abandon.c
66 $(CC) $(CFLAGS) abandon.c
68 synchronous.obj: synchronous.c
69 $(CC) $(CFLAGS) synchronous.c
71 kerberos.obj: kerberos.c
72 $(CC) $(CFLAGS) kerberos.c
76 lib libldap.lib +bind.obj+opendos.obj+result.obj+error.obj+compare.obj;
77 lib libldap.lib +search.obj+parse.obj+modify.obj+add.obj+modrdn.obj;
78 lib libldap.lib +delete.obj+abandon.obj+synchronous.obj+kerberos.obj;
81 $(CC) $(CFLAGS) test.c
83 ltest: libldap.lib test.obj ..\liblber\liblber.lib
84 copy libldap.lib ..\..\lib
85 copy ..\liblber\liblber.lib ..\..\lib
87 $(LD) $(LDFLAGS) ..\ldap\libldap\test+memdebug+ncsaio,ltest,nul,libldap+liblber.lib+tcp+sess+enet+common
88 copy ltest.exe ..\ldap\libldap\ltest.exe