################################################################ # # Broadcom Corp. Confidential # Copyright 2003 Broadcom Corp. All Rights Reserved. # # THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED # SOFTWARE LICENSE AGREEMENT BETWEEN THE USER AND BROADCOM. # YOU HAVE NO RIGHT TO USE OR EXPLOIT THIS MATERIAL EXCEPT # SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. # # File: makefile # Description: Driver makefile. # # Created: 03/10/2003 by Jeffrey Fisher # ################################################################/ TOP_DIR = $(shell /bin/pwd)/.. CP = cp cc = gcc # # Targets # BINLOG = bl_reader BIN2C = bin2c FONTRIPPER = fontripper PNGTORAW = pngtoraw PROC_POST = proc_post 708PARSE = 708parse RRTPROC = rrtproc BIN2VERILOG = bin2verilog BIN_CHECKSUM = bin_checksum BIN2ASC_ARRAY = bin2ASC_array # # include definitions for building libraries and applications for the settop # CFLAGS += -g -Bstatic # # Program objects # 708PARSE_SRCS = 708parse.c 708PARSE_OBJS = $(notdir $(708PARSE_SRCS:.c=.o)) 708PARSE_DEPS = $(notdir $(708PARSE_SRCS:.d=.o)) RRTPROC_SRCS = rrtproc.c \ ts_priv.c ts_psi.c \ ts_pat.c ts_pmt.c psip_mgt.c psip_stt.c \ psip_vct.c psip_descriptor.c psip_mss.c \ psip_ett.c psip_rrt.c psip_eit.c \ psip_decode_tree_01.c psip_decode_tree_02.c RRTPROC_OBJS = $(notdir $(RRTPROC_SRCS:.c=.o)) RRTPROC_DEPS = $(notdir $(RRTPROC_SRCS:.d=.o)) BINLOG_SRCS = bl_reader.c regdecode.c BINLOG_OBJS = $(notdir $(BINLOG_SRCS:.c=.o)) BINLOG_DEPS = $(notdir $(BINLOG_SRCS:.d=.o)) FONTRIPPER_SRCS = fontripper.c FONTRIPPER_OBJS = $(notdir $(FONTRIPPER_SRCS:.c=.o)) FONTRIPPER_DEPS = $(notdir $(FONTRIPPER_SRCS:.d=.o)) BIN2C_SRCS = bin2c.c BIN2C_OBJS = $(notdir $(BIN2C_SRCS:.c=.o)) BIN2C_DEPS = $(notdir $(BIN2C_SRCS:.d=.o)) PNGTORAW_SRCS = pngtoraw.c PNGTORAW_OBJS = $(notdir $(PNGTORAW_SRCS:.c=.o)) PNGTORAW_DEPS = $(notdir $(PNGTORAW_SRCS:.d=.o)) PROC_POST_SRCS = proc_post.c PROC_POST_OBJS = $(notdir $(PROC_POST_SRCS:.c=.o)) PROC_POST_DEPS = $(notdir $(PROC_POST_SRCS:.d=.o)) # If you cant put libraries in normal location on dev PC set # set the following to the correct locations. #CFLAGS += -I/usr/local/include/freetype2 -I TraceToolkit-0.9.4/Visualizer #LDFLAGS += -L/usr/local/lib # If you can not install in normal place modify the following to match your instalation. #CFLAGS += -I/opt/jfisher/local_usr/include/freetype2 -I TraceToolkit-0.9.4/Visualizer CFLAGS += -I/usr/include/freetype2 -I TraceToolkit-0.9.4/Visualizer LDFLAGS += -L/usr/local/lib MPEG2_DIR = ../../BSEAV/lib/mpeg2_ts_parse RRTPROC_CFLAGS = -I $(MPEG2_DIR) CFLAGS += -I./ vpath %.h $(MPEG2_DIR) vpath %.c $(MPEG2_DIR) # # Targets # TARGETS = $(BIN2VERILOG) $(BIN_CHECKSUM) $(BIN2ASC_ARRAY) $(BIN2C) TARGETS += $(BINLOG) $(FONTRIPPER) $(PNGTORAW) $(RRTPROC) all: $(TARGETS) $(RRTPROC): $(RRTPROC_OBJS) $(CC) $(RRTPROC_CFLAGS) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(708PARSE): $(708PARSE_OBJS) $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(BINLOG): $(BINLOG_OBJS) $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(PROC_POST): $(PROC_POST_OBJS) $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(BIN2C): $(BIN2C_OBJS) $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(FONTRIPPER): $(FONTRIPPER_OBJS) $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) -Lfreetype2 -lfreetype $(PNGTORAW): $(PNGTORAW_OBJS) $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) -lpng clean: $(RM) $(TARGETS) *.o *.d *.out %.o: %.c @echo '$(CC) -c $(notdir $<)' @$(CC) $(RRTPROC_CFLAGS) $(CFLAGS) -MMD -c $< -o $@ # include individual depend files -include *.d