
# Manually set PWD to *this* directory if you are not using gnu make
PWD := $(shell pwd)

# ------ source locations

# source include directory
SRCIDIR= $(PWD)

# ------ installation destinations

ServerDIR = $(PWD)
ClientDIR = $(PWD)

# ------ compiler names

# which make?
MAKE=gmake

# GNU C++ compiler name
GXX = g++

# GNU CC compiler name (needed for some .c files)
CC = gcc

#use this only if you use GNU as (gas) or other assemblers that
#can read from pipes.
PIPE_AS= -pipe
#PIPE_AS=

GXX_FLAGS= -O -g $(PIPE_AS)
GCC_FLAGS= -O -g $(PIPE_AS)

mkdepIncludes= -I/mit/gnu/lib/g++-include -I/mit/gnu/lib/g++-include/sys

#------------------

sources= phone.cc socket.cc

objects= phone.o socket.o

.SUFFIXES: .cc

.cc.o:
	g++ -c $(GXX_FLAGS) $*.cc

all: client

phone: $(objects) $(libgxx)
	g++ -o test $(GXX_FLAGS) $(objects)

clean:
	rm -f test *.o test

depend:
	mkdep ${GXX_FLAGS} $(mkdepIncludes) ${sources}

# should build + include dependencies...

# DO NOT DELETE THIS LINE -- mkdep uses it.

test.o: test.cc /mit/gnu/lib/g++-include/stdio.h
