annotate Makefile @ 1:3b5f5d1c5041

Initial revision
author arpi_esp
date Sat, 24 Feb 2001 20:28:24 +0000
parents
children 4babbd564f1c
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
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
8 PRG = mplayer
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
9 PRG_AVIP = aviparse
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
10 PRG_TV = tvision
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
11 prefix = /usr/local
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
12 BINDIR = ${prefix}/bin
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
13 # BINDIR = /usr/local/bin
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
14 SRCS = linux/getch2.c linux/timer-lx.c linux/shmem.c xa/xa_gsm.c lirc_mp.c
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
15 OBJS = linux/getch2.o linux/timer-lx.o linux/shmem.o xa/xa_gsm.o lirc_mp.o
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
16 CFLAGS = $(OPTFLAGS) -Iloader -Ilibvo # -Wall
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
17 A_LIBS = -Lmp3lib -lMP3 -Llibac3 -lac3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
18 VO_LIBS = -Llibvo -lvo $(X_LIBS)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
19
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
20 .SUFFIXES: .c .o
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
21
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
22 # .PHONY: all clean
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
23
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
24 all: $(PRG)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
25 # $(PRG_AVIP)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
26
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
27 .c.o:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
28 $(CC) -c $(CFLAGS) -o $@ $<
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
29
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
30 COMMONLIBS = libvo/libvo.a libac3/libac3.a mp3lib/libMP3.a
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
31
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
32 loader/libloader.a:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
33 $(MAKE) -C loader
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
34
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
35 libmpeg2/libmpeg2.a:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
36 $(MAKE) -C libmpeg2
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
37
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
38 libvo/libvo.a:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
39 $(MAKE) -C libvo
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
40
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
41 libac3/libac3.a:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
42 $(MAKE) -C libac3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
43
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
44 mp3lib/libMP3.a:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
45 $(MAKE) -C mp3lib
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
46
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
47 opendivx/libdecore.a:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
48 $(MAKE) -C opendivx
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
49
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
50 encore/libencore.a:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
51 $(MAKE) -C encore
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
52
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
53 $(PRG): mplayer.o $(OBJS) loader/libloader.a libmpeg2/libmpeg2.a opendivx/libdecore.a $(COMMONLIBS) encore/libencore.a
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
54 $(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
55
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
56 $(PRG_AVIP): aviparse.o $(OBJS) loader/libloader.a $(COMMONLIBS)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
57 $(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
58
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
59 $(PRG_TV): tvision.o $(OBJS) $(COMMONLIBS)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
60 $(CC) $(CFLAGS) -o $(PRG_TV) tvision.o $(OBJS) -lm $(TERMCAP_LIB) $(VO_LIBS)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
61
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
62 install: $(PRG)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
63 strip $(PRG)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
64 cp $(PRG) $(BINDIR)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
65 install -m 644 DOCS/mplayer.1 $(prefix)/man/man1/mplayer.1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
66
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
67 clean:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
68 rm -f *.o *~ $(OBJS)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
69
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
70 distclean:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
71 @for a in mp3lib libac3 libmpeg2 opendivx encore libvo loader drivers drivers/syncfb ; do $(MAKE) -C $$a distclean ; done
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
72 makedepend
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
73 rm -f *~ $(PRG) $(PRG_AVIP) $(PRG_TV) $(OBJS) *.o *.a Makefile.bak
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
74
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
75 dep: depend
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
76
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
77 depend:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
78 @for a in mp3lib libac3 libmpeg2 libvo opendivx encore ; do $(MAKE) -C $$a dep ; done
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
79 # cd loader;make dep;cd ..
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
80 makedepend -- $(CFLAGS) -- mplayer.c aviparse.c tvision.c $(SRCS) &>/dev/null
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
81
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
82 # DO NOT DELETE