# === Makefile ================================================================
# Copyright (c) 1994 Chris Provenzano, proven@mit.edu
#
#	Description: This file is for creating the games server
#
#	1.00 94/02/10 proven
#		-Initial cut
#

INSTALL_PATH = $${HOME}
      BINDIR = $(INSTALL_PATH)/bin
      LIBDIR = $(INSTALL_PATH)/lib
      MANDIR = $(INSTALL_PATH)/man

        MAKE = make
          AR = gar
          AS = gas
          CC = gcc
      CFLAGS = -O $(CDEBUGFLAGS) -I../../include -I.
 CDEBUGFLAGS = -g -DDEBUG -DCLIENT_DEBUG # -g, -O, -DDEBUG -DCLIENT_DEBUG
          LD = gld

        CSRC = finger.c net.c

     HEADERS = 

        OBJS = finger.o net.o 

		LIBS = ../../lib/@sys/libpthread.a

      BINARY = finger

################################################################################
#
# Here starts the nitty grity part of the Makefile.

all: $(BINARY) 

clean: 
	rm -f $(OBJS) a.out core maketmp makeout

depend:
	sed '/\#\#\# Dependencies/q' < Makefile > maketmp
	(for i in $(CSRC);do $(CPP) -M $$i;done) >> maketmp
	cp maketmp Makefile

install: all 
	install $(BINARY) $(BINDIR)

realclean: clean
	rm -f $(BINARY)

.c.o:
	$(CC) $(CFLAGS) -c $<

$(BINARY): $(OBJS) 
	$(CC) -static -o $@ $(OBJS) $(LIBS)

################################################################################
### Do not remove the following line. It is for depend #########################
### Dependencies:
