CFLAGS = -O2 -fomit-frame-pointer -Wall ALL_CFLAGS = $(CFLAGS) -DGNU_SOURCE=1 -D_LARGE_FILE_SOURCE=1 \ -D_FILE_OFFSET_BITS=64 \ -DPACKAGE_VERSION=\"0.0\" LDFLAGS = PHONY += all all: ntp-time CROSS_COMPILE ?= armv4tl-softfloat-linux-gnueabi- CC = $(CROSS_COMPILE)gcc %.o: %.c $(CC) $(ALL_CFLAGS) -c -o $@ $< ntp-time: ntp-time.o $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $^ PHONY += clean clean: rm -f ntp-time *.o PHONY += tags tags: *.[ch] ctags $^ .PHONY: $(PHONY)