home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 9 Archive
/
09-Archive.zip
/
PAX20.ZIP
/
MAKEFILE.STD
< prev
next >
Wrap
Text File
|
1990-11-12
|
2KB
|
69 lines
#
# PAX - read and write POSIX conformant tar and cpio archives
#
# AUTHOR
#
# Mark H. Colburn, Open Systems Architects, Inc. (mark@minnetech.mn.org)
#
# makefile
#
bin = c:\bin
mansrc =
manext =
CC = cl
CFLAGS = -AS -G2s -Zdep1 -Oxn -J
LIBS =
manpages = pax.man tar.man cpio.man
public = pax tar cpio
private =
util = Makefile
PMAN5 = pax.5 tar.5
SHELL = /bin/sh
headers= config.h dbug.h func.h limits.h port.h pax.h
source= pax.c append.c buffer.c cpio.c create.c dbug.c extract.c\
fileio.c link.c list.c mem.c msdos.c namelist.c names.c\
pass.c pathname.c port.c regexp.c replace.c tar.c ttyio.c\
warn.c wildmat.c
object= pax.obj append.obj buffer.obj cpio.obj create.obj dbug.obj extract.obj\
fileio.obj link.obj list.obj mem.obj msdos.obj namelist.obj names.obj\
pass.obj pathname.obj port.obj regexp.obj replace.obj tar.obj ttyio.obj\
warn.obj wildmat.obj $(DIROBJ)
all: $(public)
touch all
install: $(public)
export PATH || exit 1
- if test `pwd` != $(bin); then cp $(public) $(bin); fi
cd $(bin); chmod +x $(public)
- \
if test `pwd` != $(mansrc); then \
for page in $(manpages); do \
cp $$page $(mansrc)/`basename $$page .man`.$(manext); \
done; \
fi
clean:
rm -f $(object)
rm -f $(public) a.out *.BAK *.bak core
lint:
lint $(LINTFLAGS) $(source)
pax : $(object)
$(CC) $(CFLAGS) $(LDFLAGS) -o pax $(object) $(LIBS)
tar: pax
rm -f tar
ln pax tar
cpio: pax
rm -f cpio
ln pax cpio
$(object): $(headers)