Mercurial > mplayer.hg
annotate vidix/Makefile @ 21201:2c1b7fe05973
Avoid void * arithmetic
author | reimar |
---|---|
date | Sat, 25 Nov 2006 13:34:55 +0000 |
parents | 4906844e35c8 |
children | 68df3b19a160 |
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 |
4030 | 38 install: |
17958
ac071d4aafd2
Don't call make from shell constructs it prevent proper
albeu
parents:
17488
diff
changeset
|
39 $(MAKE) -C drivers install |
4030 | 40 |
13702
3c6a2b6437df
make uninstall was leaving vidix, dha, and libmpdvdkit libraries
wight
parents:
12632
diff
changeset
|
41 uninstall: |
17958
ac071d4aafd2
Don't call make from shell constructs it prevent proper
albeu
parents:
17488
diff
changeset
|
42 $(MAKE) -C drivers uninstall |
13702
3c6a2b6437df
make uninstall was leaving vidix, dha, and libmpdvdkit libraries
wight
parents:
12632
diff
changeset
|
43 |
3991 | 44 # |
45 # include dependency files if they exist | |
46 # | |
47 ifneq ($(wildcard .depend),) | |
48 include .depend | |
49 endif |