fileinfo/Makefile

29 lines
404 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-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-08-22 00:12:10 +03:00
# Clean up generated files
clean:
rm -f $(OUTPUT)