2003-09-24 21:01:44 +02:00
|
|
|
DEFS = $(EXTRADEFS)
|
|
|
|
DLLFLAGS = @DLLFLAGS@
|
2000-11-11 00:45:20 +01:00
|
|
|
TOPSRCDIR = @top_srcdir@
|
|
|
|
TOPOBJDIR = ../..
|
|
|
|
SRCDIR = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
MODULE = none
|
2002-05-21 21:42:29 +02:00
|
|
|
PROGRAMS = aviinfo.exe aviplay.exe icinfo.exe
|
2003-06-14 01:26:01 +02:00
|
|
|
ALL_LIBS = $(LIBWINE) $(LIBPORT) $(LDFLAGS) $(LIBS)
|
1999-01-29 16:12:10 +01:00
|
|
|
|
2002-05-21 21:42:29 +02:00
|
|
|
C_SRCS = \
|
|
|
|
aviinfo.c \
|
|
|
|
aviplay.c \
|
|
|
|
icinfo.c
|
1999-01-29 16:12:10 +01:00
|
|
|
|
|
|
|
@MAKE_RULES@
|
|
|
|
|
2002-05-22 23:32:49 +02:00
|
|
|
all: $(PROGRAMS:%=%$(DLLEXT)) $(PROGRAMS:.exe=$(EXEEXT))
|
2000-02-03 02:37:23 +01:00
|
|
|
|
2002-05-21 21:42:29 +02:00
|
|
|
aviinfo.exe.spec.c: aviinfo.o $(WINEBUILD)
|
2004-02-16 23:24:24 +01:00
|
|
|
$(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --exe aviinfo.exe --mode gui aviinfo.o -L$(DLLDIR) -lavifil32 -lkernel32
|
1999-01-29 16:12:10 +01:00
|
|
|
|
2002-05-21 21:42:29 +02:00
|
|
|
aviplay.exe.spec.c: aviplay.o $(WINEBUILD)
|
2004-02-16 23:24:24 +01:00
|
|
|
$(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --exe aviplay.exe --mode gui aviplay.o -L$(DLLDIR) -lavifil32 -lddraw -lkernel32
|
1999-01-29 16:12:10 +01:00
|
|
|
|
2002-05-21 21:42:29 +02:00
|
|
|
icinfo.exe.spec.c: icinfo.o $(WINEBUILD)
|
2004-02-16 23:24:24 +01:00
|
|
|
$(WINEBUILD) $(DEFS) $(DLLFLAGS) -o $@ --exe icinfo.exe --mode gui icinfo.o -L$(DLLDIR) -lmsvfw32 -lkernel32
|
2000-11-11 00:45:20 +01:00
|
|
|
|
2002-05-21 21:42:29 +02:00
|
|
|
aviinfo.exe.so: aviinfo.o aviinfo.exe.spec.o
|
2003-10-11 03:05:18 +02:00
|
|
|
$(LDDLL) -o $@ aviinfo.o aviinfo.exe.spec.o $(ALL_LIBS) -lc
|
2000-11-11 00:45:20 +01:00
|
|
|
|
2002-05-21 21:42:29 +02:00
|
|
|
aviplay.exe.so: aviplay.o aviplay.exe.spec.o
|
2003-10-11 03:05:18 +02:00
|
|
|
$(LDDLL) -o $@ aviplay.o aviplay.exe.spec.o $(ALL_LIBS) -lc
|
2000-11-11 00:45:20 +01:00
|
|
|
|
2002-05-21 21:42:29 +02:00
|
|
|
icinfo.exe.so: icinfo.o icinfo.exe.spec.o
|
2003-10-11 03:05:18 +02:00
|
|
|
$(LDDLL) -o $@ icinfo.o icinfo.exe.spec.o $(ALL_LIBS) -lc
|
2002-05-21 21:42:29 +02:00
|
|
|
|
|
|
|
aviinfo.exe: aviinfo.o
|
2003-12-02 06:33:26 +01:00
|
|
|
$(CC) -o $@ aviinfo.o -lavifil32 -lkernel32 $(ALL_LIBS)
|
2002-05-21 21:42:29 +02:00
|
|
|
|
|
|
|
aviplay.exe: aviplay.o
|
2003-12-02 06:33:26 +01:00
|
|
|
$(CC) -o $@ aviplay.o -lavifil32 -lddraw -lkernel32 $(ALL_LIBS)
|
2002-05-21 21:42:29 +02:00
|
|
|
|
|
|
|
icinfo.exe: icinfo.o
|
|
|
|
$(CC) -o $@ icinfo.o -lmsvfw32 -lkernel32 $(ALL_LIBS)
|
|
|
|
|
2002-05-22 23:32:49 +02:00
|
|
|
$(PROGRAMS:.exe=): $(WINEWRAPPER)
|
|
|
|
$(RM) $@ && $(LN_S) $(WINEWRAPPER) $@
|
2000-11-11 00:45:20 +01:00
|
|
|
|
2002-05-22 23:32:49 +02:00
|
|
|
# Rules for installation
|
2000-11-11 00:45:20 +01:00
|
|
|
|
2002-05-22 23:32:49 +02:00
|
|
|
.PHONY: install_prog install_prog.so uninstall_prog uninstall_prog.so
|
2000-11-11 00:45:20 +01:00
|
|
|
|
2002-05-22 23:32:49 +02:00
|
|
|
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
|
2002-05-21 21:42:29 +02:00
|
|
|
|
2002-05-22 23:32:49 +02:00
|
|
|
install_prog: $(PROGRAMS)
|
2002-05-21 21:42:29 +02:00
|
|
|
$(MKINSTALLDIRS) $(bindir)
|
|
|
|
$(INSTALL_PROGRAM) aviinfo.exe $(bindir)/aviinfo.exe
|
|
|
|
$(INSTALL_PROGRAM) aviplay.exe $(bindir)/aviplay.exe
|
|
|
|
$(INSTALL_PROGRAM) icinfo.exe $(bindir)/icinfo.exe
|
|
|
|
|
2002-05-22 23:32:49 +02:00
|
|
|
uninstall_prog.so:
|
|
|
|
$(RM) $(PROGRAMS:%=$(dlldir)/%.so)
|
|
|
|
|
|
|
|
uninstall_prog:
|
|
|
|
$(RM) $(PROGRAMS:%=$(bindir)/%)
|
|
|
|
|
2002-05-21 21:42:29 +02:00
|
|
|
install:: install_prog$(DLLEXT)
|
|
|
|
|
2002-05-22 23:32:49 +02:00
|
|
|
uninstall:: uninstall_prog$(DLLEXT)
|
|
|
|
|
|
|
|
clean::
|
|
|
|
$(RM) $(PROGRAMS:.exe=)
|
|
|
|
|
1999-01-29 16:12:10 +01:00
|
|
|
### Dependencies:
|