summaryrefslogtreecommitdiff
path: root/hieronymus
diff options
context:
space:
mode:
authorneal <neal>2008-06-29 20:19:43 +0000
committerneal <neal>2008-06-29 20:19:43 +0000
commit47b15e1aeb8a426f1b9ea29035ff93ecf8aa3131 (patch)
tree8644c6e6c5dd716445997cde35f6dd8e81865f5a /hieronymus
parenta43a424d8301fd58566a6087e3ae715cfc4f965d (diff)
viengoos/
2008-06-29 Neal H. Walfield <neal@gnu.org> * Makefile.am (all-local): New target. (viengoos.striped): Likewise. hieronymus/ 2008-06-29 Neal H. Walfield <neal@gnu.org> * Makefile.am (all-local): New target. (hieronymus.striped): Likewise. ($(addsuffix .S, $(files))): Set BINARY to the binary's name. ($(files)): New target. ($(addsuffix .o, $(files))): Likewise.
Diffstat (limited to 'hieronymus')
-rw-r--r--hieronymus/ChangeLog8
-rw-r--r--hieronymus/Makefile.am14
2 files changed, 19 insertions, 3 deletions
diff --git a/hieronymus/ChangeLog b/hieronymus/ChangeLog
index a97ed58..4bdbc76 100644
--- a/hieronymus/ChangeLog
+++ b/hieronymus/ChangeLog
@@ -1,5 +1,13 @@
2008-06-29 Neal H. Walfield <neal@gnu.org>
+ * Makefile.am (all-local): New target.
+ (hieronymus.striped): Likewise.
+ ($(addsuffix .S, $(files))): Set BINARY to the binary's name.
+ ($(files)): New target.
+ ($(addsuffix .o, $(files))): Likewise.
+
+2008-06-29 Neal H. Walfield <neal@gnu.org>
+
* hieronymus.c: Include <md5.h>.
(struct module): Add field md5sum.
(main): Calculate the md5 digest for the binary. Compare it to
diff --git a/hieronymus/Makefile.am b/hieronymus/Makefile.am
index 9608b7c..8c06bf0 100644
--- a/hieronymus/Makefile.am
+++ b/hieronymus/Makefile.am
@@ -29,14 +29,18 @@ hieronymus_LDADD = $(USER_LDADD) $(addsuffix .o, $(files))
hieronymus_SOURCES = hieronymus.c modules.h
+all-local: hieronymus.striped
+hieronymus.striped: hieronymus
+ strip -o $@ $<
+
+
# List of modules to load followed by their priority, weight, and a
# delay (in seconds) at which to start the module. Each component is
# separated by a !
modules = ruth!1!100
ruth_commandline = "-D 3"
-
#modules = activity-distribution!1!100
-#modules = gcbench!1!100!5 gcbench2!1!100!20 gcbench3!1!200!0 gcbench4!1!200!10
+modules = gcbench!1!100!5 gcbench2!1!100!20 gcbench3!1!200!0 gcbench4!1!200!10
# List of directories relative to the top of the build tree to search
# for binaries.
@@ -83,7 +87,11 @@ hieronymus.c: modules.h
binaries = $(foreach file,$(files),$(call find_binary,$(file)))
$(addsuffix .S, $(files)): %.S: module.S $(binaries) Makefile
- $(CPP) -DMODULE=$(subst -,_,$*) -DBINARY=$(call find_binary,$(@:.S=)) $< -o $@
+ $(CPP) -DMODULE=$(subst -,_,$*) -DBINARY=$(@:.S=) $< -o $@
+
+$(files): %: module.S $(binaries) Makefile
+ strip -o $@ $(call find_binary,$@)
+$(addsuffix .o, $(files)): %.o: %
$(addsuffix .o, $(files)): %.o: %.S
$(CCAS) $(CCASFLAGS) -c -o $@ $<