Mercurial > mplayer.hg
annotate loader/Makefile @ 26117:60496a1d9e98
Move decision about whether or not to compile Windows emulation
infrastructure to configure.
author | diego |
---|---|
date | Mon, 03 Mar 2008 18:12:05 +0000 |
parents | 5306b54354c4 |
children | 468db9b6860c |
rev | line source |
---|---|
1 | 1 include ../config.mak |
2 | |
22528
8bcff5c7e387
Give more descriptive names to the source and library variables and split
diego
parents:
22305
diff
changeset
|
3 LIBNAME_COMMON = libloader.a |
21259
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
21218
diff
changeset
|
4 |
21178 | 5 #CFLAGS+=-Ddbg_printf=__vprintf -DTRACE=__vprintf -DDETAILED_OUT |
21169
8a017ed1c615
Remove bug workarounds for ancient gcc and libc versions.
diego
parents:
20835
diff
changeset
|
6 |
22528
8bcff5c7e387
Give more descriptive names to the source and library variables and split
diego
parents:
22305
diff
changeset
|
7 SRCS_COMMON = driver.c afl.c vfl.c |
26117
60496a1d9e98
Move decision about whether or not to compile Windows emulation
diego
parents:
26116
diff
changeset
|
8 SRCS_COMMON-$(WIN32_EMULATION) += ldt_keeper.c pe_image.c module.c ext.c win32.c \ |
22531
090ec2169aee
cosmetics: Fix indentation, reorder some lines for consistency.
diego
parents:
22528
diff
changeset
|
9 pe_resource.c resource.c registry.c elfdll.c |
26116
5306b54354c4
Move decision about whether or not to compile wrapper.S to configure.
diego
parents:
26115
diff
changeset
|
10 SRCS_COMMON-$(QTX_EMULATION) += wrapper.S |
1 | 11 |
22528
8bcff5c7e387
Give more descriptive names to the source and library variables and split
diego
parents:
22305
diff
changeset
|
12 SRCS_COMMON += dshow/DS_AudioDecoder.c \ |
22531
090ec2169aee
cosmetics: Fix indentation, reorder some lines for consistency.
diego
parents:
22528
diff
changeset
|
13 dshow/DS_Filter.c \ |
090ec2169aee
cosmetics: Fix indentation, reorder some lines for consistency.
diego
parents:
22528
diff
changeset
|
14 dshow/DS_VideoDecoder.c \ |
090ec2169aee
cosmetics: Fix indentation, reorder some lines for consistency.
diego
parents:
22528
diff
changeset
|
15 dshow/allocator.c \ |
090ec2169aee
cosmetics: Fix indentation, reorder some lines for consistency.
diego
parents:
22528
diff
changeset
|
16 dshow/mediatype.c \ |
090ec2169aee
cosmetics: Fix indentation, reorder some lines for consistency.
diego
parents:
22528
diff
changeset
|
17 dshow/cmediasample.c \ |
090ec2169aee
cosmetics: Fix indentation, reorder some lines for consistency.
diego
parents:
22528
diff
changeset
|
18 dshow/guids.c \ |
090ec2169aee
cosmetics: Fix indentation, reorder some lines for consistency.
diego
parents:
22528
diff
changeset
|
19 dshow/inputpin.c \ |
090ec2169aee
cosmetics: Fix indentation, reorder some lines for consistency.
diego
parents:
22528
diff
changeset
|
20 dshow/outputpin.c \ |
090ec2169aee
cosmetics: Fix indentation, reorder some lines for consistency.
diego
parents:
22528
diff
changeset
|
21 dmo/DMO_AudioDecoder.c \ |
090ec2169aee
cosmetics: Fix indentation, reorder some lines for consistency.
diego
parents:
22528
diff
changeset
|
22 dmo/DMO_VideoDecoder.c \ |
090ec2169aee
cosmetics: Fix indentation, reorder some lines for consistency.
diego
parents:
22528
diff
changeset
|
23 dmo/buffer.c \ |
090ec2169aee
cosmetics: Fix indentation, reorder some lines for consistency.
diego
parents:
22528
diff
changeset
|
24 dmo/dmo.c \ |
090ec2169aee
cosmetics: Fix indentation, reorder some lines for consistency.
diego
parents:
22528
diff
changeset
|
25 dmo/dmo_guids.c \ |
21185 | 26 |
21259
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
21218
diff
changeset
|
27 include ../mpcommon.mak |
21183 | 28 |
26048
232cb92a2f1c
Check for -mno-omit-leaf-frame-pointer (compilation fix for icc 10.1.012).
cehoyos
parents:
25594
diff
changeset
|
29 CFLAGS+=-fno-omit-frame-pointer $(CFLAG_NO_OMIT_LEAF_FRAME_POINTER) |
26115
3eedbd7321ea
Add CFLAG_STACKREALIGN unconditionally to win32.o CFLAGS, configure takes care
diego
parents:
26048
diff
changeset
|
30 win32.o: CFLAGS += $(CFLAG_STACKREALIGN) |
21624
78e06aec663a
Fix crashes in loader code: There is still some code that can not handle omitted frame pointers.
reimar
parents:
21368
diff
changeset
|
31 |
25586
2c25326ad773
Add proper compilation rules for qtx/list and qtx/qtxload and remove silly
diego
parents:
25585
diff
changeset
|
32 TEST_OBJS = $(LIBNAME_COMMON) ../cpudetect.o ../mp_msg.o ../mp_fifo.o ../osdep/libosdep.a |
2c25326ad773
Add proper compilation rules for qtx/list and qtx/qtxload and remove silly
diego
parents:
25585
diff
changeset
|
33 TEST_LDFLAGS = -ltermcap -ldl -lm -lpthread -g |
2c25326ad773
Add proper compilation rules for qtx/list and qtx/qtxload and remove silly
diego
parents:
25585
diff
changeset
|
34 |
2c25326ad773
Add proper compilation rules for qtx/list and qtx/qtxload and remove silly
diego
parents:
25585
diff
changeset
|
35 dshow/test: dshow/test.c ../get_path.o $(TEST_OBJS) |
2c25326ad773
Add proper compilation rules for qtx/list and qtx/qtxload and remove silly
diego
parents:
25585
diff
changeset
|
36 $(CC) $(CFLAGS) -o $@ $^ $(TEST_LDFLAGS) -lstdc++ |
2c25326ad773
Add proper compilation rules for qtx/list and qtx/qtxload and remove silly
diego
parents:
25585
diff
changeset
|
37 |
2c25326ad773
Add proper compilation rules for qtx/list and qtx/qtxload and remove silly
diego
parents:
25585
diff
changeset
|
38 qtx/qtxload: qtx/qtxload.c $(TEST_OBJS) |
2c25326ad773
Add proper compilation rules for qtx/list and qtx/qtxload and remove silly
diego
parents:
25585
diff
changeset
|
39 $(CC) -o $@ $^ $(TEST_LDFLAGS) |
2c25326ad773
Add proper compilation rules for qtx/list and qtx/qtxload and remove silly
diego
parents:
25585
diff
changeset
|
40 |
2c25326ad773
Add proper compilation rules for qtx/list and qtx/qtxload and remove silly
diego
parents:
25585
diff
changeset
|
41 qtx/list: qtx/list.c $(TEST_OBJS) |
2c25326ad773
Add proper compilation rules for qtx/list and qtx/qtxload and remove silly
diego
parents:
25585
diff
changeset
|
42 $(CC) -o $@ $^ $(TEST_LDFLAGS) |
21185 | 43 |
21259
92b122592776
Merge common parts of all Makefiles into one file included by all.
diego
parents:
21218
diff
changeset
|
44 clean:: |
21185 | 45 rm -f dshow/*.o dshow/*.a dshow/*~ |
46 rm -f dmo/*.o dmo/*.a dmo/*~ | |
21218 | 47 rm -f dshow/test dshow/test.raw |
25594 | 48 rm -f qtx/list qtx/qtxload |