blob: ca07248fe546201724ec4ec221d98d3c41f1c19f [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001EXEC = zlogtrace
2
3CFLAGS += -I./localfs_save/
4CFLAGS += -I./localfs_save/config
5CFLAGS += -I./netport_rserial
6CFLAGS += -g
7
8SRCS = $(wildcard *.c ./localfs_save/*.c ./netcom_rserial/*.c )
9OBJS = $(patsubst %.c,%.o, $(SRCS))
10LDLIBS += -lpthread
11LDLIBS += -lm
12
13all: $(EXEC)
14
15$(EXEC): $(OBJS)
16 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) $(LDLIBS_$@) -Wl,--end-group
17 @cp $@ $@.elf
18
19clean:
20 -rm -f $(EXEC) $(OBJS) *.elf *.gdb *.o