AXIS_USABLE_LIBS = UCLIBC GLIBC
include $(AXIS_TOP_DIR)/tools/build/Rules.axis

PROGS = ntpclient
INSTDIR = $(prefix)/bin
INSTMODE = 0755
INSTOWNER = root
INSTGROUP = root

CFLAGS += -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow \
	-Waggregate-return -Wnested-externs -Winline -Wwrite-strings \
	-Wstrict-prototypes

CFLAGS += -O

all: $(PROGS)

ntpclient: ntpclient.o phaselock.o

install: $(PROGS)
	$(INSTALL) -d $(INSTDIR)
	$(INSTALL) -m $(INSTMODE) -o $(INSTOWNER) -g $(INSTGROUP) $(PROGS) $(INSTDIR)

clean:
	rm -f ntpclient *.o
