# ########################################################################
#
#                   Makefile for ShipWars Server
#
#                        * Edit as needed *
#

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

INC     = -I/usr/include
LIB     = -lm
LIB_DIR = -L/usr/X11/lib
CFLAGS  = -D__USE_BSD -DLINUX -m486 -g


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

SRC = db.c log.c exec.c execset.c match.c math.c net.c prochandle.c \
      rcfile.c strings.c swserv.c timming.c update.c weapons.c
HDR =
OBJ = $(SRC:.c=.o)

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


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

XBIN_DIR = /usr/X11/bin


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

all: swserv

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


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

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


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

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


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