]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/open-amp.git/blob - apps/tests/remote/baremetal/echo_test/make
Moving OpenAMP sources to GIT repo.
[processor-sdk/open-amp.git] / apps / tests / remote / baremetal / echo_test / make
2 include ../Makefile.commons
4 SAMPLE_OUT := tests/remote/baremetal/echo_test/echo_test.out
5 SAMPLE_SRC := tests/remote/baremetal/echo_test/echo_test.c tests/remote/baremetal/echo_test/rsc_table.c
8 SAMPLEOBJFILES := $(patsubst %.c, %.o, $(SAMPLE_SRC))
10 SAMPLE_DEPS   := $(patsubst %.c, %.d, $(SAMPLE_SRC))
12 SAMPLE_MAP := $(patsubst %.out, %.map, $(SAMPLE_OUT))
14 $(SAMPLE_OUT): $(SAMPLEOBJFILES) 
16         @echo 'Building echo test for baremetal : $@'
18         $(LD)  -Wl,-Map=tests/remote/baremetal/echo_test/echo_test.map -Wl,--gc-sections -T"$(OHOME)/libs/system/$(PLAT)/baremetal/linker_remote.ld" -L"$(OHOME)/libs/open_amp" -L"$(OHOME)/libs/system/$(PLAT)/baremetal" -o "$(SAMPLE_OUT)" -Wl,--start-group $(SAMPLEOBJFILES) -lopen_amp -lbaremetal_remote -lc -lm -lstdc++ -lcs3 -lcs3arm -lcs3unhosted -Wl,--end-group   
19         
20         $(CP) $(SAMPLE_OUT) firmware/$(PLAT)/$(OS)/echo_test/firmware
21         
22         @echo 'Finished building target: $@'
23         
24 %.o:%.c
25         @echo CC $(<:.c=.o)
26         @$(CC) $(CFLAGS) $(ARCH_CFLAGS) $(INCLUDE) -c $< -o $@
28 clean:
29         -$(RM) $(SAMPLEOBJFILES) $(SAMPLE_DEPS) $(SAMPLE_OUT) $(SAMPLE_MAP)
30         
31 post-build:
32         -@echo ' '
34 secondary-outputs:
36 PHONY: all clean dependents
37 .SECONDARY: post-build