made shitty makefile for building on linux

This commit is contained in:
James Shiffer 2021-04-08 16:41:18 -07:00
parent 549656a2d0
commit cae7389256
No known key found for this signature in database
GPG Key ID: C0DB8774A1B3BA45
4 changed files with 14 additions and 7 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
geometry
dist/ dist/
## Ignore Visual Studio temporary files, build results, and ## Ignore Visual Studio temporary files, build results, and

View File

@ -5,13 +5,11 @@
#endif #endif
#include <math.h> #include <math.h>
#include <gl/GL.h> #include <GL/glut.h>
#include <gl/GLU.h>
#include <gl/GLUT.h>
#define PI 3.14159 #define PI 3.14159
#define NUM_MODES 5 #define NUM_MODES 5
#define OMEGA 4.0f #define OMEGA 4.0f
class GeometryPlayer class GeometryPlayer

View File

@ -1,4 +1,4 @@
#include <gl/GLUT.h> #include <GL/glut.h>
#include "geometry.h" #include "geometry.h"
#define WIN_WIDTH 640 #define WIN_WIDTH 640

8
Makefile Normal file
View File

@ -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