#
# Makefile for xfontsel using XawPlus
# Version for S.u.S.E. Linux 4.4.1 (XFree 3.2A)
# 
# Roland Krause 1997
#
LIB_PATH =	-L../../XawPlus -L/usr/X11/lib		# Libraries for X windows
INC_PATH =	-I../../XawPlus -I/usr/X11/include	# Header for X windows
LIBRARIES =	-lXawPlus -lXmu -lXext -lXt -lXpm -lX11

CC =		gcc 
DEFS =		-O2 -m486

all:		prog install
prog:		xfontsel xfontsel.1x

# --- Clean up

clean:
		rm -f *.o *.1x xfontsel

# --- Install xfontsel: This only works as superuser root

install:
		cp xfontsel /usr/X11/bin
		cp XFontSel /usr/X11/lib/X11/app-defaults
		cp xfontsel.1x /usr/man/man1
		gzip /usr/man/man1/xfontsel.1x

# --- Build xfontsel

xfontsel:	xfontsel.o
		$(CC) -o xfontsel $(LIB_PATH) xfontsel.o $(LIBRARIES)
		strip xfontsel

xfontsel.o:	xfontsel.c
		$(CC) $(DEFS) $(INC_PATH) -c xfontsel.c

# --- Build the manual

xfontsel.1x:	xfontsel.man
		nroff -man xfontsel.man >xfontsel.1x

