# Makefile for /opt/XF-2.0/src.

# Only the Minix additions are made here.

CFLAGS	= -D_MINIX $(OPT)
CCLD	= $(CC) -fnone $(CFLAGS)

X11	= /opt/XF86-3.1.1

BIN	= \
	$(X11)/bin/label \
		$(X11)/bin/font \
	$(X11)/bin/mkcookie \
	$(X11)/bin/rxterm \
	$(X11)/bin/startX \
		$(X11)/bin/startx \
	$(X11)/bin/startXserver \
	$(X11)/bin/suxcmd \
	$(X11)/bin/xrsh \

MAN	= \
	$(X11)/man/man1/rxterm.1 \
	$(X11)/man/man1/startX.1 \
	$(X11)/man/man1/xrsh.1 \
	$(X11)/man/man5/Modeline.5 \

install:	$(BIN) $(MAN) $(X11)/man/whatis

$(X11)/bin/label:	label.sh
	install -lc $? $@

$(X11)/bin/font:	$(X11)/bin/label
	install -l $? $@

$(X11)/bin/mkcookie:	mkcookie.c
	$(CCLD) -o $@ $?

$(X11)/bin/rxterm:	rxterm.sh
	install -lc $? $@

$(X11)/bin/startX:	startX.sh
	install -lc $? $@

$(X11)/bin/startx:	$(X11)/bin/startX
	install -l $? $@

$(X11)/bin/startXserver:	startXserver.c
	$(CCLD) -o $@ $?

$(X11)/bin/suxcmd:	suxcmd.sh
	install -lc $? $@

$(X11)/bin/xrsh:	xrsh.sh
	install -lc $? $@

$(X11)/man/man1/rxterm.1:	rxterm.1
	install -lc $? $@

$(X11)/man/man1/startX.1:	startX.1
	install -lc $? $@

$(X11)/man/man1/xrsh.1:	xrsh.1
	install -lc $? $@

$(X11)/man/man5/Modeline.5:	Modeline.5
	install -lc $? $@

$(X11)/man/whatis:	$(MAN)
	makewhatis $(X11)/man

clean:

uninstall:
	rm -f $(BIN) $(MAN) $(X11)/man/whatis
