summaryrefslogtreecommitdiff
path: root/include/makeinclude/Makefile.rtems
blob: 39a44334129045947665ccfa214c6ac2bb09b272 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $id: Makefile $

#export RTEMS_MAKEFILE_PATH=/opt/rtems/sparc-rtems/erc32/
include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
include $(RTEMS_CUSTOM)
include $(PROJECT_ROOT)/make/leaf.cfg


print_cxx:
	@echo "$(CXX)"

print_cc:
	@echo "$(CC_FOR_TARGET)"

print_cflags:
	@echo "$(GCCSPECS) $(CPU_CFLAGS)"

print_prefix:
	@echo $(prefix)

print_target:
	@echo $(NM_FOR_TARGET:%nm=%)

is_big_endian:
	t=`echo "#include <rtems.h>" | \
	   $(CC_FOR_TARGET) $(GCCSPECS) $(CPU_CFLAGS) -E -dM - | \
	   grep CPU_BIG_ENDIAN | cut -d' ' -f3` ; echo $$t

rtems_init.o: rtems_init.c
	$(CC_FOR_TARGET) $(GCCSPECS) $(CPU_CFLAGS) -c rtems_init.c