Keep dsound8.c and dsound.c in sync.
[wine] / programs / avitools / Makefile.in
1 DLLDEFS    = @DLLDEFS@
2 DLLFLAGS   = @DLLFLAGS@
3 DEFS       = $(DLLDEFS) $(EXTRADEFS)
4 TOPSRCDIR  = @top_srcdir@
5 TOPOBJDIR  = ../..
6 SRCDIR     = @srcdir@
7 VPATH      = @srcdir@
8 MODULE     = none
9 PROGRAMS   = aviinfo.exe aviplay.exe icinfo.exe
10 ALL_LIBS   = $(LIBWINE) $(LIBPORT) $(LDFLAGS) $(LIBS)
11
12 C_SRCS = \
13         aviinfo.c \
14         aviplay.c \
15         icinfo.c
16
17 @MAKE_RULES@
18
19 all: aviinfo.exe$(DLLEXT) aviplay.exe$(DLLEXT) icinfo.exe$(DLLEXT) aviinfo$(EXEEXT) aviplay$(EXEEXT) icinfo$(EXEEXT)
20
21 aviinfo.exe.so: aviinfo.o
22         $(WINEGCC) -B$(TOOLSDIR)/tools/winebuild -mwindows -o $@ aviinfo.o -L$(DLLDIR) -lavifil32 -lkernel32 $(ALL_LIBS)
23
24 aviplay.exe.so: aviplay.o
25         $(WINEGCC) -B$(TOOLSDIR)/tools/winebuild -mwindows -o $@ aviplay.o -L$(DLLDIR) -lavifil32 -lddraw -lkernel32 $(ALL_LIBS)
26
27 icinfo.exe.so: icinfo.o
28         $(WINEGCC) -B$(TOOLSDIR)/tools/winebuild -mwindows -o $@ icinfo.o -L$(DLLDIR) -lmsvfw32 -lkernel32 $(ALL_LIBS)
29
30 aviinfo.exe: aviinfo.o
31         $(CC) -o $@ aviinfo.o -lavifil32 $(ALL_LIBS)
32
33 aviplay.exe: aviplay.o
34         $(CC) -o $@ aviplay.o -lavifil32 -lddraw $(ALL_LIBS)
35
36 icinfo.exe: icinfo.o
37         $(CC) -o $@ icinfo.o -lmsvfw32 $(ALL_LIBS)
38
39 $(PROGRAMS:.exe=): $(WINEWRAPPER)
40         $(RM) $@ && $(LN_S) $(WINEWRAPPER) $@
41
42 # Rules for installation
43
44 .PHONY: install_prog install_prog.so uninstall_prog uninstall_prog.so
45
46 install_prog.so: $(PROGRAMS:%=%.so)
47         $(MKINSTALLDIRS) $(dlldir)
48         $(INSTALL_PROGRAM) aviinfo.exe.so $(dlldir)/aviinfo.exe.so
49         $(INSTALL_PROGRAM) aviplay.exe.so $(dlldir)/aviplay.exe.so
50         $(INSTALL_PROGRAM) icinfo.exe.so $(dlldir)/icinfo.exe.so
51
52 install_prog: $(PROGRAMS)
53         $(MKINSTALLDIRS) $(bindir)
54         $(INSTALL_PROGRAM) aviinfo.exe $(bindir)/aviinfo.exe
55         $(INSTALL_PROGRAM) aviplay.exe $(bindir)/aviplay.exe
56         $(INSTALL_PROGRAM) icinfo.exe $(bindir)/icinfo.exe
57
58 uninstall_prog.so:
59         $(RM) $(dlldir)/aviinfo.exe.so $(dlldir)/aviplay.exe.so $(dlldir)/icinfo.exe.so
60
61 uninstall_prog:
62         $(RM) $(bindir)/aviinfo.exe $(bindir)/aviplay.exe $(bindir)/icinfo.exe
63
64 install:: install_prog$(DLLEXT)
65
66 uninstall:: uninstall_prog$(DLLEXT)
67
68 clean::
69         $(RM) $(PROGRAMS:.exe=)
70
71 ### Dependencies: