# Under Solaris, you need to 
#    CFLAGS += -xO2 -Xc
#    LDLIBS += -lnsl -lsocket
# Some versions of Linux may need
#    CFLAGS += -D_GNU_SOURCE
# To cross-compile
#    CC = arm-linux-gcc

CC=${CROSS}gcc
CFLAGS += -Wall -O

all: ntpclient

#test: ntpclient
#	./ntpclient -d -r <test.dat

ntpclient: ntpclient.o phaselock.o

install:
	install --mode=755 ntpclient	${MYPATH}/rootfs/usr/bin

clean:
	rm -f ntpclient *.o
