summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
;;
*)