summaryrefslogtreecommitdiff
path: root/schedsim/schedsim_priority/Makefile
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-06-28 14:46:00 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-06-28 14:46:00 +0000
commit91e518991d18d0950eeaa199062ece9fa63ecc87 (patch)
tree84114f6a257c2fb291cf9f1422b71eba699006b4 /schedsim/schedsim_priority/Makefile
parente082954f5a615718a9fd185cd795f87bceaa9f6d (diff)
2011-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>
* schedsim_priority/.cvsignore, schedsim_priority/Makefile: Update a bit.
Diffstat (limited to '')
-rw-r--r--schedsim/schedsim_priority/Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/schedsim/schedsim_priority/Makefile b/schedsim/schedsim_priority/Makefile
index 61ff306..2ae830e 100644
--- a/schedsim/schedsim_priority/Makefile
+++ b/schedsim/schedsim_priority/Makefile
@@ -2,16 +2,23 @@
# $Id$
#
-PREFIX=/home/joel/rtems-4.11-work/bsp-install/
+# Change this path to match your installation
+PREFIX=/tmp/schedsim
OBJS = config.o printheir_executing.o schedsim.o wrap_thread_dispatch.o
CPPFLAGS = -I${PREFIX}/include/schedsim
LDFLAGS = -L${PREFIX}/lib
LDFLAGS += -Wl,--wrap=_Thread_Dispatch
+SCHEDSIM=schedsim_priority
-all: schedsim
+all: stamp-test_prefix $(SCHEDSIM)
-schedsim: $(OBJS)
- g++ -o schedsim $(OBJS) $(LDFLAGS) -lschedsim -lrtems
+stamp-test_prefix:
+ test -d ${PREFIX}
+ test -f ${PREFIX}/include/schedsim/rtems_sched.h
+ touch stamp-test_prefix
+
+$(SCHEDSIM): $(OBJS)
+ g++ -o $(SCHEDSIM) $(OBJS) $(LDFLAGS) -lschedsim -lrtems
clean:
- rm -f *.o schedsim
+ rm -f *.o $(SCHEDSIM) stamp-test_prefix