mirror of
https://github.com/bluenviron/mediamtx
synced 2025-01-22 06:53:40 +00:00
43 lines
508 B
Makefile
43 lines
508 B
Makefile
CC = gcc
|
|
CXX = g++
|
|
|
|
CFLAGS = \
|
|
-Ofast \
|
|
-Werror \
|
|
-Wall \
|
|
-Wextra \
|
|
-Wno-unused-parameter
|
|
|
|
CXXFLAGS = \
|
|
-Ofast \
|
|
-Werror \
|
|
-Wall \
|
|
-Wextra \
|
|
-Wno-unused-parameter \
|
|
-std=c++17 \
|
|
$$(pkg-config --cflags libcamera)
|
|
|
|
LDFLAGS = \
|
|
-s \
|
|
-pthread \
|
|
$$(pkg-config --libs libcamera)
|
|
|
|
OBJS = \
|
|
camera.o \
|
|
encoder.o \
|
|
main.o \
|
|
parameters.o \
|
|
roi.o \
|
|
sensor_mode.o
|
|
|
|
all: exe
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
%.o: %.cpp
|
|
$(CXX) $(CXXFLAGS) -c $< -o $@
|
|
|
|
exe: $(OBJS)
|
|
$(CXX) $(LDFLAGS) -o $@ $^
|