forked from openvcx/openvcx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
executable file
·78 lines (58 loc) · 2.13 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
include ./openvsx/makefiles/Makefile.conf
MKDATE=mkdate
MKBUILDNUM=mkbuildnum
BUILD_DIR = bin
SRC_DIR = src
INCLUDE_DIRS =
LIBS =
LIB_OBJS =
SUBDIRS_MEDIASERVER = openvsx/
SUBDIRS_SIPSERVER= @SUBDIRS_SIPSERVER_VALUE@
MKDATE_FILE = openvsx/version/include/build_info_date.h
MKBLDNUM_FILE = openvsx/version/include/build_info_ver.h
all: openvsx openvcx
${MKDATE}:
@echo "#define BUILD_INFO_DATE \"\c" > ${MKDATE_FILE}.tmp
@date "+%a %m/%d/%Y" >> ${MKDATE_FILE}.tmp
@echo "\"" >> ${MKDATE_FILE}.tmp
@awk '{ str1=str1 $$0 }END{ print str1 }' < ${MKDATE_FILE}.tmp > ${MKDATE_FILE}
#@tr "\n" " " < ${MKDATE_FILE}.tmp > ${MKDATE_FILE}
@rm ./${MKDATE_FILE}.tmp
@echo "Created build date file" ${MKDATE_FILE}
${MKBUILDNUM}:
@awk '{ printf "#define BUILD_INFO_NUM %d\n", $$3+1 }' < ${MKBLDNUM_FILE} > ${MKBLDNUM_FILE}.tmp
@mv ./${MKBLDNUM_FILE}.tmp ./${MKBLDNUM_FILE}
@echo "Created build number file" ${MKBLDNUM_FILE}
#
# Increment build version
#
version: ${MKDATE} ${MKBUILDNUM}
# compile C++ source files into object files.
#$(BUILD_DIR)/%.o: $(SRC_DIR)/%.c
# @if test ! -d $(BUILD_DIR); then $(MKDIR) $(BUILD_DIR); fi;
# $(PRECC) $(CPP) $(DEFS) $(INCLUDE_DIRS) $(CFLAGS) -o $@ -c $<
#
# Make OpenVSX Video Streaming Processor C source
#
openvsx:
@for i in ${SUBDIRS_MEDIASERVER}; do echo "making... $${i}"; $(MAKE) -C $${i}; done;
#
# Make OpenVCX Video Conferencing Server Java source
#
openvcx:
@for i in ${SUBDIRS_SIPSERVER}; do echo "making... $${i}"; $(MAKE) -C $${i}; done;
#
# Create self-extracting installation package for both OpenVCX and OpenVSX
#
installer-build: openvsx
@for i in ${SUBDIRS_SIPSERVER}; do echo "making installer-build... $${i}"; $(MAKE) installer-build -C $${i}; done;
installer-run: openvsx
@for i in ${SUBDIRS_SIPSERVER}; do echo "making installer-run... $${i}"; $(MAKE) installer-run -C $${i}; done;
install: openvsx
@for i in ${SUBDIRS_SIPSERVER}; do echo "making install... $${i}"; $(MAKE) install -C $${i}; done;
#
# clean everything
#
clean:
@for i in ${SUBDIRS_MEDIASERVER}; do echo "cleaning... $${i}"; $(MAKE) $@ -C $${i}; done;
.PHONY:all openvsx openvcx clean install version installer-build installer-run