home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-10-16 | 1.9 KB | 65 lines |
- CC=ccc
- SHELL=/bin/sh
- ##
- ## I wrote this Makefile, based on comments in the source. -rich $alz.
- ## Define INDEX to use index() in place of strchr() (v7, BSD).
- #1 = -DINDEX
- 1 = -UINDEX
- ## Define MEMCPY when an efficient memcpy() exists (SysV).
- 2 = -DMEMCPY
- #2 = -UMEMCPY
- ## Define MKDIR when a mkdir() system call is present (4.2BSD, SysVr3).
- #3 = -DMKDIR
- 3 = -UMKDIR
- ## Define NOVOID if your compiler doesn't like void casts.
- #4 = -DNOVOID
- 4 = -UNOVOID
- ## Define SYSTIME to use <sys/time.h> rather than <time.h> (4.2BSD).
- #5 = -DSYSTIME
- 5 = -USYSTIME
- ## Define VOIDFIX to allow pointers to functions returning void (non-PCC).
- #6 = -DVOIDFIX
- 6 = -UVOIDFIX
- ## Define CTC3B2 to support AT&T 3B2 streaming cartridge tape.
- #7 = -DCTC3B2
- 7 = -UCTC3B2
- ## Define HAVEFCNTL if you have <fcntl.h>
- 8 = -DHAVEFCNTL
- #8 = -UHAVEFCNTL
- ## Define USESHMEM if you have shared memory
- 9 = -DUSESHMEM
- #9 = -UUSESHMEM
- ## Define MYTEMPNAM if you don't have tempnam()
- #a = -DMYTEMPNAM
- a = -UMYTEMPNAM
- ## Define UNIXPC if you are on a 3b1, 7300, etc.
- ## (problem is you can't write to a floppy from shared memory)
- b = -DUNIXPC
- #b = -UUNIXPC
- ## Define HAVEMEMCMP if you have memcmp otherwise assumes bcmp
- c = -DHAVEMEMCMP
- #c = -UHAVEMEMCMP
- ## Define DEFFMTCMD to being how to format the media you use the most
- ## This is the DEFault FoRMat CoManD.
- #d = -DDEFFMTCMD='"/bin/false"'
- #d = -DDEFFMTCMD='"format.sh"'
- d = -DDEFFMTCMD=\""iv -i /dev/rfp020 /usr/lib/iv/FDnl"\"
- ## Define LONGZFILE if you want .Z to be tagged on the end of a 14 char
- ## file name (or longer for BSD) in the archive when the file is compressed
- e = -DLONGZFILE
- #e = -ULONGZFILE
-
- CFLAGS = -O $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e
- LDFLAGS =
-
- all: afio afio.1
-
- afio: afio.c
- $(CC) $(CFLAGS) -o afio afio.c
-
- shar: README Makefile afio.1 afio.c
- shar README Makefile afio.1 afio.c > afio.shar
-
- install: all
- @echo copy afio and afio.1 into the appropriate directories.
-