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