final
This commit is contained in:
18
ora7/proj3/Makefile
Normal file
18
ora7/proj3/Makefile
Normal file
@@ -0,0 +1,18 @@
|
||||
CXX = g++
|
||||
CXXFLAGS = -Wall -O2 `pkg-config --cflags opencv4`
|
||||
LIBS = `pkg-config --libs opencv4`
|
||||
|
||||
SRC = $(wildcard *.cpp)
|
||||
OBJ = $(SRC:.cpp=.o)
|
||||
TARGET = main
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(OBJ)
|
||||
$(CXX) $(OBJ) -o $@ $(LIBS)
|
||||
|
||||
%.o: %.cpp
|
||||
$(CXX) $(CXXFLAGS) -c $< -o $@
|
||||
|
||||
clean:
|
||||
rm -f $(OBJ) $(TARGET)
|
||||
Reference in New Issue
Block a user