From cae7389256cc9fb731e34abc24f35673e09696d8 Mon Sep 17 00:00:00 2001 From: James Shiffer <2191476+scoliono@users.noreply.github.com> Date: Thu, 8 Apr 2021 16:41:18 -0700 Subject: [PATCH] made shitty makefile for building on linux --- .gitignore | 1 + FemboyGeometry/geometry.h | 10 ++++------ FemboyGeometry/main.cpp | 2 +- Makefile | 8 ++++++++ 4 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index ee02846..dfd4490 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +geometry dist/ ## Ignore Visual Studio temporary files, build results, and diff --git a/FemboyGeometry/geometry.h b/FemboyGeometry/geometry.h index fe9ff2b..4057d26 100644 --- a/FemboyGeometry/geometry.h +++ b/FemboyGeometry/geometry.h @@ -5,13 +5,11 @@ #endif #include -#include -#include -#include +#include -#define PI 3.14159 -#define NUM_MODES 5 -#define OMEGA 4.0f +#define PI 3.14159 +#define NUM_MODES 5 +#define OMEGA 4.0f class GeometryPlayer diff --git a/FemboyGeometry/main.cpp b/FemboyGeometry/main.cpp index b0d500e..0caeb15 100644 --- a/FemboyGeometry/main.cpp +++ b/FemboyGeometry/main.cpp @@ -1,4 +1,4 @@ -#include +#include #include "geometry.h" #define WIN_WIDTH 640 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b1c6f3a --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +CFLAGS=-DGL_SILENCE_DEPRECATION $(shell pkg-config --cflags gl) $(shell pkg-config --cflags glut) +LIBS=$(shell pkg-config --libs gl) $(shell pkg-config --libs glut) + +all: + g++ -o geometry ./FemboyGeometry/*.cpp $(CFLAGS) $(LIBS) + +clean: + rm -f geometry