3 TOPSRCDIR = @top_srcdir@
8 PROGRAMS = aviinfo.exe aviplay.exe icinfo.exe
9 ALL_LIBS = $(LIBWINE) $(LIBPORT) $(LDFLAGS) $(LIBS)
18 all: aviinfo.exe$(DLLEXT) aviplay.exe$(DLLEXT) icinfo.exe$(DLLEXT) aviinfo$(EXEEXT) aviplay$(EXEEXT) icinfo$(EXEEXT)
20 aviinfo.exe.so: aviinfo.o
21 $(WINEGCC) -B$(TOOLSDIR)/tools/winebuild -mwindows -o $@ aviinfo.o -L$(DLLDIR) -lavifil32 -lkernel32 $(ALL_LIBS)
23 aviplay.exe.so: aviplay.o
24 $(WINEGCC) -B$(TOOLSDIR)/tools/winebuild -mwindows -o $@ aviplay.o -L$(DLLDIR) -lavifil32 -lddraw -lkernel32 $(ALL_LIBS)
26 icinfo.exe.so: icinfo.o
27 $(WINEGCC) -B$(TOOLSDIR)/tools/winebuild -mwindows -o $@ icinfo.o -L$(DLLDIR) -lmsvfw32 -lkernel32 $(ALL_LIBS)
29 aviinfo.exe: aviinfo.o
30 $(CC) -o $@ aviinfo.o -lavifil32 $(ALL_LIBS)
32 aviplay.exe: aviplay.o
33 $(CC) -o $@ aviplay.o -lavifil32 -lddraw $(ALL_LIBS)
36 $(CC) -o $@ icinfo.o -lmsvfw32 $(ALL_LIBS)
38 $(PROGRAMS:.exe=): $(WINEWRAPPER)
39 $(RM) $@ && $(LN_S) $(WINEWRAPPER) $@
41 # Rules for installation
43 .PHONY: install_prog install_prog.so uninstall_prog uninstall_prog.so
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
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
58 $(RM) $(dlldir)/aviinfo.exe.so $(dlldir)/aviplay.exe.so $(dlldir)/icinfo.exe.so
61 $(RM) $(bindir)/aviinfo.exe $(bindir)/aviplay.exe $(bindir)/icinfo.exe
63 install:: install_prog$(DLLEXT)
65 uninstall:: uninstall_prog$(DLLEXT)
68 $(RM) $(PROGRAMS:.exe=)