#
#  Makefile for Lab Assigment 5 (15-213, Spring 2000)

#  Attention: 
#     Please uncomment and modify this file properly so that you 
#     can use this file to make your chatclient.
#


#   Don't forget to add your Andrew user-ID here!

NAME=
VERSION=1

ASSTDIR=/afs/cs.cmu.edu/academic/class/15213-s00/L5

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

CC = gcc
CFLAGS = -Wall -g
SERVER_BIN = chatserver 
SERVER_OBJS = server_util.o server_main.o


#CLIENT_BIN = chatclient receiver
#CLIENT_OBJS = client_util.o client_main.o

all: $(SERVER_BIN) $(CLIENT_BIN)

chatserver: $(SERVER_OBJS) 
	$(CC) $(CFLAGS) $(SERVER_OBJS) -o chatserver

server_util.o: server_util.c server.h defs.h
server_main.o: server_main.c defs.h server.h

#chatclient: $(CLIENT_OBJS) 
#	$(CC) $(CFLAGS) $(CLIENT_OBJS) -o chatclient 

#client_util.o: client_util.c client.h defs.h
#client_main.o: client_main.c client.h defs.h 

#receiver:client_recv.c client.h defs.h
#	$(CC) $(CFLAGS) client_recv.c -o receiver

clean:
	rm -f *.o $(SERVER_BIN) $(CLIENT_BIN) core


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

handin:
	cp chatclient.tar $(ASSTDIR)/handin/$(NAME)-chatclient-$(VERSION).tar

