xf.li | ce87319 | 2023-11-08 17:10:35 -0800 | [diff] [blame^] | 1 | #******************************************************************************* |
| 2 | #******************************************************************************* |
| 3 | include $(COMMON_MK) |
| 4 | |
| 5 | ##############USER COMIZE BEGIN################ |
| 6 | EXEC1 = syslog_monitor |
| 7 | |
| 8 | OBJS1 = syslog_monitor.o |
| 9 | |
| 10 | CFLAGS += -I. |
| 11 | CFLAGS += -I$(APP_DIR)/include |
| 12 | CFLAGS += -I./../inc |
| 13 | |
| 14 | CFLAGS += -g -Werror=implicit-function-declaration |
| 15 | |
| 16 | |
| 17 | LDLIBS += |
| 18 | |
| 19 | ##############USER COMIZE END################## |
| 20 | |
| 21 | #******************************************************************************* |
| 22 | # targets |
| 23 | #******************************************************************************* |
| 24 | all: $(EXEC1) |
| 25 | |
| 26 | $(EXEC1): $(OBJS1) |
| 27 | $(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) $(LDLIBS_$@) -Wl,--end-group |
| 28 | @cp $@ $@.elf |
| 29 | |
| 30 | romfs: |
| 31 | $(ROMFSINST) $(EXEC1) /bin/$(EXEC1) |
| 32 | |
| 33 | clean: |
| 34 | -@rm -f $(EXEC1) *.elf *.gdb *.o |
| 35 | |