# ########################################################################
#
#                  Makefile for XJoystick Caliberator
#
#                          * Edit as needed. *
#

# ########################################################################
# Flags, libflags, and libraries:

INC     = -I/usr/include
LIB     = -lX11 -lXt -lXpm -lXext
LIB_DIR = -L/usr/X11/lib
CFLAGS  = -D__USE_BSD -DLINUX -m486 -g


# ########################################################################
# Source and header files:

SRC = xjscal.c xpm.c xutils.c joystick.c timming.c
HDR = xjscal.h
OBJ = $(SRC:.c=.o)

.c.o:
	cc -c $*.c $(INC) $(CFLAGS)


# ########################################################################
# Install directories:

XBIN_DIR = /usr/X11/bin


# ########################################################################
# Build Rules:

all: xjscal

xjscal: $(OBJ)
	cc $(OBJ) -o xjscal $(LIB) $(LIB_DIR)


# ########################################################################
# Install Rules:

install:
	@echo "-----------------------------------------------------------"
	@echo "Not available yet."


# ########################################################################
# Maintainance and Misc Rules:

clean:
	rm -f a.out core xjscal *.o


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