CC      	= /opt/hardhat/devkit/ppc/8xx/bin/ppc_8xx-gcc
CFLAGS      = -Wall -Os -fomit-frame-pointer -I$(PROJ)/tslinux/linux/include -DCYCLADES -D_GNU_SOURCE
LDFLAGS     = -s
AS			= /opt/hardhat/devkit/ppc/8xx/bin/ppc_8xx-as
LD			= /opt/hardhat/devkit/ppc/8xx/bin/ppc_8xx-ld
AR			= /opt/hardhat/devkit/ppc/8xx/bin/ppc_8xx-ar
NM			= /opt/hardhat/devkit/ppc/8xx/bin/ppc_8xx-nm
STRIP		= /opt/hardhat/devkit/ppc/8xx/bin/ppc_8xx-strip --remove-section=.note --remove-section=.comment
OBJCOPY		= /opt/hardhat/devkit/ppc/8xx/bin/ppc_8xx-objcopy
OBJDUMP		= /opt/hardhat/devkit/ppc/8xx/bin/ppc_8xx-objdump
RANLIB		= /opt/hardhat/devkit/ppc/8xx/bin/ppc_8xx-ranlib

CPP			= $CC -E
MAKE		= make

INSTALL=/usr/bin/install -c
PREFIX=$(TARGET_DIR)

all: ntpclient install

install:
	 ${INSTALL} -m 755 ntpclient ${PREFIX}/bin  
	 $(STRIP) ${PREFIX}/bin/ntpclient

ntpclient: ntpclient.o phaselock.o

clean:
	rm -f ntpclient *.o
