home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-11-05 | 1.9 KB | 53 lines |
- ###########################################################################
- ## ##
- ## Makefile for MACIFY ##
- ## ##
- ###########################################################################
-
- # Values here should be changed to whatever's appropriate for your system
-
- # Change this to the C compiler you use. Most systems will handle 'cc'
- # fine, since I didn't write this in ANSI C or anything special. On some
- # systems, GCC may provide better and smaller output, so try that instead.
- CC=cc
- # Replace this with any compile-time flags you wish to set.
- CFLAGS=-O
- # This is where the binaries (BINDIR) and man pages (MANDIR) will be installed
- # if you type 'make install'. Change this to whatever's appropriate.
- BINDIR=/usr/local
- MANDIR=/usr/man/local/man1
- # This is the program to be used to install the binaries and man pages.
- # I use 'cp' because it's simple, and some versions of 'install' (the system
- # built-in installation program) don't work right.
- INSTPRG=cp
- # This is probably irrelevant; this is the directory that the distribution
- # shar-file will be placed. This is only of use to people re-distributing
- # MACIFY, after you've nuked your original copy of the shar file.
- DISTDIR=/usr/src/dist
-
- # You should not need to change anything below this line.
-
- all: macify
-
- macify: macify.o convert.o
- $(CC) $(CFLAGS) -o macify macify.o convert.o
-
- macify.o: macify.c macify.h
- $(CC) $(CFLAGS) -c macify.c
-
- convert.o: convert.c macify.h
- $(CC) $(CFLAGS) -c convert.c
-
- install:
- $(INSTPRG) macify $(BINDIR)/macify
- $(INSTPRG) macify.1 $(MANDIR)/macify.1
-
- dist:
- shar -cv README MANIFEST BUGS TODO Makefile macify.c \
- macify.h convert.c macify.1 macify.hqx >tmp.sh
- cat distinfo tmp.sh >$(DISTDIR)/macify.sh
- rm tmp.sh
-
- clean:
- rm *.o tmp.sh
-