-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
32 lines (23 loc) · 701 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Compiler
CC=g++
# Compiler flags
# -g turn on debugging information
# -Wall turn on compiler warnings
CFLAGS=-g -Wall -std=c++11
# Executable Name
EXE=boilerplate
# Source files
SRC=*.cpp
# define any directories containing header files other than /usr/include
INCLUDES=-Imiddleware/stb
# define library paths
LFLAGS=-L/usr/local/lib -L/usr/lib/nvidia-367/
# define any libraries to link into executable
LIBS=-lglfw -lOpenGL
# typing 'make' will invoke the first target entry in the file
# you can name this target entry anything, but "default" or "all"
# are the most commonly used names by convention
all:
$(CC) $(CFLAGS) $(SRC) $(INCLUDES) -o $(EXE) $(LFLAGS) $(LIBS)
clean:
rm $(EXE)