Mercurial > mplayer.hg
comparison libvo/Makefile @ 21259:92b122592776
Merge common parts of all Makefiles into one file included by all.
author | diego |
---|---|
date | Sun, 26 Nov 2006 18:12:36 +0000 |
parents | 36046375aacd |
children | a396402b091b |
comparison
equal
deleted
inserted
replaced
21258:ed01090d1192 | 21259:92b122592776 |
---|---|
44 | 44 |
45 ifeq ($(EXTERNAL_VIDIX),yes) | 45 ifeq ($(EXTERNAL_VIDIX),yes) |
46 SRCS += vosub_vidix.c | 46 SRCS += vosub_vidix.c |
47 endif | 47 endif |
48 | 48 |
49 INCLUDE = -I. -I.. -I../osdep $(LIBAV_INC) | 49 CFLAGS = -I.. -I../osdep $(LIBAV_INC) |
50 CFLAGS = $(INCLUDE) $(OPTFLAGS) | |
51 | 50 |
52 #CFLAGS += -Wall | 51 include ../mpcommon.mak |
53 | |
54 .SUFFIXES: .c .o .m | |
55 | |
56 # .PHONY: all clean | |
57 | |
58 .c.o: | |
59 $(CC) -c $(CFLAGS) -o $@ $< | |
60 | 52 |
61 .m.o: | 53 .m.o: |
62 $(CC) -c $(CFLAGS) -o $@ $< | 54 $(CC) -c $(CFLAGS) -o $@ $< |
63 | 55 |
64 all: $(LIBS) | 56 all: $(LIBS) |
65 | 57 |
66 $(LIBNAME): $(OBJS) | |
67 $(AR) r $@ $^ | |
68 $(RANLIB) $@ | |
69 | |
70 $(LIBNAME2): $(OBJS2) | 58 $(LIBNAME2): $(OBJS2) |
71 $(AR) r $@ $^ | 59 $(AR) r $@ $^ |
72 $(RANLIB) $@ | 60 $(RANLIB) $@ |
73 | |
74 clean: | |
75 rm -f *.o *.a *~ | |
76 | |
77 distclean: clean | |
78 rm -f .depend | |
79 | |
80 dep depend: | |
81 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend | |
82 | |
83 ifneq ($(wildcard .depend),) | |
84 include .depend | |
85 endif |