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