Skip to content
Snippets Groups Projects
Commit 559c58f0 authored by 한동현's avatar 한동현
Browse files

chore(c): Makefile 추가

parent b8c700d2
Branches
No related tags found
No related merge requests found
CXX = g++
CXXFLAGS = -Wall -std=c++17 `pkg-config --cflags libcamera opencv4`
LDFLAGS = `pkg-config --libs libcamera opencv4`
SOURCES = camera.cpp gpio.cpp
OBJECTS = $(SOURCES:.cpp=.o)
TARGET = camera
DIRS = ../images ../plates
.PHONY: all clean directories
all: directories $(TARGET)
directories:
@mkdir -p $(DIRS)
$(TARGET): $(OBJECTS)
$(CXX) $(OBJECTS) -o $(TARGET) $(LDFLAGS)
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
clean:
rm -f $(OBJECTS) $(TARGET)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment