summarylogtreecommitdiffstats
path: root/libarstream2-Makefile
diff options
context:
space:
mode:
authorAlexandre Iooss2016-08-19 13:28:57 +0200
committerAlexandre Iooss2016-08-19 13:28:57 +0200
commit6b817b101d008b937de98244bf96f655466252e3 (patch)
tree558e46326c43e0e2878e75f12d8d71ceb6b91c94 /libarstream2-Makefile
downloadaur-6b817b101d008b937de98244bf96f655466252e3.tar.gz
First commit
Diffstat (limited to 'libarstream2-Makefile')
-rwxr-xr-xlibarstream2-Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/libarstream2-Makefile b/libarstream2-Makefile
new file mode 100755
index 00000000000..7c6489d2232
--- /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)