From 151e20c083d5f6d70763af512df51a095108d2d0 Mon Sep 17 00:00:00 2001 From: dibas Date: Sun, 14 Aug 2016 13:39:58 +0200 Subject: [PATCH 1/3] Fix Makefiles on OS X. --- Makefile | 2 +- rpl/common/rules.mk | 2 +- rules/ppc.mk | 2 +- samples/helloworld/Makefile | 2 +- samples/pong/Makefile | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 083f3bd..9c8cca2 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -ifeq ($(shell uname -o),Cygwin) +ifeq ($(shell uname -s),CYGWIN*) WUT_ROOT := $(shell cygpath -w ${CURDIR}) else WUT_ROOT := $(CURDIR) diff --git a/rpl/common/rules.mk b/rpl/common/rules.mk index ad385f9..b6f40ee 100644 --- a/rpl/common/rules.mk +++ b/rpl/common/rules.mk @@ -1,6 +1,6 @@ .SUFFIXES: -ifeq ($(shell uname -o),Cygwin) +ifeq ($(shell uname -s),CYGWIN*) CUR_DIR := $(shell cygpath -w ${CURDIR}) else CUR_DIR := $(CURDIR) diff --git a/rules/ppc.mk b/rules/ppc.mk index 61b5703..f0a1119 100644 --- a/rules/ppc.mk +++ b/rules/ppc.mk @@ -1,4 +1,4 @@ -ifeq ($(shell uname -o),Cygwin) +ifeq ($(shell uname -s),CYGWIN*) WUT_ROOT := $(shell cygpath -w ${WUT_ROOT}) else WUT_ROOT := $(WUT_ROOT) diff --git a/samples/helloworld/Makefile b/samples/helloworld/Makefile index 15f4008..13aec28 100644 --- a/samples/helloworld/Makefile +++ b/samples/helloworld/Makefile @@ -4,7 +4,7 @@ ifeq ($(strip $(WUT_ROOT)),) $(error "Please ensure WUT_ROOT is in your environment.") endif -ifeq ($(shell uname -o),Cygwin) +ifeq ($(shell uname -s),CYGWIN*) ROOT := $(shell cygpath -w ${CURDIR}) WUT_ROOT := $(shell cygpath -w ${WUT_ROOT}) else diff --git a/samples/pong/Makefile b/samples/pong/Makefile index ef9dadd..d90c68c 100644 --- a/samples/pong/Makefile +++ b/samples/pong/Makefile @@ -4,7 +4,7 @@ ifeq ($(strip $(WUT_ROOT)),) $(error "Please ensure WUT_ROOT is in your environment.") endif -ifeq ($(shell uname -o),Cygwin) +ifeq ($(shell uname -s),CYGWIN*) ROOT := $(shell cygpath -w ${CURDIR}) WUT_ROOT := $(shell cygpath -w ${WUT_ROOT}) else From 2b68b3af10e6542ea959a16f724e15cc6c1a3968 Mon Sep 17 00:00:00 2001 From: dibas Date: Sun, 14 Aug 2016 13:40:30 +0200 Subject: [PATCH 2/3] Fix helloworld example by including necessary libs. --- samples/helloworld/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/helloworld/Makefile b/samples/helloworld/Makefile index 13aec28..fc5763e 100644 --- a/samples/helloworld/Makefile +++ b/samples/helloworld/Makefile @@ -18,7 +18,7 @@ BUILD := build SOURCE := src INCLUDE := include DATA := data -LIBS := -lcoreinit -lproc_ui -lsysapp +LIBS := -lgcc -lcrt -lcoreinit -lproc_ui -lsysapp CFLAGS += -O2 -Wall -std=c11 CXXFLAGS += -O2 -Wall From 9fa421c87d5244b344f1c97db2deab8062f563fb Mon Sep 17 00:00:00 2001 From: dibas Date: Sun, 14 Aug 2016 13:48:06 +0200 Subject: [PATCH 3/3] Include OS X as tested OS in readme. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 90579dc..efe27fa 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Doxygen output can be found at https://decaf-emu.github.io/wut ## Requirements - devkitPRO + devkitPPC -- Only tested on Linux so far +- Only tested on Linux and OS X so far ## Usage - git clone --recursive https://github.com/decaf-emu/wut.git