Makefile 433 Bytes
Newer Older
1
CFLAGS = -Wall -O2 -g
2
CFLAGS_LOCAL = -Wall -O2 -g -I. -I../..
3
LDFLAGS = 
4
OBJ = dvb_print_si dvb_gen_si dvb_ecmg dvb_ecmg_test mpeg_print_pcr rtp_check_seqnum
5

6 7 8 9 10 11 12
ifeq "$(shell uname -s)" "Darwin"
LDFLAGS += -liconv
# Prevent generation of .dSYM debug directories
CFLAGS += -gstabs
CFLAGS_LOCAL += -gstabs
endif

13 14 15 16 17
all: $(OBJ)

%: %.c
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<

18 19 20
local: CFLAGS = $(CFLAGS_LOCAL)
local: all

21
clean:
22
	rm -rf $(OBJ)