# HG changeset patch
# User Mario de Sousa <msousa@fe.up.pt>
# Date 1301910510 -3600
# Node ID 1eba01e3fb70e9a826f326a6ee03d4ce0d57098d
# Parent  0a1204bcc9af7d773aadb03951bae3ef158a1d16
Adding Makefile for Darwin (thanks go to Manuele)

diff -r 0a1204bcc9af -r 1eba01e3fb70 Makefile
--- a/Makefile	Mon Apr 04 10:42:03 2011 +0100
+++ b/Makefile	Mon Apr 04 10:48:30 2011 +0100
@@ -24,7 +24,7 @@
 	-rm -f iec2iec iec2c *.o absyntax/*.o
 	echo > Makefile.depend
 # make something everywhere (ie, in all Makefiles that have that target)
-	find . -depth -mindepth 2 -maxdepth 2 -name Makefile -printf %h\\n | xargs -i make -C{} $@
+	find . -depth -mindepth 2 -maxdepth 2 -name Makefile | sed 's/Makefile//g' | xargs -I {} make -C{} clean
 
 CXXFLAGS += -I.
 
diff -r 0a1204bcc9af -r 1eba01e3fb70 Makefile.Darwin
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile.Darwin	Mon Apr 04 10:48:30 2011 +0100
@@ -0,0 +1,17 @@
+#CXX = i686-mingw32-c++ 
+CXX = g++ 
+
+#get warnings, debugging information and optimization
+CFLAGS  = -Wall -Wpointer-arith -Wwrite-strings
+# CFLAGS += -Werror
+CFLAGS += -ggdb
+#CFLAGS += -O3 -funroll-loops
+# Note: if the optimizer crashes, we'll leave out the -O3 for those files
+
+#get warnings, debugging information and optimization
+#CXXFLAGS  = -Wall -pedantic -Wpointer-arith -Wwrite-strings
+#CXXFLAGS += -ggdb
+#CXXFLAGS += -O3 -funroll-loops
+CXXFLAGS  = $(CFLAGS)
+
+IECLIBDIR=lib
diff -r 0a1204bcc9af -r 1eba01e3fb70 stage4/Makefile
--- a/stage4/Makefile	Mon Apr 04 10:42:03 2011 +0100
+++ b/stage4/Makefile	Mon Apr 04 10:48:30 2011 +0100
@@ -10,7 +10,7 @@
 
 clean:
 	rm -f *.o
-	find . -depth -mindepth 2 -maxdepth 2 -name Makefile -printf %h\\n | xargs -i make -C{} $@
+	find . -depth -mindepth 2 -maxdepth 2 -name Makefile | sed 's/Makefile//g' | xargs -I {} make -C{} clean
 
 
 CXXFLAGS += -I. -I../*