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