[clever] r445 committed - - Added win32 checks

0 views
Skip to first unread message

cle...@googlecode.com

unread,
Jul 20, 2011, 7:25:23 PM7/20/11
to cleve...@googlegroups.com
Revision: 445
Author: felipensp
Date: Wed Jul 20 16:24:55 2011
Log: - Added win32 checks
http://code.google.com/p/clever/source/detail?r=445

Modified:
/trunk/Makefile

=======================================
--- /trunk/Makefile Tue Feb 1 16:56:26 2011
+++ /trunk/Makefile Wed Jul 20 16:24:55 2011
@@ -1,9 +1,16 @@
# $Id$
#
+UNAME := $(shell uname)

# Compiler
CXX?=g++
+
+ifeq ($(UNAME), Windows)
CXXFLAGS=-c -O2 -ggdb -ansi -Iinclude/ -Ibuild/ -Imodules/ -Iwin32/ -I.
-fno-rtti -pedantic -fno-exceptions
+else
+CXXFLAGS=-c -O2 -ggdb -ansi -Iinclude/ -Ibuild/ -Imodules/ -I. -fno-rtti
-pedantic -fno-exceptions
+endif
+
CXXFLAGS2=-c -O2 -ggdb -ansi -Iinclude/ -Ibuild/ -I. -fno-rtti -pedantic
-fno-exceptions
CXXFLAGS3=-ggdb -O2
# Linker
@@ -23,12 +30,21 @@
# Testrunner dir
EXTRADIR=extra/

+ifeq ($(UNAME), Windows)
OBJECTS=$(BUILDDIR)parser.o $(BUILDDIR)scanner.o $(BUILDDIR)driver.o \
$(BUILDDIR)cstring.o $(BUILDDIR)double.o $(BUILDDIR)std_pkg.o \
$(BUILDDIR)int.o $(BUILDDIR)io.o $(BUILDDIR)math.o \
$(BUILDDIR)pkgmanager.o $(BUILDDIR)compiler.o \
$(BUILDDIR)vm.o $(BUILDDIR)astvisitor.o $(BUILDDIR)opcode.o \
$(BUILDDIR)main.o $(BUILDDIR)win32.o
+else
+OBJECTS=$(BUILDDIR)parser.o $(BUILDDIR)scanner.o $(BUILDDIR)driver.o \
+ $(BUILDDIR)cstring.o $(BUILDDIR)double.o $(BUILDDIR)std_pkg.o \
+ $(BUILDDIR)int.o $(BUILDDIR)io.o $(BUILDDIR)math.o \
+ $(BUILDDIR)pkgmanager.o $(BUILDDIR)compiler.o \
+ $(BUILDDIR)vm.o $(BUILDDIR)astvisitor.o $(BUILDDIR)opcode.o \
+ $(BUILDDIR)main.o
+endif

clever: $(OBJECTS)
$(LD) $(LFLAGS) -o $@ $(OBJECTS)
@@ -102,8 +118,7 @@
clean-all: clean clean-test

clean:
- rm -rf clever clever.exe
- rm -f $(BUILDDIR)*
+ rm -f clever* $(BUILDDIR)*.o $(BUILDDIR)*.hh $(BUILDDIR)*.cc

clean-test:
rm -rf $(EXTRADIR)testrunner $(EXTRADIR)testrunner.exe

Reply all
Reply to author
Forward
0 new messages