]> git.sur5r.net Git - openldap/blob - build/Make-template
Initial revision
[openldap] / build / Make-template
1 #-----------------------------------------------------------------------------
2 # Copyright (c) 1994 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 buildtools makefile
13 #
14 #-----------------------------------------------------------------------------
15
16 all:    FORCE
17         @if [ ! -z "$(NEEDUNPROTO)" ]; then \
18             cd unproto; $(MAKE) $(MFLAGS) CC=$(CC); \
19         else \
20             exit 0; \
21         fi
22
23 install:        FORCE
24
25 clean:
26         cd unproto; $(MAKE) $(MFLAGS) clean
27         cd platforms; $(MAKE) $(MFLAGS) clean
28
29 veryclean:
30         cd unproto; $(MAKE) $(MFLAGS) clean
31         cd platforms; $(MAKE) $(MFLAGS) veryclean
32
33 links:
34         @echo "making links in `$(PWD)`"; \
35         $(LN) .src/version .src/platforms .src/Make-append .src/install.sh . ; \
36         ( $(MKDIR) unproto; cd unproto; $(LN) ../.src/unproto .src; \
37           $(LN) .src/Makefile .src/*.[ch] . )
38