diff options
author | Alexandre Iooss | 2016-08-19 13:28:57 +0200 |
---|---|---|
committer | Alexandre Iooss | 2016-08-19 13:28:57 +0200 |
commit | 6b817b101d008b937de98244bf96f655466252e3 (patch) | |
tree | 558e46326c43e0e2878e75f12d8d71ceb6b91c94 /libarstream2-Makefile | |
download | aur-6b817b101d008b937de98244bf96f655466252e3.tar.gz |
First commit
Diffstat (limited to 'libarstream2-Makefile')
-rwxr-xr-x | libarstream2-Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/libarstream2-Makefile b/libarstream2-Makefile new file mode 100755 index 000000000000..7c6489d22323 --- /dev/null +++ b/libarstream2-Makefile @@ -0,0 +1,31 @@ +CC = gcc +CFLAGS = -fPIC -Wall -Wextra -O2 -g -IIncludes -DHAVE_CONFIG_H +LDFLAGS = -shared +RM = rm -f +TARGET_LIB = libarstream2.so + +SRCS = gen/Sources/arstream2_error.c \ + src/arstream2_h264_filter.c \ + src/arstream2_h264_parser.c \ + src/arstream2_h264_sei.c \ + src/arstream2_h264_writer.c \ + src/arstream2_rtp_receiver.c \ + src/arstream2_rtp_sender.c \ + src/arstream2_stream_recorder.c \ + src/arstream2_stream_receiver.c +OBJS = $(SRCS:.c=.o) + +.PHONY: all +all: ${TARGET_LIB} + +$(TARGET_LIB): $(OBJS) + $(CC) ${LDFLAGS} -o $@ $^ + +$(SRCS:.c=.d):%.d:%.c + $(CC) $(CFLAGS) -MM $< >$@ + +include $(SRCS:.c=.d) + +.PHONY: clean +clean: + -${RM} ${TARGET_LIB} ${OBJS} $(SRCS:.c=.d) |