1 GROFF_LIBDIR = /usr/local/lib/groff
2 GROFF_FONTDIR = $(GROFF_LIBDIR)/font
3 GROFF_FONTPATH = .:$(GROFF_FONTDIR):/usr/local/lib/font:/usr/lib/font
6 PROGRAMS = gxditview xtotroff
7 DEPLIBS = XawClientDepLibs
8 LOCAL_LIBRARIES = XawClientLibs
9 SRCS1 = xditview.c Dvi.c draw.c font.c lex.c page.c \
10 parse.c XFontName.c DviChar.c device.c
11 OBJS1 = xditview.o Dvi.o draw.o font.o lex.o page.o \
12 parse.o XFontName.o DviChar.o device.o
13 SRCS2 = xtotroff.c XFontName.c DviChar.c
14 OBJS2 = xtotroff.o XFontName.o DviChar.o
15 INCLUDES = -I$(TOOLKITSRC) -I$(TOP)
17 DEFINES = $(SIGNAL_DEFINES) -DFONTPATH=\"$(GROFF_FONTPATH)\" # -DX_NOT_STDC_ENV
19 ComplexProgramTarget_1(gxditview,$(LOCAL_LIBRARIES),$(MATHLIB))
20 NormalProgramTarget(xtotroff,$(OBJS2),$(DEPXLIB),$(XLIB), /**/)
22 InstallAppDefaults(GXditview)
24 fonts: xtotroff DESC FontMap
26 fonts=`sed -e 's/[ ].*//' FontMap`; \
27 for dpi in $(DPIS); do \
28 echo Making devX$$dpi; \
29 test -d ../devX$$dpi || mkdir ../devX$$dpi; \
30 rm -f ../devX$$dpi/DESC; \
31 sed -e "s/res 75/res $$dpi/" DESC >../devX$$dpi/DESC; \
34 echo DEV=X$$dpi >Makefile.sub; \
35 echo DEVFILES=DESC $$fonts >>Makefile.sub; \
36 $$dir/xtotroff -g -r $$dpi -s 10 $$dir/FontMap); \
37 echo Making devX$$dpi-12; \
38 test -d ../devX$$dpi-12 || mkdir ../devX$$dpi-12; \
39 rm -f ../devX$$dpi-12/DESC; \
40 sed -e "s/res 75/res $$dpi/" -e 's/unitwidth 10/unitwidth 12/' DESC \
41 >../devX$$dpi-12/DESC; \
42 (cd ../devX$$dpi-12; \
44 echo DEV=X$$dpi-12 >Makefile.sub; \
45 echo DEVFILES=DESC $$fonts >>Makefile.sub; \
46 $$dir/xtotroff -g -r $$dpi -s 12 $$dir/FontMap); \
50 -rm -f junk tmp grot old