Commit | Line | Data |
---|---|---|
063ae4be | 1 | CC = $(CROSS_COMPILE)gcc |
2 | CFLAGS += -Wall -ggdb | |
3 | ifndef DEBUG | |
4 | CFLAGS += -O2 | |
5 | endif | |
6 | LDLIBS += -lpthread -lrt | |
7 | ||
8 | OBJS = main.o fonts.o | |
9 | ||
b7d8fc1a | 10 | all: liveinfo custom |
063ae4be | 11 | |
12 | liveinfo: $(OBJS) | |
13 | $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) $(LDLIBS) | |
14 | ||
b7d8fc1a | 15 | custom: custom.c |
16 | $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) | |
17 | ||
063ae4be | 18 | clean: |
19 | $(RM) liveinfo $(OBJS) | |
20 | ||
21 | .PHONY: all clean |