CC = $(CROSS_COMPILE)gcc CFLAGS += -Wall -ggdb ifndef DEBUG CFLAGS += -O2 endif LDLIBS += -lpthread -lrt OBJS = main.o fonts.o all: liveinfo liveinfo: $(OBJS) $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) $(LDLIBS) clean: $(RM) liveinfo $(OBJS) .PHONY: all clean