comparison loader/Makefile @ 21185:0c866f72b921

Make loader Makefile non-recursive.
author diego
date Sat, 25 Nov 2006 00:31:07 +0000
parents 32a571ec877d
children 68df3b19a160
comparison
equal deleted inserted replaced
21184:32a571ec877d 21185:0c866f72b921
1 include ../config.mak 1 include ../config.mak
2 2
3 CFLAGS=-I. -I.. -DMPLAYER -D__WINE__ $(OPTFLAGS) 3 CFLAGS=-I. -I.. -Idshow -DMPLAYER -D__WINE__ -DNOAVIFILE_HEADERS $(OPTFLAGS)
4 #CFLAGS+=-Ddbg_printf=__vprintf -DTRACE=__vprintf -DDETAILED_OUT 4 #CFLAGS+=-Ddbg_printf=__vprintf -DTRACE=__vprintf -DDETAILED_OUT
5 5
6 SRCS= driver.c afl.c vfl.c 6 SRCS= driver.c afl.c vfl.c
7 ifneq ($(TARGET_WIN32),yes) 7 ifneq ($(TARGET_WIN32),yes)
8 SRCS+= ldt_keeper.c pe_image.c module.c ext.c win32.c \ 8 SRCS+= ldt_keeper.c pe_image.c module.c ext.c win32.c \
9 pe_resource.c resource.c registry.c elfdll.c wrapper.S stubs.s 9 pe_resource.c resource.c registry.c elfdll.c wrapper.S stubs.s
10 endif 10 endif
11 11
12 OBJS = $(SRCS:.c=.o) 12 SRCS+= dshow/DS_AudioDecoder.c \
13 dshow/DS_Filter.c \
14 dshow/DS_VideoDecoder.c \
15 dshow/allocator.c \
16 dshow/cmediasample.c \
17 dshow/guids.c \
18 dshow/inputpin.c \
19 dshow/outputpin.c \
20 dmo/DMO_AudioDecoder.c \
21 dmo/DMO_VideoDecoder.c \
22 dmo/buffer.c \
23 dmo/dmo.c \
24 dmo/dmo_guids.c \
25
26 OBJS = $(SRCS:.c=.o)
13 OBJS := $(OBJS:.S=.o) 27 OBJS := $(OBJS:.S=.o)
14 OBJS := $(OBJS:.s=.o) 28 OBJS := $(OBJS:.s=.o)
15 29
16 all: libloader.a 30 all: libloader.a
17 31
18 libloader.a: $(OBJS) 32 libloader.a: $(OBJS)
19 $(AR) -r $@ $^ 33 $(AR) -r $@ $^
20 $(RANLIB) $@ 34 $(RANLIB) $@
21 35
36 dshow/test: libloader.a
37 $(CC) dshow/test.c $(CFLAGS) -o $@ $^ -lstdc++
38
22 clean: 39 clean:
23 rm -f *.o *.a *~ 40 rm -f *.o *.a *~
41 rm -f dshow/*.o dshow/*.a dshow/*~
42 rm -f dmo/*.o dmo/*.a dmo/*~
24 43
25 distclean: clean 44 distclean: clean
26 rm -f .depend 45 rm -f .depend
46 rm -f dshow/.depend dshow/test dshow/test.raw
47 rm -f dmo/.depend
27 48
28 dep depend: 49 dep depend:
29 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend 50 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
30 51
31 # 52 #