annotate Makefile @ 374:cc3f84df9baf

Makefile.No-DS fixes
author arpi_esp
date Thu, 12 Apr 2001 00:52:22 +0000
parents 828ec81e0d64
children c0d9b0903d92
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
257
0c8dc789b42e DShow is the default now
arpi_esp
parents: 176
diff changeset
1 # DirectShow support (test code)
0c8dc789b42e DShow is the default now
arpi_esp
parents: 176
diff changeset
2 # make -f makefile.DS
0c8dc789b42e DShow is the default now
arpi_esp
parents: 176
diff changeset
3
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
4 # LINUX Makefile made by A'rpi / Astral
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
5 # Some cleanup by LGB: * 'make -C dir' instead of 'cd dir;make;cd..'
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
6 # * for loops instead of linear sequence of make directories
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
7 # * some minor problems with make clean and distclean were corrected
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
8
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
9 include config.mak
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
10
78
8b89201970f6 cp -> install
szabii
parents: 28
diff changeset
11 #install...
8b89201970f6 cp -> install
szabii
parents: 28
diff changeset
12 OWNER = root
8b89201970f6 cp -> install
szabii
parents: 28
diff changeset
13 GROUP = root
8b89201970f6 cp -> install
szabii
parents: 28
diff changeset
14 PERM = 755
8b89201970f6 cp -> install
szabii
parents: 28
diff changeset
15
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
16 PRG = mplayer
118
7c67c52142ed added mplayerHQ
arpi_esp
parents: 78
diff changeset
17 PRG_HQ = mplayerHQ
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
18 PRG_AVIP = aviparse
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
19 PRG_TV = tvision
297
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents: 257
diff changeset
20 PRG_CFG = codec-cfg
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents: 257
diff changeset
21
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
22 prefix = /usr/local
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
23 BINDIR = ${prefix}/bin
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
24 # BINDIR = /usr/local/bin
303
828ec81e0d64 codecs.conf support
arpi_esp
parents: 297
diff changeset
25 SRCS = codec-cfg.c subreader.c linux/getch2.c linux/timer-lx.c linux/shmem.c xa/xa_gsm.c lirc_mp.c cfgparser.c
828ec81e0d64 codecs.conf support
arpi_esp
parents: 297
diff changeset
26 OBJS = codec-cfg.o subreader.o linux/getch2.o linux/timer-lx.o linux/shmem.o xa/xa_gsm.o lirc_mp.o cfgparser.o
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
27 CFLAGS = $(OPTFLAGS) -Iloader -Ilibvo # -Wall
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
28 A_LIBS = -Lmp3lib -lMP3 -Llibac3 -lac3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
29 VO_LIBS = -Llibvo -lvo $(X_LIBS)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
30
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
31 .SUFFIXES: .c .o
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
32
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
33 # .PHONY: all clean
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
34
297
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents: 257
diff changeset
35 all: $(PRG) $(PRG_CFG)
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
36 # $(PRG_AVIP)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
37
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
38 .c.o:
257
0c8dc789b42e DShow is the default now
arpi_esp
parents: 176
diff changeset
39 $(CC) -c $(CFLAGS) -DUSE_DIRECTSHOW -o $@ $<
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
40
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
41 COMMONLIBS = libvo/libvo.a libac3/libac3.a mp3lib/libMP3.a
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
42
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
43 loader/libloader.a:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
44 $(MAKE) -C loader
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
45
257
0c8dc789b42e DShow is the default now
arpi_esp
parents: 176
diff changeset
46 loader/DirectShow/libDS_Filter.a:
0c8dc789b42e DShow is the default now
arpi_esp
parents: 176
diff changeset
47 $(MAKE) -C loader/DirectShow
0c8dc789b42e DShow is the default now
arpi_esp
parents: 176
diff changeset
48
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
49 libmpeg2/libmpeg2.a:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
50 $(MAKE) -C libmpeg2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
51
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
52 libvo/libvo.a:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
53 $(MAKE) -C libvo
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
54
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
55 libac3/libac3.a:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
56 $(MAKE) -C libac3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
57
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
58 mp3lib/libMP3.a:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
59 $(MAKE) -C mp3lib
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
60
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
61 opendivx/libdecore.a:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
62 $(MAKE) -C opendivx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
63
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
64 encore/libencore.a:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
65 $(MAKE) -C encore
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
66
257
0c8dc789b42e DShow is the default now
arpi_esp
parents: 176
diff changeset
67 $(PRG): .depend mplayer.o $(OBJS) loader/libloader.a loader/DirectShow/libDS_Filter.a libmpeg2/libmpeg2.a opendivx/libdecore.a $(COMMONLIBS) encore/libencore.a
0c8dc789b42e DShow is the default now
arpi_esp
parents: 176
diff changeset
68 $(CC) $(CFLAGS) -o $(PRG) mplayer.o $(OBJS) $(XMM_LIBS) $(LIRC_LIBS) $(A_LIBS) -lm $(TERMCAP_LIB) -Lloader -lloader -Lloader/DirectShow -lDS_Filter -ldl -Llibmpeg2 -lmpeg2 -Lopendivx -ldecore $(VO_LIBS) -Lencore -lencore -lpthread -lstdc++
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
69
118
7c67c52142ed added mplayerHQ
arpi_esp
parents: 78
diff changeset
70 $(PRG_HQ): .depend mplayerHQ.o $(OBJS) loader/libloader.a libmpeg2/libmpeg2.a opendivx/libdecore.a $(COMMONLIBS) encore/libencore.a
7c67c52142ed added mplayerHQ
arpi_esp
parents: 78
diff changeset
71 $(CC) $(CFLAGS) -o $(PRG_HQ) mplayerHQ.o $(OBJS) $(XMM_LIBS) $(LIRC_LIBS) $(A_LIBS) -lm $(TERMCAP_LIB) -Lloader -lloader -ldl -Llibmpeg2 -lmpeg2 -Lopendivx -ldecore $(VO_LIBS) -Lencore -lencore -lpthread
7c67c52142ed added mplayerHQ
arpi_esp
parents: 78
diff changeset
72
28
4d38b16372ae New dependency system
arpi_esp
parents: 22
diff changeset
73 $(PRG_AVIP): .depend aviparse.o $(OBJS) loader/libloader.a $(COMMONLIBS)
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
74 $(CC) $(CFLAGS) -o $(PRG_AVIP) aviparse.o $(OBJS) $(A_LIBS) -lm $(TERMCAP_LIB) -Lloader -lloader -ldl $(VO_LIBS) -lpthread
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
75
28
4d38b16372ae New dependency system
arpi_esp
parents: 22
diff changeset
76 $(PRG_TV): .depend tvision.o $(OBJS) $(COMMONLIBS)
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
77 $(CC) $(CFLAGS) -o $(PRG_TV) tvision.o $(OBJS) -lm $(TERMCAP_LIB) $(VO_LIBS)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
78
297
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents: 257
diff changeset
79 $(PRG_CFG): codec-cfg.c codec-cfg.h
303
828ec81e0d64 codecs.conf support
arpi_esp
parents: 297
diff changeset
80 $(CC) $(CFLAGS) -g codec-cfg.c -o $(PRG_CFG) -DTESTING
297
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents: 257
diff changeset
81
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
82 install: $(PRG)
78
8b89201970f6 cp -> install
szabii
parents: 28
diff changeset
83 install -g $(GROUP) -o $(OWNER) -m $(PERM) -s $(PRG) $(BINDIR)
22
4babbd564f1c added install patch by Dariusz Pietrzak
arpi_esp
parents: 1
diff changeset
84 install -D -m 644 DOCS/mplayer.1 $(prefix)/man/man1/mplayer.1
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
85
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
86 clean:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
87 rm -f *.o *~ $(OBJS)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
88
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
89 distclean:
257
0c8dc789b42e DShow is the default now
arpi_esp
parents: 176
diff changeset
90 @for a in mp3lib libac3 libmpeg2 opendivx encore libvo loader loader/DirectShow drivers drivers/syncfb ; do $(MAKE) -C $$a distclean ; done
118
7c67c52142ed added mplayerHQ
arpi_esp
parents: 78
diff changeset
91 rm -f *~ $(PRG) $(PRG_HQ) $(PRG_AVIP) $(PRG_TV) $(OBJS) *.o *.a .depend
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
92
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
93 dep: depend
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
94
28
4d38b16372ae New dependency system
arpi_esp
parents: 22
diff changeset
95 depend: .depend
257
0c8dc789b42e DShow is the default now
arpi_esp
parents: 176
diff changeset
96 @for a in mp3lib libac3 libmpeg2 libvo opendivx encore loader/DirectShow ; do $(MAKE) -C $$a dep ; done
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
97
28
4d38b16372ae New dependency system
arpi_esp
parents: 22
diff changeset
98 .depend: Makefile config.mak config.h
118
7c67c52142ed added mplayerHQ
arpi_esp
parents: 78
diff changeset
99 makedepend -f- -- $(CFLAGS) -- mplayer.c mplayerHQ.c aviparse.c tvision.c $(SRCS) 1>.depend 2>/dev/null
22
4babbd564f1c added install patch by Dariusz Pietrzak
arpi_esp
parents: 1
diff changeset
100
28
4d38b16372ae New dependency system
arpi_esp
parents: 22
diff changeset
101 #
4d38b16372ae New dependency system
arpi_esp
parents: 22
diff changeset
102 # include dependency files if they exist
4d38b16372ae New dependency system
arpi_esp
parents: 22
diff changeset
103 #
4d38b16372ae New dependency system
arpi_esp
parents: 22
diff changeset
104 ifneq ($(wildcard .depend),)
4d38b16372ae New dependency system
arpi_esp
parents: 22
diff changeset
105 include .depend
4d38b16372ae New dependency system
arpi_esp
parents: 22
diff changeset
106 endif