home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-11-05 | 1.5 KB | 75 lines |
- ## This file is formatted with a tab-width of 3
-
- CSOURCES = mcvert.c hqxify.c unpack.c
- HSOURCES = mactypes.h
- SOURCES = $(CSOURCES) $(HSOURCES) Makefile
- sharSOURCES = $(SOURCES) mcvert.1
- OBJECTS = mcvert.o hqxify.o unpack.o
- ALL = mcvert mcvert.man
- CLEAN = $(OBJECTS) $(ALL)
-
- VERSION=187
-
- BIN = .
-
- ##
- ## *LAST* Defintion Always Wins ##
- ##
-
- ### Bind Time Library Selection
- # for RS/6000
- LIBS= -lbsd
- # for most implementations
- LIBS=
-
- ### Machine CFLAGS
- # for machines without <timeb.h> and ftime()
- CFLAGS_M= -DTIMEVAL
- # for machines with ulong pre-defined (eg, IBM RS/6000's AIX)
- CFLAGS_M= -DULONG
- # eg, for A/UX, SGI's Irix
- CFLAGS_M= -DTIMEVAL -DULONG
- # for many machines (eg, HP-UX, SunOS, DomainOS, ULTRIX)
- CFLAGS_M=
-
- ### Debugging/optimization CFLAGS
- # debugging
- CFLAGS_D = -g
- # optimization
- CFLAGS_D = -O
-
- ### Byteorder(3n) routines [eg, htonl()] CFLAGS
- # uncommon case (none known, actually): without byteorder support
- CFLAGS_N = -DNOBYTEORDER
- # common case: with byteorder support
- CFLAGS_N =
-
- ### All CFLAGS
- CFLAGS=$(CFLAGS_M) $(CFLAGS_D) $(CFLAGS_N) -DVERSION=$(VERSION)
-
- all: $(ALL)
-
- mcvert: $(OBJECTS)
- $(CC) $(CFLAGS) $(OBJECTS) $(LIBS) -o $(BIN)/mcvert
-
- lint: $(HSOURCES) $(CSOURCES)
- lint $(CSOURCES)
-
- $(OBJECTS): mactypes.h Makefile
-
- print: $(SOURCES)
- lpr -p -P$(PRINTER) $(SOURCES)
-
- shar : mcvert-$(VERSION).shar
- mcvert-$(VERSION).shar : $(sharSOURCES)
- shar $(sharSOURCES) > $@
-
- clean:
- rm -f $(CLEAN)
-
- man: mcvert.man
- mcvert.man: mcvert.1
- nroff -man mcvert.1 | sed 's/.//g' > $@
- mcvert.ps: mcvert.1
- groff -man mcvert.1 > $@
-