summaryrefslogtreecommitdiffstats
path: root/source4/main.mk
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-10-26 14:18:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:45:16 -0500
commit8ee1ee66edb1c98b63cbc26741080932995156a4 (patch)
tree06d6d15aeb9addb392328abcae53bb7673b7b91d /source4/main.mk
parentbf300c868781fed3b0c0556b4e40608589ad1585 (diff)
downloadsamba-8ee1ee66edb1c98b63cbc26741080932995156a4.tar.gz
samba-8ee1ee66edb1c98b63cbc26741080932995156a4.tar.xz
samba-8ee1ee66edb1c98b63cbc26741080932995156a4.zip
r11303: Support defining and installing public headers for libraries.
Support installing libraries. Get rid of pkg-config file (will be autogenerated later on). (This used to be commit b4745032a2c55752c527026feb221ccc3dce10c8)
Diffstat (limited to 'source4/main.mk')
-rw-r--r--source4/main.mk23
1 files changed, 20 insertions, 3 deletions
diff --git a/source4/main.mk b/source4/main.mk
index a069270ac7..382535c528 100644
--- a/source4/main.mk
+++ b/source4/main.mk
@@ -31,6 +31,8 @@ include scripting/config.mk
include kdc/config.mk
binaries: $(BIN_PROGS) $(SBIN_PROGS)
+libraries: $(STATIC_LIBS) $(SHARED_LIBS)
+headers: $(PUBLIC_HEADERS)
manpages: $(MANPAGES)
everything: all
@@ -40,6 +42,7 @@ showlayout:
@echo " bindir: $(BINDIR)"
@echo " sbindir: $(SBINDIR)"
@echo " libdir: $(LIBDIR)"
+ @echo " includedir: $(INCLUDEDIR)"
@echo " vardir: $(VARDIR)"
@echo " privatedir: $(PRIVATEDIR)"
@echo " piddir: $(PIDDIR)"
@@ -55,7 +58,8 @@ showflags:
@echo " SHLD_FLAGS = $(SHLD_FLAGS)"
@echo " LIBS = $(LIBS)"
-install: showlayout installbin installdat installswat installmisc
+install: showlayout installbin installdat installswat installmisc installlib \
+ installheader
# DESTDIR is used here to prevent packagers wasting their time
# duplicating the Makefile. Remove it and you will have the privilege
@@ -72,6 +76,13 @@ installbin: binaries installdirs
@$(SHELL) $(srcdir)/script/installbin.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(SBINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(VARDIR) $(SBIN_PROGS)
@$(SHELL) $(srcdir)/script/installbin.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(VARDIR) $(BIN_PROGS)
+installlib: libraries installdirs
+ @$(SHELL) $(srcdir)/script/installlib.sh $(DESTDIR)$(LIBDIR) $(SHARED_LIBS)
+ @$(SHELL) $(srcdir)/script/installlib.sh $(DESTDIR)$(LIBDIR) $(STATIC_LIBS)
+
+installheader: headers installdirs
+ @$(SHELL) $(srcdir)/script/installheader.sh $(DESTDIR)$(INCLUDEDIR) $(PUBLIC_HEADERS)
+
installdat: installdirs
@$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR)$(LIBDIR) $(srcdir)
@@ -84,7 +95,7 @@ installman: installdirs
installmisc: installdirs
@$(SHELL) $(srcdir)/script/installmisc.sh $(srcdir) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(BINDIR)
-uninstall: uninstallbin uninstallman uninstallmisc
+uninstall: uninstallbin uninstallman uninstallmisc uninstalllib uninstallheader
uninstallmisc:
#FIXME
@@ -93,10 +104,16 @@ uninstallbin:
@$(SHELL) $(srcdir)/script/uninstallbin.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(SBINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(VARDIR) $(DESTDIR)$(SBIN_PROGS)
@$(SHELL) $(srcdir)/script/uninstallbin.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(VARDIR) $(DESTDIR)$(BIN_PROGS)
+uninstalllib:
+ @$(SHELL) $(srcdir)/script/uninstalllib.sh $(DESTDIR)$(LIBDIR) $(SHARED_LIBS)
+ @$(SHELL) $(srcdir)/script/uninstalllib.sh $(DESTDIR)$(LIBDIR) $(STATIC_LIBS)
+
+uninstallheader:
+ @$(SHELL) $(srcdir)/script/uninstallheader.sh $(DESTDIR)$(INCLUDEDIR) $(PUBLIC_HEADERS)
+
uninstallman:
@$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(MANPAGES)
-
etags:
etags `find $(srcdir) -name "*.[ch]"`