Browse Source

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.
master
Georgi Chorbadzhiyski 13 years ago
parent
commit
fb55ec9b64
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      examples/Makefile

+ 8
- 1
examples/Makefile View File

@ -5,6 +5,13 @@ CFLAGS_LOCAL = -Wall -O2 -g -I. -I../..
LDFLAGS =
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)
%: %.c
@ -14,4 +21,4 @@ local: CFLAGS = $(CFLAGS_LOCAL)
local: all
clean:
-rm $(OBJ)
rm -rf $(OBJ)

Loading…
Cancel
Save