Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (3)
examples: Fix compilation under OS X
· cf5f7a8e
Georgi Chorbadzhiyski
authored
Feb 18, 2018
cf5f7a8e
Merge branch 'examples_fixup' of
https://github.com/gfto/bitstream-1
into gfto-examples_fixup
· 6bf35fcf
Christophe Massiot
authored
May 02, 2018
6bf35fcf
Merge branch 'gfto-examples_fixup'
· b1aa8180
Christophe Massiot
authored
May 02, 2018
b1aa8180
Hide whitespace changes
Inline
Side-by-side
examples/Makefile
View file @
b1aa8180
PREFIX
?=
/usr/local
WARN
=
-Wall
-Wextra
-Wno-unused-parameter
-Wno-sign-compare
CPPFLAGS
=
-I
.
CPPFLAGS
=
-I
.
-I
..
-I
../..
CFLAGS
:=
$(
WARN
)
-O2
-g
$(
CFLAGS
)
LDFLAGS
:=
-lrt
$(
LDFLAGS
)
OBJ
=
dvb_print_si dvb_gen_si dvb_ecmg dvb_ecmg_test mpeg_print_pcr rtp_check_seqnum mpeg_restamp
ifeq
"$(shell uname -s)" "Linux"
LDFLAGS
+=
-lrt
endif
ifeq
"$(shell uname -s)" "Darwin"
LDLIBS
+=
-liconv
# Prevent generation of .dSYM debug directories
CFLAGS
+=
-gstabs
LDFLAGS
+=
-liconv
endif
all
:
$(OBJ)
...
...
@@ -21,4 +22,4 @@ install: $(OBJ)
install
-m
755
$(
OBJ
)
"
$(
DESTDIR
)$(
PREFIX
)
/bin"
clean
:
$(
RM
)
$(
OBJ
)
$(
RM
)
-rf
$(
OBJ
)
*
.dSYM