annotate Makefile @ 236:a2c9731b2e01

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