Mercurial > mplayer.hg
comparison vidix/Makefile @ 17958:ac071d4aafd2
Don't call make from shell constructs it prevent proper
build paralelization.
author | albeu |
---|---|
date | Sun, 26 Mar 2006 10:52:13 +0000 |
parents | ce1ba8fd57e7 |
children | 618d1857f4c4 |
comparison
equal
deleted
inserted
replaced
17957:adffed192053 | 17958:ac071d4aafd2 |
---|---|
1 LIBNAME = libvidix.a | 1 LIBNAME = libvidix.a |
2 SUBDIRS = drivers | |
3 DO_MAKE = @ for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done | |
4 | 2 |
5 include ../config.mak | 3 include ../config.mak |
6 | 4 |
7 SRCS = vidixlib.c | 5 SRCS = vidixlib.c |
8 OBJS = $(SRCS:.c=.o) | 6 OBJS = $(SRCS:.c=.o) |
14 # .PHONY: all clean | 12 # .PHONY: all clean |
15 | 13 |
16 .c.o: | 14 .c.o: |
17 $(CC) -c $(CFLAGS) -o $@ $< | 15 $(CC) -c $(CFLAGS) -o $@ $< |
18 | 16 |
19 all: $(SUBDIRS) $(LIBNAME) | 17 all: $(SUBDIRS) $(LIBNAME) do_drivers |
20 $(DO_MAKE) | 18 |
19 do_drivers: | |
20 $(MAKE) -C drivers | |
21 | 21 |
22 $(LIBNAME): $(OBJS) | 22 $(LIBNAME): $(OBJS) |
23 $(AR) r $(LIBNAME) $(OBJS) | 23 $(AR) r $(LIBNAME) $(OBJS) |
24 $(RANLIB) $(LIBNAME) | 24 $(RANLIB) $(LIBNAME) |
25 | 25 |
26 clean: | 26 clean: |
27 rm -f *.o *.a *~ | 27 rm -f *.o *.a *~ |
28 $(DO_MAKE) | 28 $(MAKE) -C drivers clean |
29 | 29 |
30 distclean: clean | 30 distclean: clean |
31 rm -f .depend test | 31 rm -f .depend test |
32 $(DO_MAKE) | 32 $(MAKE) -C drivers distclean |
33 | 33 |
34 dep: depend | 34 dep: depend |
35 $(DO_MAKE) | 35 $(MAKE) -C drivers dep |
36 | 36 |
37 depend: | 37 depend: |
38 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | 38 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
39 | 39 |
40 install: | 40 install: |
41 $(DO_MAKE) | 41 $(MAKE) -C drivers install |
42 | 42 |
43 uninstall: | 43 uninstall: |
44 $(DO_MAKE) | 44 $(MAKE) -C drivers uninstall |
45 | 45 |
46 # | 46 # |
47 # include dependency files if they exist | 47 # include dependency files if they exist |
48 # | 48 # |
49 ifneq ($(wildcard .depend),) | 49 ifneq ($(wildcard .depend),) |