mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-04-26 08:26:13 +00:00
PKGBUILD
This commit is contained in:
24
Makefile
24
Makefile
@@ -1,10 +1,11 @@
|
||||
DESTDIR ?=
|
||||
PREFIX ?= /usr/local
|
||||
CFLAGS ?= -O3
|
||||
LDFLAGS ?=
|
||||
|
||||
LIBS = -lm -ljpeg -pthread -levent -levent_pthreads
|
||||
CC = gcc
|
||||
CFLAGS = -c -std=c99 -O3 -Wall -Wextra -D_GNU_SOURCE
|
||||
LDFLAGS =
|
||||
LIBS = -lm -ljpeg -pthread -levent -levent_pthreads
|
||||
CFLAGS += -c -std=c99 -Wall -Wextra -D_GNU_SOURCE
|
||||
SOURCES = $(shell ls src/*.c src/jpeg/*.c)
|
||||
OBJECTS = $(SOURCES:.c=.o)
|
||||
PROG = ustreamer
|
||||
@@ -36,5 +37,22 @@ $(PROG): $(OBJECTS)
|
||||
$(CC) $(LIBS) $(CFLAGS) $< -o $@
|
||||
|
||||
|
||||
release:
|
||||
make clean
|
||||
make push
|
||||
make bump
|
||||
make push
|
||||
make clean
|
||||
|
||||
|
||||
bump:
|
||||
bumpversion minor
|
||||
|
||||
|
||||
push:
|
||||
git push
|
||||
git push --tags
|
||||
|
||||
|
||||
clean:
|
||||
rm -f src/*.o src/{jpeg,omx}/*.o vgcore.* $(PROG)
|
||||
|
||||
Reference in New Issue
Block a user