]> git.sur5r.net Git - openldap/blob - libraries/msdos/makeldap.msc
merged with autoconf branch
[openldap] / libraries / msdos / makeldap.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 #       LDAP library makefile for MicroSoft C
13 #
14 #-----------------------------------------------------------------------------
15
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 \
18         kerberos.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
22
23 CFLAGS  = $(ACFLAGS) -I../h $(KRBINCLUDEDIR)
24 NCFLAGS = -I../../include
25 CC      = echo "cd up a level first"
26
27 #default:
28 #       (cd ../; make ldap-library)
29
30 all:    libldap.lib ltest
31
32 bind.obj:       bind.c
33         $(CC) $(CFLAGS) $(NCFLAGS) bind.c
34
35 opendos.obj:    opendos.c
36         $(CC) $(CFLAGS) $(NCFLAGS) opendos.c
37
38 result.obj:     result.c
39         $(CC) $(CFLAGS) $(NCFLAGS) result.c
40
41 error.obj:      error.c
42         $(CC) $(CFLAGS) error.c
43
44 compare.obj:    compare.c
45         $(CC) $(CFLAGS) compare.c
46
47 search.obj:     search.c
48         $(CC) $(CFLAGS) search.c
49
50 parse.obj:      parse.c
51         $(CC) $(CFLAGS) parse.c
52
53 modify.obj:     modify.c
54         $(CC) $(CFLAGS) modify.c
55
56 add.obj:        add.c
57         $(CC) $(CFLAGS) add.c
58
59 modrdn.obj:     modrdn.c
60         $(CC) $(CFLAGS) modrdn.c
61
62 delete.obj:     delete.c
63         $(CC) $(CFLAGS) delete.c
64
65 abandon.obj:    abandon.c
66         $(CC) $(CFLAGS) abandon.c
67
68 synchronous.obj:        synchronous.c
69         $(CC) $(CFLAGS) synchronous.c
70
71 kerberos.obj:   kerberos.c
72         $(CC) $(CFLAGS) kerberos.c
73
74 libldap.lib:    $(OBJS)
75         del libldap.lib
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;
79
80 test.obj:       test.c
81         $(CC) $(CFLAGS) test.c
82
83 ltest:  libldap.lib test.obj ..\liblber\liblber.lib
84         copy libldap.lib ..\..\lib
85         copy ..\liblber\liblber.lib ..\..\lib
86         cd ..\..\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
89         del libldap.lib
90         del liblber.lib
91         del ltest.exe
92         cd ..\ldap\libldap