3 DEFS = $(DLLDEFS) $(EXTRADEFS)
4 TOPSRCDIR = @top_srcdir@
9 PROGRAMS = aviinfo.exe aviplay.exe icinfo.exe
10 ALL_LIBS = $(LIBWINE) $(LIBPORT) $(LDFLAGS) $(LIBS)
19 all: aviinfo.exe$(DLLEXT) aviplay.exe$(DLLEXT) icinfo.exe$(DLLEXT) aviinfo$(EXEEXT) aviplay$(EXEEXT) icinfo$(EXEEXT)
21 aviinfo.exe.so: aviinfo.o
22 $(WINEGCC) -B$(TOOLSDIR)/tools/winebuild -mwindows -o $@ aviinfo.o -L$(DLLDIR) -lavifil32 -lkernel32 $(ALL_LIBS)
24 aviplay.exe.so: aviplay.o
25 $(WINEGCC) -B$(TOOLSDIR)/tools/winebuild -mwindows -o $@ aviplay.o -L$(DLLDIR) -lavifil32 -lddraw -lkernel32 $(ALL_LIBS)
27 icinfo.exe.so: icinfo.o
28 $(WINEGCC) -B$(TOOLSDIR)/tools/winebuild -mwindows -o $@ icinfo.o -L$(DLLDIR) -lmsvfw32 -lkernel32 $(ALL_LIBS)
30 aviinfo.exe: aviinfo.o
31 $(CC) -o $@ aviinfo.o -lavifil32 $(ALL_LIBS)
33 aviplay.exe: aviplay.o
34 $(CC) -o $@ aviplay.o -lavifil32 -lddraw $(ALL_LIBS)
37 $(CC) -o $@ icinfo.o -lmsvfw32 $(ALL_LIBS)
39 $(PROGRAMS:.exe=): $(WINEWRAPPER)
40 $(RM) $@ && $(LN_S) $(WINEWRAPPER) $@
42 # Rules for installation
44 .PHONY: install_prog install_prog.so uninstall_prog uninstall_prog.so
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
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
59 $(RM) $(dlldir)/aviinfo.exe.so $(dlldir)/aviplay.exe.so $(dlldir)/icinfo.exe.so
62 $(RM) $(bindir)/aviinfo.exe $(bindir)/aviplay.exe $(bindir)/icinfo.exe
64 install:: install_prog$(DLLEXT)
66 uninstall:: uninstall_prog$(DLLEXT)
69 $(RM) $(PROGRAMS:.exe=)