Feat: add variables, debuging, cleaning to Makefile

pull/8/head
rkcf 2023-02-25 12:09:20 -06:00
parent 248e84b035
commit 19788cee00
1 changed files with 13 additions and 1 deletions

View File

@ -1,5 +1,17 @@
PROJ = wtpp
CC = /usr/bin/clang++
GDB = /usr/bin/gdb
OLEVEL = -O2
CFLAGS = -Wall -std=c++20 $(OLEVEL) -o $(PROJ)
OBJECTS = src/wtpp.cpp
build: build:
clang++ -Wall -std=c++11 src/wtpp.cpp -o wtpp $(CC) $(CFLAGS) $(OBJECTS)
clean: clean:
rm wtpp rm wtpp
debug: build
$(GDB) $(PROJ)