# ########################################################################
#
#                  Makefile for XShipWars Client
#
#                        * Edit as needed *
#

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

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


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

SRC = db.c devices.c draw.c history.c images.c inhandler.c keychart.c \
      lexec.c loadstatus.c match.c math.c messagewin.c net.c \
      prochandle.c rcfile.c strings.c timming.c update.c weapons.c \
      xpm.c xsw.c xutils.c
HDR =
OBJ = $(SRC:.c=.o)

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


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

XBIN_DIR = /usr/X11/bin


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

all: xsw

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


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

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


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

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


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