Commit fb55ec9b authored by Georgi Chorbadzhiyski's avatar Georgi Chorbadzhiyski

examples: Allow examples to link on OS X.

On OS X -liconv is needed in LDFLAGS otherwise
examples do not link. Tested on OS X 10.6.8.
parent f6126887
...@@ -5,6 +5,13 @@ CFLAGS_LOCAL = -Wall -O2 -g -I. -I../.. ...@@ -5,6 +5,13 @@ CFLAGS_LOCAL = -Wall -O2 -g -I. -I../..
LDFLAGS = LDFLAGS =
OBJ = dvb_print_si dvb_ecmg dvb_ecmg_test mpeg_print_pcr rtp_check_seqnum OBJ = dvb_print_si dvb_ecmg dvb_ecmg_test mpeg_print_pcr rtp_check_seqnum
ifeq "$(shell uname -s)" "Darwin"
LDFLAGS += -liconv
# Prevent generation of .dSYM debug directories
CFLAGS += -gstabs
CFLAGS_LOCAL += -gstabs
endif
all: $(OBJ) all: $(OBJ)
%: %.c %: %.c
...@@ -14,4 +21,4 @@ local: CFLAGS = $(CFLAGS_LOCAL) ...@@ -14,4 +21,4 @@ local: CFLAGS = $(CFLAGS_LOCAL)
local: all local: all
clean: clean:
-rm $(OBJ) rm -rf $(OBJ)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment