# # Makefile for dvi previewer. # # $Header: Makefile,v 1.2 87/05/14 14:05:34 eichin Locked $ # $Source: /u1/uus/vs2/xdvi/RCS/Makefile,v $ # DEFAULT_FONT_PATH=/usr/local/tex/fonts DEFAULT_FONT_SIZES=300:328.6:360:432:518.4:622:746.4 DEFINES=-DMSBITFIRST \ -DBMSHORT -DBUTTONS FONTDEFINES=-DDEFAULT_FONT_PATH=\"$(DEFAULT_FONT_PATH)\" \ -DDEFAULT_FONT_SIZES=\"$(DEFAULT_FONT_SIZES)\" FONTFORMATS_C=gf.c pk.c pxl.c FONTFORMATS_O=gf.o pk.o pxl.o LIBDIR=/usr/custom/x11/lib #LIBDIR=/tuna_a/x11r4/lib INCDIR=/usr/include #INCDIR=/tuna_a/x11r4/include XMULIB= #XMULIB=-lXmu EXTENSIONLIB=-lXext DESTDIR=/usr/local/x11 BINDIR=$(DESTDIR)/bin MANDIR=$(DESTDIR)/man INCLUDES=-I$(INCDIR) CFLAGS=-O $(INCLUDES) $(DEFINES) LIBS=-L$(LIBDIR) -lXaw $(XMULIB) -lXt $(EXTENSIONLIB) -lX11 -lm SRCS=xdvi.c dvi_init.c dvi_draw.c $(FONTFORMATS_C) pxl_open.c tpic.c OBJS=xdvi.o dvi_init.o dvi_draw.o $(FONTFORMATS_O) pxl_open.o tpic.o CC=/tuna_a/gnu/bin/gcc RM=rm -f .c.o: $(CC) -c $(CFLAGS) $*.c xdvi: $(OBJS) $(CC) -o xdvi $(OBJS) $(LIBS) chmod go+rx xdvi xdvi.o: xdvi.h patchlevel.h xdvi.icon dvi_init.o:xdvi.h dvi.h dvi_draw.o:xdvi.h dvi.h tpic.o: xdvi.h gf.o: xdvi.h pk.o: xdvi.h pxl.o: xdvi.h pxl_open.o: $(CC) -c $(CFLAGS) $(FONTDEFINES) pxl_open.c xdvi.man: xdvi_man.sed chmod u+x mksedscript mksedscript $(DEFAULT_FONT_PATH) $(DEFAULT_FONT_SIZES) $(DEFINES) \ > sedscript sed -f sedscript < xdvi_man.sed > xdvi.man install: xdvi xdvi.man install -c -s -m 755 xdvi $(BINDIR) install -c -m 644 xdvi.man $(MANDIR)/man1/xdvi.1 clean: $(RM) *.o *.BAK *.CKP sedscript xdvi.man xdvi a.out core errs *~ $(RM) xdvi10.man.s lint: lint $(INCLUDES) $(DEFINES) $(FONTDEFINES) $(SRCS)