From e683d1d370709aeb5ae078ef8f092da041849845 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Tue, 5 Mar 2019 02:08:32 +0300 Subject: [PATCH] Makefile: OBJECTS after SOURCES --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4beb49a..c6a115b 100644 --- a/Makefile +++ b/Makefile @@ -9,16 +9,16 @@ CC = gcc LIBS = -lm -ljpeg -pthread -levent -levent_pthreads -luuid override CFLAGS += -c -std=c99 -Wall -Wextra -D_GNU_SOURCE SOURCES = $(shell ls src/*.c src/encoders/cpu/*.c src/encoders/hw/*.c) -OBJECTS = $(SOURCES:.c=.o) PROG = ustreamer - ifeq ($(shell ls -d /opt/vc/include 2>/dev/null), /opt/vc/include) SOURCES += $(shell ls src/encoders/omx/*.c) LIBS += -lbcm_host -lvcos -lopenmaxil -L/opt/vc/lib override CFLAGS += -DWITH_OMX_ENCODER -DOMX_SKIP64BIT -I/opt/vc/include endif +OBJECTS = $(SOURCES:.c=.o) + # ===== all: $(SOURCES) $(PROG)