Mercurial > mplayer.hg
annotate vidix/Makefile @ 20780:e8cd0590bf97
dts, width/height explanation
author | michael |
---|---|
date | Wed, 08 Nov 2006 19:04:48 +0000 |
parents | ac071d4aafd2 |
children | 618d1857f4c4 |
rev | line source |
---|---|
3991 | 1 LIBNAME = libvidix.a |
2 | |
3 include ../config.mak | |
4 | |
5 SRCS = vidixlib.c | |
6 OBJS = $(SRCS:.c=.o) | |
7 | |
7073
b69ddd4d3bb9
removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents:
4030
diff
changeset
|
8 CFLAGS = $(OPTFLAGS) |
3991 | 9 |
10 .SUFFIXES: .c .o | |
11 | |
12 # .PHONY: all clean | |
13 | |
14 .c.o: | |
15 $(CC) -c $(CFLAGS) -o $@ $< | |
16 | |
17958
ac071d4aafd2
Don't call make from shell constructs it prevent proper
albeu
parents:
17488
diff
changeset
|
17 all: $(SUBDIRS) $(LIBNAME) do_drivers |
ac071d4aafd2
Don't call make from shell constructs it prevent proper
albeu
parents:
17488
diff
changeset
|
18 |
ac071d4aafd2
Don't call make from shell constructs it prevent proper
albeu
parents:
17488
diff
changeset
|
19 do_drivers: |
ac071d4aafd2
Don't call make from shell constructs it prevent proper
albeu
parents:
17488
diff
changeset
|
20 $(MAKE) -C drivers |
4030 | 21 |
3991 | 22 $(LIBNAME): $(OBJS) |
23 $(AR) r $(LIBNAME) $(OBJS) | |
12632 | 24 $(RANLIB) $(LIBNAME) |
3991 | 25 |
26 clean: | |
27 rm -f *.o *.a *~ | |
17958
ac071d4aafd2
Don't call make from shell constructs it prevent proper
albeu
parents:
17488
diff
changeset
|
28 $(MAKE) -C drivers clean |
3991 | 29 |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
13702
diff
changeset
|
30 distclean: clean |
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
13702
diff
changeset
|
31 rm -f .depend test |
17958
ac071d4aafd2
Don't call make from shell constructs it prevent proper
albeu
parents:
17488
diff
changeset
|
32 $(MAKE) -C drivers distclean |
3991 | 33 |
34 dep: depend | |
17958
ac071d4aafd2
Don't call make from shell constructs it prevent proper
albeu
parents:
17488
diff
changeset
|
35 $(MAKE) -C drivers dep |
3991 | 36 |
37 depend: | |
38 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
39 | |
4030 | 40 install: |
17958
ac071d4aafd2
Don't call make from shell constructs it prevent proper
albeu
parents:
17488
diff
changeset
|
41 $(MAKE) -C drivers install |
4030 | 42 |
13702
3c6a2b6437df
make uninstall was leaving vidix, dha, and libmpdvdkit libraries
wight
parents:
12632
diff
changeset
|
43 uninstall: |
17958
ac071d4aafd2
Don't call make from shell constructs it prevent proper
albeu
parents:
17488
diff
changeset
|
44 $(MAKE) -C drivers uninstall |
13702
3c6a2b6437df
make uninstall was leaving vidix, dha, and libmpdvdkit libraries
wight
parents:
12632
diff
changeset
|
45 |
3991 | 46 # |
47 # include dependency files if they exist | |
48 # | |
49 ifneq ($(wildcard .depend),) | |
50 include .depend | |
51 endif |