source: svn/trunk/newcon3bcm2_21bu/BSEAV/lib/bcmplayer/utils/Makefile

Last change on this file was 2, checked in by phkim, 11 years ago

1.phkim

  1. revision copy newcon3sk r27
  • Property svn:executable set to *
File size: 1.9 KB
Line 
1# Linux makefile
2#
3# The Win32/VisualC++ project can be found in win32 subdir:
4#   Old Comment: SetTop\build\bcm97031rb0\le\visualc\bcmplayerutils
5#
6
7APPS=createindex printindex printts filterts byteswap printsc rmscprevent \
8        printpes mkbtpfile printavc printvc1 muxts btp_generator
9all: $(APPS)
10
11#
12# SetTop tree information
13#
14BSEAV=$(shell cd ../../..; pwd)
15MAGNUM=$(shell cd $(BSEAV)/../magnum; pwd)
16ROCKFORD=$(shell cd $(BSEAV)/../rockford; pwd)
17OS=linuxuser
18ODIR=.
19Q_=@
20
21# need this for CHIP definitions
22include $(BSEAV)/api/include/api.mak
23include $(BSEAV)/api/build/tools.mak
24
25CFLAGS += $(BSETTOP_CFLAGS) $(B_REFSW_MAGNUM_INCLUDE_DIRS)
26LFLAGS += -lpthread
27CFLAGS += -DCMDLINE_TEST
28
29CFLAGS += -I../include -I../src -Wall -I.
30#CFLAGS += -DSTORE_SEQUENCE_END_CODES
31
32include $(BSEAV)/../magnum/basemodules/std/bstd.inc
33include $(BSEAV)/../magnum/basemodules/kni/bkni.inc
34include $(BSEAV)/../magnum/basemodules/dbg/bdbg.inc
35
36CFLAGS += $(addprefix -I,$(BSTD_INCLUDES) $(BKNI_INCLUDES) $(BDBG_INCLUDES))
37
38BCMPLAYER_SRC = \
39        ../src/bcmindexer.c \
40        ../src/bcmindexer_vc1.c \
41        ../src/bcmplayer.c \
42        ../src/bvlc.c
43
44MAGNUM_SRC = \
45        $(BSTD_SOURCES) \
46        $(BKNI_SOURCES) \
47        $(BDBG_SOURCES)
48
49createindex: createindex.c $(BCMPLAYER_SRC) ../src/tsindexer.c $(MAGNUM_SRC)
50        @echo $(CC) -o $@
51        $(Q_)$(CC) -o $@ $^ $(CFLAGS) $(LFLAGS)
52
53printindex: printindex.c $(BCMPLAYER_SRC) $(MAGNUM_SRC)
54        @echo $(CC) -o $@
55        $(Q_)$(CC) -o $@ $^ $(CFLAGS) $(LFLAGS)
56
57mkbtpfile: mkbtpfile.c $(BCMPLAYER_SRC) $(MAGNUM_SRC)
58        @echo $(CC) -o $@
59        $(Q_)$(CC) -o $@ $^ $(CFLAGS) $(LFLAGS)
60
61printavc: printavc.c ../src/bvlc.c ts_utils.c $(MAGNUM_SRC)
62        @echo $(CC) -o $@
63        $(Q_)$(CC) -o $@ $^ $(CFLAGS) $(LFLAGS)
64
65# default is for single-file apps w/ ts_utils
66%: %.c ts_utils.c
67        @echo $(CC) -o $@
68        $(Q_)$(CC) -o $@ $^ $(CFLAGS) $(LFLAGS)
69
70clean:
71        $(RM) $(APPS) *.o
72
73ifeq ($(DESTDIR),)
74install:
75        $(error You must define DESTDIR first)
76else
77install:
78        cp -f $(APPS) $(DESTDIR)
79endif
80
Note: See TracBrowser for help on using the repository browser.