summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-07-16 11:46:06 -0400
committerOri Bernstein <ori@eigenstate.org>2014-08-04 11:25:52 -0400
commit4dc63d86d200712bb4b2c38629a90356d45fd0f2 (patch)
tree4cb35c80c7bfd06475c004c0be937b5b4b781f18
parent560d4a22a47f0e821c9b44dacc4acc33c165806c (diff)
downloadmc-4dc63d86d200712bb4b2c38629a90356d45fd0f2.tar.gz
Use probed values from configure
Drop platform.h for config.h.
-rw-r--r--6/isel.c3
-rw-r--r--6/platform.h9
-rw-r--r--6/simp.c3
-rwxr-xr-xconfigure4
4 files changed, 4 insertions, 15 deletions
diff --git a/6/isel.c b/6/isel.c
index f4f3da3..cae0ec9 100644
--- a/6/isel.c
+++ b/6/isel.c
@@ -14,8 +14,7 @@
#include "parse.h"
#include "opt.h"
#include "asm.h"
-
-#include "platform.h"
+#include "../config.h"
/* string tables */
char *insnfmts[] = {
diff --git a/6/platform.h b/6/platform.h
deleted file mode 100644
index 75c03ad..0000000
--- a/6/platform.h
+++ /dev/null
@@ -1,9 +0,0 @@
-#if defined(__APPLE__) && defined(__MACH__)
-/* for OSX */
-# define Asmcmd "as -g -o %s %s"
-# define Symprefix "_"
-#else
-/* Default to linux */
-# define Asmcmd "as -g -o %s %s"
-# define Symprefix ""
-#endif
diff --git a/6/simp.c b/6/simp.c
index 0eeb992..af04d93 100644
--- a/6/simp.c
+++ b/6/simp.c
@@ -12,8 +12,7 @@
#include "parse.h"
#include "opt.h"
#include "asm.h"
-
-#include "platform.h" /* HACK. We need some platform specific code gen behavior. *sigh.* */
+#include "../config.h"
/* takes a list of nodes, and reduces it (and it's subnodes) to a list
diff --git a/configure b/configure
index d445110..c012ba0 100755
--- a/configure
+++ b/configure
@@ -37,12 +37,12 @@ echo '#define Instroot "'$prefix'"' > config.h
case $OS in
*Linux*)
echo '#define Asmcmd "as -g -o %s %s"' >> config.h
- echo '#define Fprefix ""' >> config.h
+ echo '#define Symprefix ""' >> config.h
echo 'export SYS=linux' >> config.mk
;;
*Darwin*)
echo '#define Asmcmd "as -g -o %s %s"' >> config.h
- echo '#define Fprefix "_"' >> config.h
+ echo '#define Symprefix "_"' >> config.h
echo 'export SYS=osx' >> config.mk
;;
*)