(file) Return to Makefile CVS log (file) (dir) Up to [XFree86 CVS] / utils

File: [XFree86 CVS] / utils / Makefile (download)
Revision: 1.6, Sun Feb 6 22:49:17 2005 UTC (8 years, 4 months ago) by dawes
Branch: MAIN
CVS Tags: utils-1_1_3, HEAD
Changes since 1.5: +4 -2 lines
Allow CC override when building zlib.

#
# $XFree86: utils/Makefile,v 1.5 2004/02/17 20:24:23 dawes Exp $
#
# Makefile for 'extract'
#

TARDIR = gnutar
ZLIBDIR = zlib

SUBDIRS = $(ZLIBDIR) $(TARDIR)

SHELL=/bin/sh

CC=cc

all: config extract

extract: build-all

build-all: build-tar
	rm -f extract extract.exe
	cp $(TARDIR)/src/tar extract || \
		cp $(TARDIR)/src/tar.exe extract.exe

build-tar: build-zlib
	cd $(TARDIR); $(MAKE) $(MFLAGS) CC=$(CC) EXTRACFLAGS="-I`pwd`/../zlib -DZLIB_SUPPORT" EXTRALIBS="`pwd`/../zlib/libz.a" SUBDIRS="lib src" all-recursive

build-zlib:
	cd $(ZLIBDIR); $(MAKE) $(MFLAGS)

config: $(TARDIR)/Makefile

$(TARDIR)/Makefile:
	cd $(TARDIR); $(SHELL) ./configure --disable-nls

clean:
	rm -f extract extract.exe
	cd $(ZLIBDIR); $(MAKE) $(MFLAGS) clean
	cd $(TARDIR); $(MAKE) $(MFLAGS) clean

clean-config:
	@if [ -f $(TARDIR)/Makefile ]; then \
		(set -x; cd $(TARDIR); $(MAKE) $(MFLAGS) distclean); \
	fi

Powered by
ViewCVS 0.9.2