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