Implemented image view system for.. viewing images

This commit is contained in:
2024-10-07 05:09:46 -05:00
parent 3bb747bfae
commit fa14b3fd8f
8 changed files with 93 additions and 44 deletions

View File

@@ -1,6 +1,7 @@
CPPFLAGS=-g
LDFLAGS=-lglfw -lvulkan -ldl -lpthread -lX11 -lXxf86vm -lXrandr -lXi
DEBUGFLAGS=-DDEBUG -fsanitize=address
DEBUGFLAGS=-DDEBUG -fsanitize=address
GDBFLAGS=
SRC=$(shell find . -name *.cpp)
OBJ=$(SRC:%.cpp=%.o)
@@ -13,13 +14,19 @@ all: $(BIN)
.PHONY: run
run: $(BIN)
./$(BIN)
.PHONY: gdb
gdb: LDFLAGS+=$(GDBFLAGS)
gdb: $(BIN)
gdb -q $(BIN)
.PHONY: debug
debug: LDFLAGS+=$(DEBUGFLAGS)
debug: $(BIN)
./$(BIN)
.PHONY: dep
dep:
sudo pacman -S gcc glfw glm shaderc libxi libxxf86vm
sudo pacman -S gcc glfw glm shaderc libxi libxxf86vm gdb
.PHONY: info
info:
@echo "make: Build executable"
@@ -33,7 +40,7 @@ $(BIN): $(OBJ)
g++ $(CPPFLAGS) -o $(BIN) $(OBJ) $(LDFLAGS)
%.o: %.cpp
g++ -c $< -o $@ $(LDFLAGS)
g++ -c -g $< -o $@ $(LDFLAGS)
.PHONY: clean
clean: