fileinfo/Makefile

38 lines
571 B
Makefile
Raw Normal View History

2024-08-22 00:12:10 +03:00
# Makefile
# Compiler
CXX = g++
# Compiler flags
CXXFLAGS = -lmagic
# Output file
OUTPUT = fileinfo
# Source file
SRC = main.cpp
# Rule to compile the program
$(OUTPUT): $(SRC)
$(CXX) $(SRC) $(CXXFLAGS) -o $(OUTPUT)
2024-08-23 20:10:28 +03:00
nomime: $(SRC)
2024-08-23 20:16:06 +03:00
$(CXX) $(SRC) -o $(OUTPUT) -D NO_MIME
2024-08-23 20:10:28 +03:00
2024-10-16 18:46:18 +03:00
noemojis: $(SRC)
$(CXX) $(SRC) $(CXXFLAGS) -o $(OUTPUT) -D NO_EMOJIS
2024-08-22 00:14:35 +03:00
check: $(OUTPUT)
$(CXX) $(SRC) $(CXXFLAGS) -o $(OUTPUT)
2024-08-22 00:15:16 +03:00
rm -f $(OUTPUT)
2024-08-22 00:14:35 +03:00
2024-10-16 18:46:18 +03:00
install: $(OUTPUT)
cp $(OUTPUT) /usr/bin/
userinstall: $(OUTPUT)
cp $(OUTPUT) ~/.local/bin/
2024-08-22 00:12:10 +03:00
# Clean up generated files
clean:
rm -f $(OUTPUT)