Mercurial > mplayer.hg
annotate vidix/Makefile @ 22545:effb4c7d9c1a
Simplify library generation rule.
author | diego |
---|---|
date | Wed, 14 Mar 2007 08:43:30 +0000 |
parents | 22aee0fa42a4 |
children | 322fed4ddef2 |
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 |
22544 | 10 all: $(LIBNAME) |
17958
ac071d4aafd2
Don't call make from shell constructs it prevent proper
albeu
parents:
17488
diff
changeset
|
11 $(MAKE) -C drivers |
4030 | 12 |
3991 | 13 $(LIBNAME): $(OBJS) |
22545 | 14 $(AR) r $@ $^ |
15 $(RANLIB) $@ | |
3991 | 16 |
17 clean: | |
18 rm -f *.o *.a *~ | |
17958
ac071d4aafd2
Don't call make from shell constructs it prevent proper
albeu
parents:
17488
diff
changeset
|
19 $(MAKE) -C drivers clean |
3991 | 20 |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
13702
diff
changeset
|
21 distclean: clean |
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
13702
diff
changeset
|
22 rm -f .depend test |
17958
ac071d4aafd2
Don't call make from shell constructs it prevent proper
albeu
parents:
17488
diff
changeset
|
23 $(MAKE) -C drivers distclean |
3991 | 24 |
21080 | 25 dep depend: |
3991 | 26 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
21080 | 27 $(MAKE) -C drivers depend |
3991 | 28 |
22342 | 29 -include .depend |