summaryrefslogtreecommitdiffstats
path: root/schedsim/shell/schedsim_priority/Makefile.am
blob: 6f8806cffc656bc0806f87bbcd72edca1f075638 (plain) (blame)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
bin_PROGRAMS = schedsim_priority
schedsim_priority_SOURCES = config.c
schedsim_priority_SOURCES += $(srcdir)/../shared/add_commands_stub.c

cpukitdir=@rtems_srcdir@/cpukit
schedsim_priority_CPPFLAGS  = -I$(top_builddir)/score/include
schedsim_priority_CPPFLAGS += -I$(srcdir)/sched_cpu
schedsim_priority_CPPFLAGS += -I$(srcdir)/../../rtems
schedsim_priority_CPPFLAGS += -I$(cpukitdir)/include
schedsim_priority_CPPFLAGS += -I$(cpukitdir)/score/include
schedsim_priority_CPPFLAGS += -I$(cpukitdir)/score/inline
schedsim_priority_CPPFLAGS += -I$(cpukitdir)/rtems/include
schedsim_priority_CPPFLAGS += -I$(cpukitdir)/rtems/inline
schedsim_priority_CPPFLAGS += -I$(cpukitdir)/sapi/include
schedsim_priority_CPPFLAGS += -I$(cpukitdir)/sapi/inline
schedsim_priority_CPPFLAGS += -I$(cpukitdir)/libcsupport/include
schedsim_priority_CPPFLAGS += -I$(cpukitdir)/libmisc/stringto
schedsim_priority_CPPFLAGS += -I$(srcdir)/../../rtems/sched_cpu
schedsim_priority_CPPFLAGS += -I$(srcdir)/../shared/include
schedsim_priority_CPPFLAGS += -I$(srcdir)/../shared
if HAS_PTHREADS
schedsim_priority_CPPFLAGS += -I$(cpukitdir)/posix/include
schedsim_priority_CPPFLAGS += -I$(cpukitdir)/posix/inline
endif

## Ensure all linker provided symbols are available
schedsim_priority_LDFLAGS = 
schedsim_priority_LDFLAGS += -Wl,--defsym=_TLS_Data_begin=0
schedsim_priority_LDFLAGS += -Wl,--defsym=_TLS_BSS_end=0
schedsim_priority_LDFLAGS += -Wl,--defsym=_TLS_Alignment=4

## Wrap _Thread_Dispatch so we can see context switches
schedsim_priority_LDFLAGS += -Wl,--wrap=_Thread_Dispatch

## Link in all support libraries
## schedsim_priorityLDADD +=-Wl,--start-group
schedsim_priority_LDADD = ../shared/libschedsim.a
schedsim_priority_LDADD += ../../rtems/librtems.a
schedsim_priority_LDADD += ../shared/libschedsim.a
## schedsim_priority_LDADD +=-Wl,--end-group

check-local:
	@echo Running tests from Uniprocessor Deterministic Priority
	$(srcdir)/../run_scenarios \
	    -s $(builddir)/schedsim_priority \
	    -S $(srcdir) \
	    -A

include $(top_srcdir)/../automake/host.am