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 lightweight X.500 Directory access top level makefile for MSC
14 #-----------------------------------------------------------------------------
19 # Edit the following variables to have appropriate values for your system
23 # You may want to change some of these things too
25 # two kinds of things go in ACFLAGS, global compiler flags (like -g to
26 # generate symbol table info), and global defines (like -DKERBEROS to enable
27 # kerberos version 4 authentication, or -DLDAP_DEBUG to compile in some
28 # debugging info you can then turn on by setting ldap_debug)
30 ACFLAGS = -g -DNEEDPROTOS #-DLDAP_DEBUG # added to every $(CFLAGS)
31 ALDFLAGS = # -g # always passed to ld
32 UDDEFINES = -DUOFM # particular to ud
35 # you probably don't need to edit these things, but if you want to use
36 # a different make or c compiler, change it here.
40 CFLAGS = /c /AL /DDOS /DMSC /Ox /W1 $(ACFLAGS) -I../h
42 LDFLAGS = /m /ST:8192 $(ALDFLAGS)
44 ############################################################################
46 # You should not have to edit anything below this point #
48 ############################################################################
50 SDIRS = liblber ldapd libldap
51 OTHERS = finger gopher ud
53 all: lber-library ldap-server ldap-library
55 library-only: lber-library ldap-library
57 others: ldap-finger ldap-gopher ldap-ud
60 echo "cd liblber; $(MAKE) all"
62 $(MAKE) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBDIR=$(LIBDIR) \
63 CC=$(CC) LD=$(LD) /F makelber.msc
67 echo "cd libldap; $(MAKE) all"
69 $(MAKE) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" LIBDIR=$(LIBDIR) \
70 CC=$(CC) LD=$(LD) /F makeldap.msc
74 # echo "cd ud; $(MAKE) all"
76 # $(MAKE) CFLAGS="$(CFLAGS) $(UDDEFINES)" LDFLAGS="$(LDFLAGS)" \
77 # LIBDIR=$(LIBDIR) CC=$(CC) LD=$(LD) makeud.msc