From 62a783a6bd7649ccd162e32278098080bf450c7b Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Fri, 9 Aug 2002 18:03:48 +0000 Subject: Imported from pacman-2.0.tar.gz --- Makefile.in | 122 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 Makefile.in (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 00000000..e2c4798b --- /dev/null +++ b/Makefile.in @@ -0,0 +1,122 @@ +# +# pacman +# +# Copyright (c) 2002 by Judd Vinet +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, +# USA. +# + +# NOTE: Since pacman is compiled statically, you will need the static +# libraries for zlib and glibc. + +DESTDIR = +prefix = @prefix@ +exec_prefix = @prefix@ + +BINDIR = @bindir@ +MANDIR = @mandir@ + +INSTALL = @INSTALL@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ + +PACVER = 2.0 +LIBTAR_VERSION = 1.2.5 + +TOPDIR = @srcdir@ +SRCDIR = $(TOPDIR)/src/ +OBJDIR = $(TOPDIR)/src/ +MANSRC = $(TOPDIR)/doc/ +SCRDIR = $(TOPDIR)/scripts/ + +CXX = @CC@ +CXXFLAGS += @CFLAGS@ -Wall -pedantic -fno-exceptions -fno-rtti \ + -D_GNU_SOURCE -DPACVER=\"$(PACVER)\" -I. \ + -Ilibtar-$(LIBTAR_VERSION)/lib -Ilibftp +LDFLAGS += @LDFLAGS@ -static -Llibtar-$(LIBTAR_VERSION)/lib -Llibftp \ + -lftp -ltar -lz + +SRCS = $(SRCDIR)pacman.c \ + $(SRCDIR)db.c \ + $(SRCDIR)util.c \ + $(SRCDIR)list.c \ + $(SRCDIR)package.c \ + $(SRCDIR)pacsync.c \ + $(SRCDIR)rpmvercmp.c \ + $(SRCDIR)md5.c \ + $(SRCDIR)md5driver.c + +OBJECTS = $(OBJDIR)pacman.o \ + $(OBJDIR)db.o \ + $(OBJDIR)util.o \ + $(OBJDIR)list.o \ + $(OBJDIR)package.o \ + $(OBJDIR)pacsync.o \ + $(OBJDIR)rpmvercmp.o \ + $(OBJDIR)md5.o \ + $(OBJDIR)md5driver.o + +all: libtar ftplib pacman convertdb man + +pacman: $(OBJECTS) + $(CXX) $(OBJECTS) -o $@ $(LDFLAGS) + +convertdb: $(SRCDIR)convertdb.c $(SRCDIR)list.c + $(CXX) -o convertdb $(SRCDIR)convertdb.c $(SRCDIR)list.c $(CXXFLAGS) + +.c.o: $(SRCS) + $(CXX) $(CXXFLAGS) -o $@ -c $< + +man: $(MANSRC)pacman.8 \ + $(MANSRC)makepkg.8 + +%.8: %.8.in + sed -e "s/#VERSION#/$(PACVER)/" $< > $@ + +dist: distclean + (cd ..; tar czvf pacman-$(PACVER).tar.gz pacman-$(PACVER)) + +ftplib: + (cd libftp; make libftp.a) + +libtar: + (tar xzf libtar-$(LIBTAR_VERSION).tar.gz; \ + cd libtar-$(LIBTAR_VERSION); \ + LDFLAGS="" ./configure --disable-encap --disable-encap-install; \ + make;) + +install: pacman convertdb man + $(INSTALL) -D -m0755 pacman $(DESTDIR)$(BINDIR)/pacman + $(INSTALL) -D -m0755 convertdb $(DESTDIR)$(BINDIR)/convertdb + $(INSTALL) -D -m0755 $(SCRDIR)makepkg $(DESTDIR)$(BINDIR)/makepkg + $(INSTALL) -D -m0755 $(SCRDIR)makeworld $(DESTDIR)$(BINDIR)/makeworld + $(INSTALL) -D -m0755 $(SCRDIR)abs $(DESTDIR)$(BINDIR)/abs + $(INSTALL) -D -m0644 $(MANSRC)pacman.8 $(DESTDIR)$(MANDIR)/man8/pacman.8 + $(INSTALL) -D -m0644 $(MANSRC)makepkg.8 $(DESTDIR)$(MANDIR)/man8/makepkg.8 + $(INSTALL) -D -m0644 etc/pacman.conf $(DESTDIR)/etc/pacman.conf + $(INSTALL) -D -m0644 etc/makepkg.conf $(DESTDIR)/etc/makepkg.conf + $(INSTALL) -D -m0644 etc/supfile $(DESTDIR)/etc/abs/supfile + +clean: + rm -f *~ $(OBJDIR)*.o $(MANSRC)*.8 + (cd libftp; make clobber) + +distclean: clean + rm -f pacman convertdb + rm -rf libtar-$(LIBTAR_VERSION) + +# End of file -- cgit v1.2.3-24-g4f1b