Mercurial > mplayer.hg
comparison vidix/Makefile @ 4030:922241968c63
Embedding vidix
author | nick |
---|---|
date | Mon, 07 Jan 2002 09:28:22 +0000 |
parents | dcc632dd2097 |
children | b69ddd4d3bb9 |
comparison
equal
deleted
inserted
replaced
4029:3c87dee7a324 | 4030:922241968c63 |
---|---|
1 | |
2 LIBNAME = libvidix.a | 1 LIBNAME = libvidix.a |
2 SUBDIRS = drivers | |
3 DO_MAKE = @ for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done | |
3 | 4 |
4 include ../config.mak | 5 include ../config.mak |
5 | 6 |
6 SRCS = vidixlib.c | 7 SRCS = vidixlib.c |
7 OBJS = $(SRCS:.c=.o) | 8 OBJS = $(SRCS:.c=.o) |
13 # .PHONY: all clean | 14 # .PHONY: all clean |
14 | 15 |
15 .c.o: | 16 .c.o: |
16 $(CC) -c $(CFLAGS) -o $@ $< | 17 $(CC) -c $(CFLAGS) -o $@ $< |
17 | 18 |
19 all: $(SUBDIRS) $(LIBNAME) | |
20 $(DO_MAKE) | |
21 | |
18 $(LIBNAME): $(OBJS) | 22 $(LIBNAME): $(OBJS) |
19 $(AR) r $(LIBNAME) $(OBJS) | 23 $(AR) r $(LIBNAME) $(OBJS) |
20 | 24 |
21 all: $(LIBNAME) | |
22 | 25 |
23 clean: | 26 clean: |
24 rm -f *.o *.a *~ | 27 rm -f *.o *.a *~ |
28 $(DO_MAKE) | |
25 | 29 |
26 distclean: | 30 distclean: |
27 rm -f test *.o *.a *~ .depend | 31 rm -f test *.o *.a *~ .depend |
32 $(DO_MAKE) | |
28 | 33 |
29 dep: depend | 34 dep: depend |
35 $(DO_MAKE) | |
30 | 36 |
31 depend: | 37 depend: |
32 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | 38 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
39 | |
40 install: | |
41 $(DO_MAKE) | |
33 | 42 |
34 # | 43 # |
35 # include dependency files if they exist | 44 # include dependency files if they exist |
36 # | 45 # |
37 ifneq ($(wildcard .depend),) | 46 ifneq ($(wildcard .depend),) |