password_manager/makefile
2024-07-05 20:02:46 +02:00

34 lines
596 B
Makefile

CC=g++
CFLAGS= -std=c++23
INCLUDE_DIR= include
SRC_DIR= source
# Get all cpp files from src directory
SRCS := $(wildcard $(SRC_DIR)/*.cpp)
# Get all header files from include directory
HDRS := $(wildcard $(INCLUDE_DIR)/*.h)
all: main run
main: main.cpp $(SRCS) $(HDRS)
$(CC) $(CFLAGS) -O3 -I$(INCLUDE_DIR) $(SRCS) main.cpp -o main -Wall
debug: main.cpp $(SRCS) $(HDRS)
$(CC) $(CFLAGS) -I$(INCLUDE_DIR) $(SRCS) -g main.cpp -o main -Wall
install: main
sudo mv main /usr/bin/pasman
run: main
./main
zip:
zip -r main.zip main.cpp $(INCLUDE_DIR) $(SRC_DIR) makefile
clean:
rm main