# $Copyright: $
# Copyright (c) 1996 - 2007 by Steve Baker
# All Rights reserved
#
# This software is provided as is without any express or implied
# warranties, including, without limitation, the implied warranties
# of merchant-ability and fitness for a particular purpose.
# Uncomment for FreeBSD:
#CC=gcc
CFLAGS=-O2 -Wall -fomit-frame-pointer
#LDFLAGS=-s
# Uncomment for Cygwin:
#CC=gcc
#CFLAGS=-O2 -Wall -fomit-frame-pointer -DCYGWIN
#LDFLAGS=-s
#TREE_DEST=tree.exe
## Comment out TREE_DEST definition below as well for Cygwin
# Uncomment for OS X:
#CC=cc
#CFLAGS=-O2 -Wall -fomit-frame-pointer -no-cpp-precomp
#LDFLAGS=
# Uncomment for HP/UX:
#CC=cc
#CFLAGS=-Ae +O2 +DAportable -Wall
#LDFLAGS=
# Uncomment for OS/2:
#CC=gcc
#CFLAGS=-02 -Wall -fomit-frame-pointer -Zomf -Zsmall-conv
#LDFLAGS=-s -Zomf -Zsmall-conv
prefix = ${PREFIX}
VERSION=1.5.1.1
TREE_DEST=tree
BINDIR=${prefix}/bin
MAN=man/tree.1
MANDIR=${prefix}/man/man1
all: tree
tree: tree.o
$(CC) $(LDFLAGS) -o $(TREE_DEST) tree.o
tree.o: tree.c
clean:
if [ -x $(TREE_DEST) ]; then rm $(TREE_DEST); fi
if [ -f tree.o ]; then rm *.o; fi
rm -f *~
install: $(TREE_DEST)
$(MKDIR) $(BINDIR)
$(MKDIR) $(MANDIR)
${BSD_INSTALL_PROGRAM} $(TREE_DEST) $(BINDIR)
${BSD_INSTALL_MAN} $(MAN) $(MANDIR)
distclean:
if [ -f tree.o ]; then rm *.o; fi
rm -f *~
dist: distclean
tar zcf ../tree-$(VERSION).tgz -C .. `cat .tarball`
syntax highlighted by Code2HTML, v. 0.9.1