diff --git a/Makefile b/Makefile index 1b8c2bf..913d0b5 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,11 @@ #Try using clang, if it's installed ifneq ($(shell command -v clang),) CC = clang - CXX = $(patsubst g++,clang++, $(shell wx-config --cxx)) -std=c++98 -I/include -else - CXX = $(shell wx-config --cxx) -I/include + CXX = clang++ -std=c++98 endif +CXX += -Iinclude + SOURCES = $(wildcard include/**/*.cpp src/network/*.cpp src/settings/*.cpp include/*.cpp) OBJECTS = $(patsubst %.cpp,%.o, $(SOURCES)) TARGET = build/Tyro.a @@ -30,6 +30,9 @@ TESTS = $(patsubst %.cpp,%,$(TEST_SRC)) OS ?= $(shell uname -s) +ifeq ($(OS),Darwin) + CXX += -mmacosx-version-min=10.5 +endif ifeq ($(OS),Windows_NT) LDLIBS += -L/lib endif diff --git a/src/TyroApp.cpp b/src/TyroApp.cpp index bf64ae9..04ac8bb 100644 --- a/src/TyroApp.cpp +++ b/src/TyroApp.cpp @@ -18,7 +18,7 @@ bool TyroApp::OnInit() this->SetAppName(APP_NAME); this->SetVendorName(APP_VENDOR); - MainFrame* frame = new MainFrame(0L, _("Tyro")); + MainFrame* frame = new MainFrame(0L, "Tyro"); SetTopWindow(frame); diff --git a/src/settings/Config.h b/src/settings/Config.h index 33bdc63..022f650 100644 --- a/src/settings/Config.h +++ b/src/settings/Config.h @@ -2,7 +2,7 @@ #define TYRO_CONFIG_H #include "../common.h" -#include "../../include/json/json.h" +#include typedef Json::Value JsonValue; typedef Json::Reader JsonReader;