annotate Makefile.No-DS @ 300:df3f7a25584c

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