comparison loader/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 f9014ec91226
children efc774a1e5a4
comparison
equal deleted inserted replaced
21258:ed01090d1192 21259:92b122592776
1 include ../config.mak 1 include ../config.mak
2 2
3 CFLAGS=-I. -I.. -Idshow -DMPLAYER -D__WINE__ -DNOAVIFILE_HEADERS $(OPTFLAGS) 3 LIBNAME = libloader.a
4
5 CFLAGS= -Idshow -DMPLAYER -D__WINE__ -DNOAVIFILE_HEADERS
4 #CFLAGS+=-Ddbg_printf=__vprintf -DTRACE=__vprintf -DDETAILED_OUT 6 #CFLAGS+=-Ddbg_printf=__vprintf -DTRACE=__vprintf -DDETAILED_OUT
5 7
6 SRCS= driver.c afl.c vfl.c 8 SRCS= driver.c afl.c vfl.c
7 ifneq ($(TARGET_WIN32),yes) 9 ifneq ($(TARGET_WIN32),yes)
8 SRCS+= ldt_keeper.c pe_image.c module.c ext.c win32.c \ 10 SRCS+= ldt_keeper.c pe_image.c module.c ext.c win32.c \
21 dmo/DMO_VideoDecoder.c \ 23 dmo/DMO_VideoDecoder.c \
22 dmo/buffer.c \ 24 dmo/buffer.c \
23 dmo/dmo.c \ 25 dmo/dmo.c \
24 dmo/dmo_guids.c \ 26 dmo/dmo_guids.c \
25 27
26 OBJS = $(SRCS:.c=.o) 28 include ../mpcommon.mak
27 OBJS := $(OBJS:.S=.o)
28 OBJS := $(OBJS:.s=.o)
29
30 all: libloader.a
31
32 libloader.a: $(OBJS)
33 $(AR) -r $@ $^
34 $(RANLIB) $@
35 29
36 dshow/test: libloader.a 30 dshow/test: libloader.a
37 $(CC) dshow/test.c $(CFLAGS) -o $@ $^ -lstdc++ 31 $(CC) dshow/test.c $(CFLAGS) -o $@ $^ -lstdc++
38 32
39 clean: 33 clean::
40 rm -f *.o *.a *~
41 rm -f dshow/*.o dshow/*.a dshow/*~ 34 rm -f dshow/*.o dshow/*.a dshow/*~
42 rm -f dmo/*.o dmo/*.a dmo/*~ 35 rm -f dmo/*.o dmo/*.a dmo/*~
43 36
44 distclean: clean 37 distclean::
45 rm -f .depend
46 rm -f dshow/test dshow/test.raw 38 rm -f dshow/test dshow/test.raw
47
48 dep depend:
49 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
50
51 ifneq ($(wildcard .depend),)
52 include .depend
53 endif