home *** CD-ROM | disk | FTP | other *** search
Makefile | 1990-11-12 | 2.0 KB | 77 lines |
- # MAKEFILE FOR XENIX systems on 80x86 machines
- # @(#) 2.0 JPRadley 26 May 90
- # other platforms will have to modify CFLAGS.
- # add -DALLOC if your system uses alloc() instead of malloc()
- # add -DNOSIGNAL for faster processing on a unix pc
- # add -DMAXSEG_64K if your compiler does NOT predefine M_I286 and you need
- # to allow for segmented addressing
- SHELL=/bin/sh
-
- #for 286 machines
- #CFLAGS=-c -DXENIX -DNDEBUG -Ml2e
- #OFLAGS=-Ml
-
- #for 386 machines
- CFLAGS=-O -DXENIX -DNDEBUG
- OFLAGS=-s
-
- LIB=
- OBJ=compress.o compusi.o compapi.o
- HFILES=compress.h compress.fns
-
- # where things go
- BINDIR=/pub/bin
- SEC=L
- MANDIR=/usr/man/man.$(SEC)
- MAN=compress.$(SEC) zcmp.$(SEC) btoa.$(SEC) compressdir.$(SEC) zmore.$(SEC)
-
- all: compress btoa atob
-
- install: all
- chmod 755 compress btoa atob compressdir uncompressdir tarmail untarmail
- chgrp bin compress btoa atob compressdir uncompressdir tarmail untarmail
- chown bin compress btoa atob compressdir uncompressdir tarmail untarmail
- copy -mo compress btoa atob compressdir \
- uncompressdir tarmail untarmail $(BINDIR)
- -ln $(BINDIR)/compress $(BINDIR)/uncompress
- -ln $(BINDIR)/compress $(BINDIR)/zcat
-
- uninstall:
- cd $(BINDIR)
- -rm compress uncompress zcat atob btoa compressdir \
- uncompressdir tarmail untarmail
-
- man: $(MAN)
-
- clean:
- rm -f *.o compress atob btoa
-
- shark:
- shark README3.0 README4.0 README4.3 compress.h \
- >Comp4.3d.SHK1
- shark compapi.c compress.man compress.fns compressdir compressdir.1 \
- compress.1 compusi.dos uncompressdir untarmail zcmp.1 os2.lnk \
- atob.c btoa.1 btoa.c >Comp4.3d.SHK2
- shark compress.c compusi.uni rev.hst dos.lnk makefile.isc \
- makefile.mnx makefile.mrw makefile.msc makefile.os2 \
- makefile.tan makefile.tc makefile.uni makefile.xen tarmail \
- zcmp zdiff zmore zmore.1 >Comp4.3d.SHK3
- l *SHK*
-
- compress: $(OBJ)
- cc -o compress $(CFLAGS) $(OFLAGS) $(OBJ) $(LIB)
-
- atob: atob.c
- $(CC) -o atob $(CFLAGS) $(OFLAGS) atob.c $(LIB)
-
- btoa: btoa.c
- $(CC) -o btoa $(CFLAGS) $(OFLAGS) btoa.c $(LIB)
-
-
- $(OBJ): $(HFILES)
-
- .1.$(SEC):
- cp $*.1 $(MANDIR)/$*.$(SEC)
-
- .SUFFIXES: .1 .$(SEC)
-