| #******************************************************************************* |
| #******************************************************************************* |
| include $(COMMON_MK) |
| |
| ##############USER COMIZE BEGIN################ |
| EXEC1 = msgsnd |
| EXEC2 = msgrcv |
| |
| OBJS1 = msgsnd.o |
| OBJS2 = msgrcv.o |
| |
| CFLAGS += -I. |
| CFLAGS += -I$(APP_DIR)/include |
| CFLAGS += -I./../inc |
| |
| CFLAGS += -g -Werror=implicit-function-declaration |
| |
| |
| LDLIBS += |
| |
| ##############USER COMIZE END################## |
| |
| #******************************************************************************* |
| # targets |
| #******************************************************************************* |
| all: $(EXEC1) $(EXEC2) |
| |
| $(EXEC1): $(OBJS1) |
| $(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) $(LDLIBS_$@) -Wl,--end-group |
| @cp $@ $@.elf |
| |
| $(EXEC2): $(OBJS2) |
| $(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) $(LDLIBS_$@) -Wl,--end-group |
| @cp $@ $@.elf |
| |
| romfs: |
| $(ROMFSINST) $(EXEC1) /bin/$(EXEC1) |
| $(ROMFSINST) $(EXEC2) /bin/$(EXEC2) |
| |
| clean: |
| -@rm -f $(EXEC1) $(EXEC2) *.elf *.gdb *.o |
| |