annotate Makefile @ 288:abe56b2561b1

bpp fix
author arpi_esp
date Thu, 05 Apr 2001 19:44:54 +0000
parents 0c8dc789b42e
children 9b00ddddc0b2
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
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
20 prefix = /usr/local
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
21 BINDIR = ${prefix}/bin
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
22 # BINDIR = /usr/local/bin
257
0c8dc789b42e DShow is the default now
arpi_esp
parents: 176
diff changeset
23 SRCS = subreader.c linux/getch2.c linux/timer-lx.c linux/shmem.c xa/xa_gsm.c lirc_mp.c cfgparser.c
0c8dc789b42e DShow is the default now
arpi_esp
parents: 176
diff changeset
24 OBJS = 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
25 CFLAGS = $(OPTFLAGS) -Iloader -Ilibvo # -Wall
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
26 A_LIBS = -Lmp3lib -lMP3 -Llibac3 -lac3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
27 VO_LIBS = -Llibvo -lvo $(X_LIBS)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
28
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
29 .SUFFIXES: .c .o
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
30
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
31 # .PHONY: all clean
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
32
176
bcf0d6286b5c disabled compiling mplayerHQ by default
arpi_esp
parents: 154
diff changeset
33 all: $(PRG)
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
34 # $(PRG_AVIP)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
35
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
36 .c.o:
257
0c8dc789b42e DShow is the default now
arpi_esp
parents: 176
diff changeset
37 $(CC) -c $(CFLAGS) -DUSE_DIRECTSHOW -o $@ $<
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
38
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
39 COMMONLIBS = libvo/libvo.a libac3/libac3.a mp3lib/libMP3.a
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
40
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
41 loader/libloader.a:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
42 $(MAKE) -C loader
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
43
257
0c8dc789b42e DShow is the default now
arpi_esp
parents: 176
diff changeset
44 loader/DirectShow/libDS_Filter.a:
0c8dc789b42e DShow is the default now
arpi_esp
parents: 176
diff changeset
45 $(MAKE) -C loader/DirectShow
0c8dc789b42e DShow is the default now
arpi_esp
parents: 176
diff changeset
46
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
47 libmpeg2/libmpeg2.a:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
48 $(MAKE) -C libmpeg2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
49
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
50 libvo/libvo.a:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
51 $(MAKE) -C libvo
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
52
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
53 libac3/libac3.a:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
54 $(MAKE) -C libac3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
55
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
56 mp3lib/libMP3.a:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
57 $(MAKE) -C mp3lib
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
58
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
59 opendivx/libdecore.a:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
60 $(MAKE) -C opendivx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
61
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
62 encore/libencore.a:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
63 $(MAKE) -C encore
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
64
257
0c8dc789b42e DShow is the default now
arpi_esp
parents: 176
diff changeset
65 $(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
66 $(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
67
118
7c67c52142ed added mplayerHQ
arpi_esp
parents: 78
diff changeset
68 $(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
69 $(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
70
28
4d38b16372ae New dependency system
arpi_esp
parents: 22
diff changeset
71 $(PRG_AVIP): .depend aviparse.o $(OBJS) loader/libloader.a $(COMMONLIBS)
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
72 $(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
73
28
4d38b16372ae New dependency system
arpi_esp
parents: 22
diff changeset
74 $(PRG_TV): .depend tvision.o $(OBJS) $(COMMONLIBS)
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
75 $(CC) $(CFLAGS) -o $(PRG_TV) tvision.o $(OBJS) -lm $(TERMCAP_LIB) $(VO_LIBS)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
76
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
77 install: $(PRG)
78
8b89201970f6 cp -> install
szabii
parents: 28
diff changeset
78 install -g $(GROUP) -o $(OWNER) -m $(PERM) -s $(PRG) $(BINDIR)
22
4babbd564f1c added install patch by Dariusz Pietrzak
arpi_esp
parents: 1
diff changeset
79 install -D -m 644 DOCS/mplayer.1 $(prefix)/man/man1/mplayer.1
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
80
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
81 clean:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
82 rm -f *.o *~ $(OBJS)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
83
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
84 distclean:
257
0c8dc789b42e DShow is the default now
arpi_esp
parents: 176
diff changeset
85 @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
86 rm -f *~ $(PRG) $(PRG_HQ) $(PRG_AVIP) $(PRG_TV) $(OBJS) *.o *.a .depend
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
87
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
88 dep: depend
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
89
28
4d38b16372ae New dependency system
arpi_esp
parents: 22
diff changeset
90 depend: .depend
257
0c8dc789b42e DShow is the default now
arpi_esp
parents: 176
diff changeset
91 @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
92
28
4d38b16372ae New dependency system
arpi_esp
parents: 22
diff changeset
93 .depend: Makefile config.mak config.h
118
7c67c52142ed added mplayerHQ
arpi_esp
parents: 78
diff changeset
94 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
95
28
4d38b16372ae New dependency system
arpi_esp
parents: 22
diff changeset
96 #
4d38b16372ae New dependency system
arpi_esp
parents: 22
diff changeset
97 # include dependency files if they exist
4d38b16372ae New dependency system
arpi_esp
parents: 22
diff changeset
98 #
4d38b16372ae New dependency system
arpi_esp
parents: 22
diff changeset
99 ifneq ($(wildcard .depend),)
4d38b16372ae New dependency system
arpi_esp
parents: 22
diff changeset
100 include .depend
4d38b16372ae New dependency system
arpi_esp
parents: 22
diff changeset
101 endif