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