From 7f49c5437a78a20c079b59667402717dad19a64b Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Mon, 7 Jan 2019 20:09:58 +0100 Subject: updated Makefile, included gotoxy() to ifdef WIN32 in cRender.h --- Makefile | 5 ++--- cRender.h | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 86c131d..3d97022 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ CC = /usr/bin/g++ CFLAGS = -Wall -g -std=c++11 -LDFLAGS = -lm -lcurses +LDFLAGS = -lm OUTPUT = Engine BUILDDIR = build @@ -18,5 +18,4 @@ all: clean debug .PHONY: clean clean: - rm -f $(BUILDDIR)/$(OUTPUT) *.o - rmdir --ignore-fail $(BUILDDIR) + rm -df $(BUILDDIR)/$(OUTPUT) *.o diff --git a/cRender.h b/cRender.h index 209c75b..59ca352 100644 --- a/cRender.h +++ b/cRender.h @@ -134,8 +134,9 @@ private: #ifdef _WIN32 int SetConsoleWindowSize(int x, int y); //Slightly adapted from: http://www.cplusplus.com/forum/windows/121444/ -#endif + void gotoxy( int x, int y ); +#endif void forceReRender(); -- cgit v1.2.3