# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $
#
# The cpp used on this machine replaces all newlines and multiple tabs and
# spaces in a macro expansion with a single space.  Imake tries to compensate
# for this, but is not always successful.
#

CSOURCES    = mcvert.c hqxify.c unpack.c
HSOURCES    = mactypes.h
SOURCES     = $(CSOURCES) $(HSOURCES) Makefile README
sharSOURCES = $(SOURCES) mcvert.1
OBJECTS     = mcvert.o hqxify.o unpack.o
ALL         = mcvert mcvert.man
EVERYTHING  = $(ALL) shar mcvert.ps
CLEAN       = $(OBJECTS) $(ALL)
BINDIR      = /mit/sipb/bin
MANDIR      = /mit/sipb/man
MANEXT      = 1

VERSION=188

BIN = .

CFLAGS_D = -O

CFLAGS=$(CFLAGS_M) $(CFLAGS_D) $(CFLAGS_N) -DVERSION=$(VERSION)
LFLAGS=$(CFLAGS_M) $(CFLAGS_N) -DVERSION=$(VERSION)

all: $(ALL)
everything: $(EVERYTHING)

mcvert: $(OBJECTS)
	$(CC) $(CFLAGS) $(OBJECTS) $(LIBS) -o $(BIN)/mcvert

lint: $(HSOURCES) $(CSOURCES)
	lint $(LFLAGS) $(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 > $@

depend:
	makedepend $(CFLAGS) -- $(CSOURCES)

Makefile: Imakefile
	imake -I. -TImakefile -f /dev/null

install: mcvert
	install -c -s mcvert $(DESTDIR)$(BINDIR)/mcvert
	install -c -m 0444 mcvert.1 $(DESTDIR)$(MANDIR)/man$(MANEXT)/mcvert.$(MANEXT)

# DO NOT DELETE THIS LINE -- make depend depends on it.

mcvert.o: mactypes.h /usr/include/stdio.h /usr/include/sys/types.h
mcvert.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
mcvert.o: /usr/include/sys/dir.h /usr/include/sys/stat.h
mcvert.o: /usr/include/sys/timeb.h /usr/include/string.h
mcvert.o: /usr/include/netinet/in.h
hqxify.o: mactypes.h /usr/include/stdio.h /usr/include/sys/types.h
hqxify.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
hqxify.o: /usr/include/sys/dir.h /usr/include/sys/stat.h
hqxify.o: /usr/include/sys/timeb.h /usr/include/string.h
hqxify.o: /usr/include/netinet/in.h
unpack.o: mactypes.h /usr/include/stdio.h /usr/include/sys/types.h
unpack.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
unpack.o: /usr/include/sys/dir.h /usr/include/sys/stat.h
unpack.o: /usr/include/sys/timeb.h /usr/include/string.h
unpack.o: /usr/include/netinet/in.h
