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