Make file operations succeed on Win9x too.
[wine.git] / programs / avitools / Makefile.in
blobf64ac92aae60a5d4f34412fbebb0c3153f850c32
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)
12 C_SRCS = \
13 aviinfo.c \
14 aviplay.c \
15 icinfo.c
17 @MAKE_RULES@
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)/avifil32 -L$(DLLDIR) -lavifil32 -lkernel32 $(ALL_LIBS)
24 aviplay.exe.so: aviplay.o
25 $(WINEGCC) -B$(TOOLSDIR)/tools/winebuild -mwindows -o $@ aviplay.o -L$(DLLDIR)/avifil32 -L$(DLLDIR)/ddraw -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)
36 icinfo.exe: icinfo.o
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
58 uninstall_prog.so:
59 $(RM) $(dlldir)/aviinfo.exe.so $(dlldir)/aviplay.exe.so $(dlldir)/icinfo.exe.so
61 uninstall_prog:
62 $(RM) $(bindir)/aviinfo.exe $(bindir)/aviplay.exe $(bindir)/icinfo.exe
64 install:: install_prog$(DLLEXT)
66 uninstall:: uninstall_prog$(DLLEXT)
68 clean::
69 $(RM) $(PROGRAMS:.exe=)
71 ### Dependencies: