-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
33 lines (27 loc) · 739 Bytes
/
makefile
File metadata and controls
33 lines (27 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
CXX = g++
CXXFLAGS = -std=c++17 -O3 -march=native -flto -funroll-loops -ffast-math
TARGET = csv_processor
SOURCE = matching.cpp
# Default target
all: $(TARGET)
# Compile the program
$(TARGET): $(SOURCE)
$(CXX) $(CXXFLAGS) -o $(TARGET) $(SOURCE)
# Run with example files
run: $(TARGET)
./$(TARGET) input.csv output.csv
# Clean compiled files
clean:
rm -f $(TARGET)
# Help target
help:
@echo "Available targets:"
@echo " all - Compile the CSV processor"
@echo " run - Compile and run with input.csv/output.csv"
@echo " clean - Remove compiled executable"
@echo " help - Show this help message"
@echo ""
@echo "Usage:"
@echo " make"
@echo " ./csv_processor input.csv output.csv"
.PHONY: all run clean help