Add makefile
This commit is contained in:
parent
c446f0052a
commit
c9ee228439
21
Makefile
Normal file
21
Makefile
Normal file
@ -0,0 +1,21 @@
|
||||
# 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)
|
||||
|
||||
# Clean up generated files
|
||||
clean:
|
||||
rm -f $(OUTPUT)
|
Loading…
Reference in New Issue
Block a user