Mercurial > mplayer.hg
annotate vidix/Makefile @ 21221:7124c26f3db3
Add generic target that allow compiling without any assembler or otherwise
architecture specific code (except endiannes of course).
Usage example: ./configure --target=generic-linux
author | reimar |
---|---|
date | Sat, 25 Nov 2006 17:58:33 +0000 |
parents | 68df3b19a160 |
children | 6460b4f44089 |
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 ifneq ($(wildcard .depend),) |
45 include .depend | |
46 endif |