Mercurial > mplayer.hg
annotate vidix/Makefile @ 21925:1c93736b6751
fix identation, broken by last commit
author | gpoirier |
---|---|
date | Tue, 16 Jan 2007 13:28:22 +0000 |
parents | 6460b4f44089 |
children | 909e1e707dc5 |
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 | |
21188 | 17 all: $(LIBNAME) do_drivers |
17958
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 |
21080 | 34 dep depend: |
3991 | 35 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
21080 | 36 $(MAKE) -C drivers depend |
3991 | 37 |
38 ifneq ($(wildcard .depend),) | |
39 include .depend | |
40 endif |