# Pick a compiler
#
# Gnu compiler
#CC = gcc
# Standard compiler
CC = cc

# Cflags
#
# Debugging
#CFLAGS = -g

# Include directories
#
#INCLUDE = -I/usr/include/X11R6
INCLUDE = -I/usr/X11R6/include

# Linker stuff
#
#LDFLAGS = -L/usr/lib/X11R6
LDFLAGS = -L/usr/X11R6/lib
LDLIBS =  -lX11

######################################################################

all:	xstroke xstroke.1

xstroke: xstroke.c xstroke.h
	$(CC) $(CFLAGS) $(INCLUDE) xstroke.c $(LDFLAGS) $(LDLIBS) -o xstroke

# Well..  it works :)
xstroke.1: xstroke.man
	rm -f xstroke.1
	cat xstroke.man | bold xstroke\(1\) | bold xstroke | bold NAME | bold SYNOPSIS | bold DESCRIPTION | bold FORMAT | bold STRINGS | bold OPTIONS | bold CAVEATS | bold EXAMPLES | bold WARNINGS | bold BUGS | bold THANKS | bold COPYRIGHT | bold AUTHOR | bold SEE | bold ALSO > xstroke.1

