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