From 7d8e623512c2cf33eef000cf99af97386dfe6d59 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 24 Jun 2008 19:33:50 +0000 Subject: [PATCH] Remove an obsolete Makefile Translate windows error codes to text in SystemError --- Makefile | 95 ------------------------------------------ source/core/except.cpp | 9 +++- 2 files changed, 8 insertions(+), 96 deletions(-) delete mode 100644 Makefile diff --git a/Makefile b/Makefile deleted file mode 100644 index 1e310c3..0000000 --- a/Makefile +++ /dev/null @@ -1,95 +0,0 @@ -NAME = core - -WORKDIR = $(PWD)/../.. -TMP = $(WORKDIR)/tmp/linux -TGT = $(HOME)/local - -CXX = g++ -CC = gcc -AR = ar -CP = cp - -LIBFILE = libmsp$(NAME) - -MAKEFLAGS += -s --no-print-directory -INCLUDE = -Isource -I$(TMP)/include -LIB = -L$(TMP) -DEBUG = -CFLAGS = $(DEBUG) $(INCLUDE) -pipe -Wall -CXXFLAGS = $(CFLAGS) - -PIC = -fPIC -SHARED = .so -STATIC = .a - -override CFLAGS += `pkg-config --cflags sigc++-2.0` -override LDFLAGS += `pkg-config --libs sigc++-2.0` -override CXXFLAGS += `pkg-config --cflags sigc++-2.0` - -SRC = source -SUBDIRS = core time -OBJS = $(foreach SUBDIR, $(SUBDIRS), $(addprefix $(TMP)/$(SUBDIR)/, $(addsuffix .o, $(notdir $(basename $(wildcard $(SRC)/$(SUBDIR)/*.cpp)))))) - -pkgincludedir = include/msp -libdir = lib - -foo = "echo $ #include +#ifdef WIN32 +#include +#endif #include "except.h" using namespace std; @@ -36,7 +39,11 @@ string SystemError::build_what(const string &w, int e) ostringstream buf; buf<