blob: 20fbee9261f8583adfbeec3e11c86f405861ac74 [file] [log] [blame]
lh758261d2023-07-13 05:52:04 -07001#*******************************************************************************
2#*******************************************************************************
3include $(COMMON_MK)
4
5##############USER COMIZE BEGIN################
6EXEC1 = msgsnd
7EXEC2 = msgrcv
8
9OBJS1 = msgsnd.o
10OBJS2 = msgrcv.o
11
12CFLAGS += -I.
13CFLAGS += -I$(APP_DIR)/include
14CFLAGS += -I./../inc
15
16CFLAGS += -g -Werror=implicit-function-declaration
17
18
19LDLIBS +=
20
21##############USER COMIZE END##################
22
23#*******************************************************************************
24# targets
25#*******************************************************************************
26all: $(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
36romfs:
37 $(ROMFSINST) $(EXEC1) /bin/$(EXEC1)
38 $(ROMFSINST) $(EXEC2) /bin/$(EXEC2)
39
40clean:
41 -@rm -f $(EXEC1) $(EXEC2) *.elf *.gdb *.o
42