# throttled Makefile
# (C) 2006 - quest and lws

# Normal Compilation
# CPPFLAGS = -O3
# Universal Binary for OS X
CPPFLAGS = -O3 -arch ppc -arch ppc64 -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
CPP = c++

SRCS = throttled.cpp
ifeq ($(shell uname -s),FreeBSD)
LIBS = -pthread
else
LIBS = -lpthread
endif

APPNAME = throttled

throttled: ${SRCS}
	${CPP} -o ${APPNAME} ${CPPFLAGS} ${SRCS} ${LIBS}

clean:
	cd ..; rm ${APPNAME}
