# Makefile for bsc # By Neil Parker # Dec 18, 1992 # # Depending on your system, you may need to add some of the following options # to the CFLAGS definition below: # # -DSTRING if your system uses and strrchr() instead of # and rindex() # -DMEMCPY if you have memcpy()/memset() instead of bcopy()/bzero() # -DMEMORY_H if you need to #include to get memcpy()/memset() # (this option will be ignored unless you also specified # -DMEMCPY) # -DFOPEN_NEEDS_B if you need to use fopen(...,"rb") to open a binary file # (probably totally unnecessary for UNIX, but may come in # handy for porting to other systems) # # The following seems to be appropriate for most BSD-like systems: CFLAGS= -O # A System V machine may require something like this: #CFLAGS= -O -DSTRING -DMEMCPY -DMEMORY_H # # If you need any special libraries, put them here # LIBS= # # You shouldn't need to change these: # OBJS= bsc.o SRCS= bsc.c ALLFILES= README.1ST docs.unix bsc.1 binscii.5 docs.vms bsc.c pftypes.h \ crc.h Makefile vmsmake.com vmsopt.opt all: bsc bsc: $(OBJS) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) bsc.o: crc.h pftypes.h clean: rm $(OBJS) cleaner: rm $(OBJS) bsc catman: nroff -man bsc.1 > bsc.1.txt nroff -man binscii.5 > binscii.5.txt bsc.shar: $(ALLFILES) shar bsc.shar $(ALLFILES) bsc.aaf: $(ALLFILES) ../aaf bsc.aaf $(ALLFILES)