1 DEFS
= @DLLFLAGS@
$(EXTRADEFS
)
2 LDDLLFLAGS
= @LDDLLFLAGS@
3 TOPSRCDIR
= @top_srcdir@
8 PROGRAMS
= aviinfo.exe aviplay.exe icinfo.exe
9 ALL_LIBS
= $(LIBWINE
) $(LIBPORT
) $(LIBS
)
18 all: $(PROGRAMS
:%=%$(DLLEXT
)) $(PROGRAMS
:.exe
=$(EXEEXT
))
20 aviinfo.exe.spec.c
: aviinfo.o
$(WINEBUILD
)
21 $(LDPATH
) $(WINEBUILD
) $(DEFS
) -o
$@
--exe aviinfo.exe
--exe-mode gui aviinfo.o
-L
$(DLLDIR
) -lkernel32
23 aviplay.exe.spec.c
: aviplay.o
$(WINEBUILD
)
24 $(LDPATH
) $(WINEBUILD
) $(DEFS
) -o
$@
--exe aviplay.exe
--exe-mode gui aviplay.o
-L
$(DLLDIR
) -lddraw
-lkernel32
26 icinfo.exe.spec.c
: icinfo.o
$(WINEBUILD
)
27 $(LDPATH
) $(WINEBUILD
) $(DEFS
) -o
$@
--exe icinfo.exe
--exe-mode gui icinfo.o
-L
$(DLLDIR
) -lmsvfw32
-lkernel32
29 aviinfo.exe.so
: aviinfo.o aviinfo.exe.spec.o
30 $(LDSHARED
) $(LDDLLFLAGS
) -o
$@ aviinfo.o aviinfo.exe.spec.o
$(ALL_LIBS
) -lc
32 aviplay.exe.so
: aviplay.o aviplay.exe.spec.o
33 $(LDSHARED
) $(LDDLLFLAGS
) -o
$@ aviplay.o aviplay.exe.spec.o
$(ALL_LIBS
) -lc
35 icinfo.exe.so
: icinfo.o icinfo.exe.spec.o
36 $(LDSHARED
) $(LDDLLFLAGS
) -o
$@ icinfo.o icinfo.exe.spec.o
$(ALL_LIBS
) -lc
38 aviinfo.exe
: aviinfo.o
39 $(CC
) -o
$@ aviinfo.o
-lkernel32
$(ALL_LIBS
)
41 aviplay.exe
: aviplay.o
42 $(CC
) -o
$@ aviplay.o
-lddraw
-lkernel32
$(ALL_LIBS
)
45 $(CC
) -o
$@ icinfo.o
-lmsvfw32
-lkernel32
$(ALL_LIBS
)
47 $(PROGRAMS
:.exe
=): $(WINEWRAPPER
)
48 $(RM
) $@
&& $(LN_S
) $(WINEWRAPPER
) $@
50 # Rules for installation
52 .PHONY
: install_prog install_prog.so uninstall_prog uninstall_prog.so
54 install_prog.so
: $(PROGRAMS
:%=%.so
)
55 $(MKINSTALLDIRS
) $(dlldir
)
56 $(INSTALL_PROGRAM
) aviinfo.exe.so
$(dlldir
)/aviinfo.exe.so
57 $(INSTALL_PROGRAM
) aviplay.exe.so
$(dlldir
)/aviplay.exe.so
58 $(INSTALL_PROGRAM
) icinfo.exe.so
$(dlldir
)/icinfo.exe.so
60 install_prog
: $(PROGRAMS
)
61 $(MKINSTALLDIRS
) $(bindir)
62 $(INSTALL_PROGRAM
) aviinfo.exe
$(bindir)/aviinfo.exe
63 $(INSTALL_PROGRAM
) aviplay.exe
$(bindir)/aviplay.exe
64 $(INSTALL_PROGRAM
) icinfo.exe
$(bindir)/icinfo.exe
67 $(RM
) $(PROGRAMS
:%=$(dlldir
)/%.so
)
70 $(RM
) $(PROGRAMS
:%=$(bindir)/%)
72 install:: install_prog
$(DLLEXT
)
74 uninstall:: uninstall_prog
$(DLLEXT
)
77 $(RM
) $(PROGRAMS
:.exe
=)