]> git.sur5r.net Git - openldap/blobdiff - build/rules.mk
ITS#5401
[openldap] / build / rules.mk
index 00e63c3f90a6e561fbb2b8c34a8d7195e7619b4a..c642f44298a328b86f856eed5879fbc0f4ad403a 100644 (file)
@@ -1,10 +1,29 @@
+# $OpenLDAP$
+## This work is part of OpenLDAP Software <http://www.openldap.org/>.
 ##
-## Makefile Template for Programs
+## Copyright 1998-2008 The OpenLDAP Foundation.
+## All rights reserved.
 ##
+## Redistribution and use in source and binary forms, with or without
+## modification, are permitted only as authorized by the OpenLDAP
+## Public License.
+##
+## A copy of this license is available in the file LICENSE in the
+## top-level directory of the distribution or, alternatively, at
+## <http://www.OpenLDAP.org/license.html>.
+##---------------------------------------------------------------------------
+#
+# Makefile Template for Programs
+#
+
+all-common: $(PROGRAMS) FORCE
 
-all: $(PROGRAMS)
+clean-common:  FORCE
+       $(RM) $(PROGRAMS) $(XPROGRAMS) $(XSRCS) *.o *.lo a.out core *.core \
+                   .libs/* *.exe
 
-install: all
+depend-common: FORCE
+       $(MKDEP) $(DEFS) $(DEFINES) $(SRCS)
 
 lint: FORCE
        $(LINT) $(DEFS) $(DEFINES) $(SRCS)
@@ -12,10 +31,5 @@ lint: FORCE
 lint5: FORCE
        $(5LINT) $(DEFS) $(DEFINES) $(SRCS)
 
-clean:         FORCE
-       $(RM) $(PROGRAMS) $(XPROGRAMS) $(XSRCS) \
-               *.o a.out core
-
-depend: FORCE
-       $(MKDEP) $(DEFS) $(DEFINES) $(SRCS)
+Makefile: $(top_srcdir)/build/rules.mk