This is the mail archive of the frysk@sources.redhat.com mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

why not generate rules for assembly programs in common/Makefile.gen.sh?


hi,

In frysk-core/frysk/pkglibexecdir, there are some assembly programs(with
the development going on, more assembly programs may be added). But the
rules for making them are not generated by Makefile.gen.sh. If one
assembly program will be added, the rules must be added in
frysk-core/Makefile.am too!  This is not so good because adding rules in
Makefile.am by hand is not only one boring task but also this will make
Makefile.am larger!  So we do some modifications on
common/Makefile.gen.sh and automatically generate all rules for assembly
programs. About the details, see the attached patch. 

2006-09-15  Yong Zheng  <zhengyo@cn.ibm.com>

	* common/Makefile.gen.sh: Add instructions to generate rules for
	assembly programs.
	* frysk-core/Makefile.am: Remove rules for assembly programs.

please review. If it ok, we will check them in. Thanks.

Best regards
Yong Zheng
Index: common/Makefile.gen.sh
===================================================================
RCS file: /cvs/frysk/frysk-common/Makefile.gen.sh,v
retrieving revision 1.109
diff -u -r1.109 Makefile.gen.sh
--- common/Makefile.gen.sh	29 Aug 2006 21:40:12 -0000	1.109
+++ common/Makefile.gen.sh	15 Sep 2006 03:53:48 -0000
@@ -400,6 +400,23 @@
     done
 done
 
+#
+# Generate rules for .S/.s assembly files
+#
+for suffix in .s .S ; do
+    print_header "... ${suffix}"
+    find ${dirs} \
+        -name "[A-Za-z]*${suffix}" -print \
+        | sort -f | while read file ; do
+        d=`dirname ${file}`
+        b=`basename ${file} ${suffix}`
+        name=${d}/${b}
+        name_=`echo ${name} | sed -e 'y,/-,__,'`
+	
+	echo "${name_}_SOURCES = ${file}"
+	echo_PROGRAMS ${name}
+    done
+done
 
 # Grep the cni/*.cxx files forming a list of included files.  Assume
 # these are all generated from .class files.  The list can be pruned a
Index: frysk-core/Makefile.am
===================================================================
RCS file: /cvs/frysk/frysk-core/Makefile.am,v
retrieving revision 1.66
diff -u -r1.66 Makefile.am
--- frysk-core/Makefile.am	12 Sep 2006 17:28:57 -0000	1.66
+++ frysk-core/Makefile.am	15 Sep 2006 03:55:42 -0000
@@ -94,18 +94,6 @@
 
 # XXX: This needs to be make less-architecture independant.
 
-frysk_pkglibexecdir_funit_ia32_regs_SOURCES = frysk/pkglibexecdir/funit-ia32-regs.S
-pkglibexec_PROGRAMS += frysk/pkglibexecdir/funit-ia32-regs
-frysk_pkglibexecdir_funit_ia32_modify_SOURCES = frysk/pkglibexecdir/funit-ia32-modify.S
-pkglibexec_PROGRAMS += frysk/pkglibexecdir/funit-ia32-modify
-frysk_pkglibexecdir_funit_x8664_regs_SOURCES = frysk/pkglibexecdir/funit-x8664-regs.S
-pkglibexec_PROGRAMS += frysk/pkglibexecdir/funit-x8664-regs
-frysk_pkglibexecdir_funit_x8664_modify_SOURCES = frysk/pkglibexecdir/funit-x8664-modify.S
-pkglibexec_PROGRAMS += frysk/pkglibexecdir/funit-x8664-modify
-
-frysk_pkglibexecdir_funit_ppc64_regs_SOURCES = frysk/pkglibexecdir/funit-ppc64-regs.S
-pkglibexec_PROGRAMS += frysk/pkglibexecdir/funit-ppc64-regs
-
 # For TestExec.java
 pkglibexec_PROGRAMS += frysk/pkglibexecdir/funit-child-alias
 frysk_pkglibexecdir_funit_child_alias_SOURCES =

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]