# Makefile for alive

# What compiler to use? Better make sure it understands ANSI C
CC = gcc

# Flags to pass to the compiler
CFLAGS = -O2
LDFLAGS = 

# Any Libraries we need to worry about?
LIBS = 

# How long to wait for a host to respond before time out in seconds.
WAIT_TIME = 1

### One should not need to mess with anything below here.

all: alive

alive: alive.c
	(cd ClientLib; make); $(CC) $(CFLAGS) $(LDFLAGS) -DWAIT_TIME=$(WAIT_TIME) -o alive alive.c -L./ClientLib -lclient $(LIBS)

clean:
	(cd ClientLib; make clean); rm -rf alive
