Mercurial > mplayer.hg
comparison common.mak @ 26185:35f930b141ad
sync with FFmpeg r12398
author | diego |
---|---|
date | Mon, 10 Mar 2008 19:43:07 +0000 |
parents | ba3e34112e47 |
children | 84e71e0a0546 |
comparison
equal
deleted
inserted
replaced
26184:7ee4ae1648e6 | 26185:35f930b141ad |
---|---|
1 # | 1 # |
2 # common bits used by all libraries | 2 # common bits used by all libraries |
3 # | 3 # |
4 | 4 |
5 LIBSRC = $(SRC_PATH_BARE)/lib$(NAME) | 5 LIBSRC = $(SRC_PATH_BARE)/lib$(NAME) |
6 | |
7 LIBVERSION = $(lib$(NAME)_VERSION) | |
8 LIBMAJOR = $(lib$(NAME)_VERSION_MAJOR) | |
6 | 9 |
7 vpath %.c $(LIBSRC) | 10 vpath %.c $(LIBSRC) |
8 vpath %.h $(LIBSRC) | 11 vpath %.h $(LIBSRC) |
9 vpath %.S $(LIBSRC) | 12 vpath %.S $(LIBSRC) |
10 | 13 |
56 $(CC) $(CFLAGS) $(LIBOBJFLAGS) -Wno-unused -c -o $@ -x c $< | 59 $(CC) $(CFLAGS) $(LIBOBJFLAGS) -Wno-unused -c -o $@ -x c $< |
57 | 60 |
58 ALLHEADERS = $(subst $(LIBSRC)/,,$(wildcard $(LIBSRC)/*.h)) | 61 ALLHEADERS = $(subst $(LIBSRC)/,,$(wildcard $(LIBSRC)/*.h)) |
59 checkheaders: $(filter-out %_template.ho,$(ALLHEADERS:.h=.ho)) | 62 checkheaders: $(filter-out %_template.ho,$(ALLHEADERS:.h=.ho)) |
60 | 63 |
64 # gcc stupidly only outputs the basename of targets with -MM | |
61 depend dep: $(SRCS) | 65 depend dep: $(SRCS) |
62 $(CC) -MM $(CFLAGS) $^ 1>.depend | 66 $(CC) -MM $(CFLAGS) $^ | sed 's,[0-9a-z._-]*: \([a-z0-9]*/\).*,\1&,' 1>.depend |
63 | 67 |
64 clean:: | 68 clean:: |
65 rm -f *.o *~ *.a *.lib *.so *.so.* *.dylib *.dll \ | 69 rm -f *.o *~ *.a *.lib *.so *.so.* *.dylib *.dll \ |
66 *.def *.dll.a *.exp *.ho *.map $(TESTS) | 70 *.def *.dll.a *.exp *.ho *.map $(TESTS) |
67 | 71 |