Makefile.in 2.07 KB
Newer Older
1
DLLDEFS    = @DLLDEFS@
2
DLLFLAGS   = @DLLFLAGS@
3
DEFS       = $(DLLDEFS) $(EXTRADEFS)
4 5 6 7 8
TOPSRCDIR  = @top_srcdir@
TOPOBJDIR  = ../..
SRCDIR     = @srcdir@
VPATH      = @srcdir@
MODULE     = none
9
PROGRAMS   = aviinfo.exe aviplay.exe icinfo.exe
10
ALL_LIBS   = $(LIBWINE) $(LIBPORT) $(LDFLAGS) $(LIBS)
11

12 13 14 15
C_SRCS = \
	aviinfo.c \
	aviplay.c \
	icinfo.c
16 17 18

@MAKE_RULES@

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)/avifil32 -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)/avifil32 -L$(DLLDIR)/ddraw -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 40
$(PROGRAMS:.exe=): $(WINEWRAPPER)
	$(RM) $@ && $(LN_S) $(WINEWRAPPER) $@
41

42
# Rules for installation
43

44
.PHONY: install_prog install_prog.so uninstall_prog uninstall_prog.so
45

46 47 48 49 50
install_prog.so: $(PROGRAMS:%=%.so)
	$(MKINSTALLDIRS) $(dlldir)
	$(INSTALL_PROGRAM) aviinfo.exe.so $(dlldir)/aviinfo.exe.so
	$(INSTALL_PROGRAM) aviplay.exe.so $(dlldir)/aviplay.exe.so
	$(INSTALL_PROGRAM) icinfo.exe.so $(dlldir)/icinfo.exe.so
51

52
install_prog: $(PROGRAMS)
53 54 55 56 57
	$(MKINSTALLDIRS) $(bindir)
	$(INSTALL_PROGRAM) aviinfo.exe $(bindir)/aviinfo.exe
	$(INSTALL_PROGRAM) aviplay.exe $(bindir)/aviplay.exe
	$(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
60 61

uninstall_prog:
62
	$(RM) $(bindir)/aviinfo.exe $(bindir)/aviplay.exe $(bindir)/icinfo.exe
63

64 65
install:: install_prog$(DLLEXT)

66 67 68 69 70
uninstall:: uninstall_prog$(DLLEXT)

clean::
	$(RM) $(PROGRAMS:.exe=)

71
### Dependencies: