]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/open-amp.git/blob - apps/samples/remote/nucleus/rpc_demo/make
Correcting application message.
[processor-sdk/open-amp.git] / apps / samples / remote / nucleus / rpc_demo / make
2 include ../Makefile.commons
4 SAMPLE_OUT := samples/remote/nucleus/rpc_demo/rpc_demo.out
6 SAMPLE_SRC := samples/remote/nucleus/rpc_demo/rpc_demo.c samples/remote/nucleus/rpc_demo/rsc_table.c ../proxy/remote/rpmsg_retarget/rpmsg_retarget.c
7 APP_INCLUDE := -I"../proxy/remote/rpmsg_retarget"
10 SAMPLEOBJFILES := $(patsubst %.c, %.o, $(SAMPLE_SRC))
12 SAMPLE_DEPS   := $(patsubst %.c, %.d, $(SAMPLE_SRC))
14 SAMPLE_MAP := $(patsubst %.out, %.map, $(SAMPLE_OUT))
16 $(SAMPLE_OUT): $(SAMPLEOBJFILES)
18         @echo 'Building rpc demo application : $@'
20         $(LD)  -Wl,-Map=samples/remote/nucleus/rpc_demo/rpc_demo.map  -nostartfiles -Wl,--gc-sections -Wl,--wrap=malloc -Wl,--wrap=calloc -Wl,--wrap=realloc -Wl,--wrap=free -T"$(OHOME)/libs/system/$(PLAT)/nucleus/linker_remote.ld" -L"$(OHOME)/libs/system/$(PLAT)/nucleus/lib/$(CROSS)/remote_proxy" -L"$(OHOME)/libs/open_amp" -o "$(SAMPLE_OUT)" -Wl,--start-group $(SAMPLEOBJFILES) -lnucleus_remote -lopen_amp -lc -lm -lstdc++ -Wl,--end-group        
21         
22         @echo 'Copying ELF image to firmware folder'
23         $(CP) $(SAMPLE_OUT) firmware/$(PLAT)/$(OS)/rpc_demo/firmware
25     @echo 'Finished building target: $@'
26         
27 %.o:%.c 
28         @echo CC $(<:.c=.o)
29         @$(CC) $(CFLAGS) $(ARCH_CFLAGS) $(INCLUDE) $(APP_INCLUDE)  -c $< -o $@
31 clean:
32         -$(RM) $(SAMPLEOBJFILES) $(SAMPLE_DEPS) $(SAMPLE_OUT) $(SAMPLE_MAP)
33         
34 post-build:
35         -@echo ' '
37 secondary-outputs:
39 PHONY: all clean dependents
40 .SECONDARY: post-build