It's friday....
This commit is contained in:
20
Makefile
20
Makefile
@@ -3,11 +3,25 @@
|
||||
#
|
||||
# @file
|
||||
# @version 0.1
|
||||
CC = g++
|
||||
CFLAGS = -Wall
|
||||
LIBS = -lglfw -lGLESv2 -lm -lGL -lGLEW -ldl
|
||||
INCL = ./include
|
||||
DEPS = gl_utils.cpp glad.c
|
||||
EXE = pog
|
||||
|
||||
|
||||
all: build run
|
||||
|
||||
build: $(EXE).cpp $(DEPS)
|
||||
$(CC) $(CFLAGS) $^ $(LIBS) -I$(INCL) -o ./out/$(EXE)
|
||||
|
||||
debug: $(EXE).cpp $(DEPS)
|
||||
$(CC) -g $(CFLAGS) $^ $(LIBS) -I$(INCL) -o ./out/$(EXE)-debug
|
||||
|
||||
build:
|
||||
g++ -o ./out/pog pog.cpp -lglfw -lGLESv2 -lm -lGL
|
||||
run: build
|
||||
./out/pog
|
||||
|
||||
|
||||
gdb: debug
|
||||
gdb ./out/debug
|
||||
# end
|
||||
|
||||
Reference in New Issue
Block a user