2002-05-14 22:54:58 +02:00
|
|
|
DEFS = @DLLFLAGS@ -DSTRICT -DNONAMELESSUNION -DNONAMELESSSTRUCT $(EXTRADEFS)
|
2000-11-11 00:45:20 +01:00
|
|
|
LDDLLFLAGS = @LDDLLFLAGS@
|
|
|
|
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
|
2000-12-06 01:05:14 +01:00
|
|
|
ALL_LIBS = $(LIBWINE) $(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-21 21:42:29 +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)
|
|
|
|
$(LDPATH) $(WINEBUILD) $(DEFS) -sym aviinfo.o -o aviinfo.exe.spec.c -exe aviinfo.exe -mgui -L$(DLLDIR) -lkernel32
|
1999-01-29 16:12:10 +01:00
|
|
|
|
2002-05-21 21:42:29 +02:00
|
|
|
aviplay.exe.spec.c: aviplay.o $(WINEBUILD)
|
|
|
|
$(LDPATH) $(WINEBUILD) $(DEFS) -sym aviplay.o -o aviplay.exe.spec.c -exe aviplay.exe -mgui -L$(DLLDIR) -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)
|
|
|
|
$(LDPATH) $(WINEBUILD) $(DEFS) -sym icinfo.o -o icinfo.exe.spec.c -exe icinfo.exe -mgui -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
|
|
|
|
$(LDSHARED) $(LDDLLFLAGS) -o aviinfo.exe.so aviinfo.o aviinfo.exe.spec.o $(ALL_LIBS)
|
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
|
|
|
|
$(LDSHARED) $(LDDLLFLAGS) -o aviplay.exe.so aviplay.o aviplay.exe.spec.o $(ALL_LIBS)
|
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
|
|
|
|
$(LDSHARED) $(LDDLLFLAGS) -o icinfo.exe.so icinfo.o icinfo.exe.spec.o $(ALL_LIBS)
|
|
|
|
|
|
|
|
aviinfo.exe: aviinfo.o
|
|
|
|
$(CC) -o $@ aviinfo.o -lkernel32 $(ALL_LIBS)
|
|
|
|
|
|
|
|
aviplay.exe: aviplay.o
|
|
|
|
$(CC) -o $@ aviplay.o -lddraw -lkernel32 $(ALL_LIBS)
|
|
|
|
|
|
|
|
icinfo.exe: icinfo.o
|
|
|
|
$(CC) -o $@ icinfo.o -lmsvfw32 -lkernel32 $(ALL_LIBS)
|
|
|
|
|
|
|
|
aviinfo: aviinfo.exe.so
|
2000-11-11 00:45:20 +01:00
|
|
|
$(RM) aviinfo && $(LN_S) $(TOPOBJDIR)/wine aviinfo
|
|
|
|
|
2002-05-21 21:42:29 +02:00
|
|
|
aviplay: aviplay.exe.so
|
2000-11-11 00:45:20 +01:00
|
|
|
$(RM) aviplay && $(LN_S) $(TOPOBJDIR)/wine aviplay
|
|
|
|
|
2002-05-21 21:42:29 +02:00
|
|
|
icinfo: icinfo.exe.so
|
2000-11-11 00:45:20 +01:00
|
|
|
$(RM) icinfo && $(LN_S) $(TOPOBJDIR)/wine icinfo
|
|
|
|
|
2002-05-21 21:42:29 +02:00
|
|
|
.PHONY: install_prog install_prog.so
|
|
|
|
|
|
|
|
install_prog.so:: $(PROGRAMS:%=%.so)
|
2002-05-09 06:31:39 +02:00
|
|
|
$(MKINSTALLDIRS) $(bindir)
|
2002-05-21 21:42:29 +02:00
|
|
|
$(INSTALL_PROGRAM) aviinfo.exe.so $(bindir)/aviinfo.exe.so
|
|
|
|
$(INSTALL_PROGRAM) aviplay.exe.so $(bindir)/aviplay.exe.so
|
|
|
|
$(INSTALL_PROGRAM) icinfo.exe.so $(bindir)/icinfo.exe.so
|
2000-11-11 00:45:20 +01:00
|
|
|
cd $(bindir) && $(LN_S) wine aviinfo && $(LN_S) wine aviplay && $(LN_S) wine icinfo
|
1999-01-29 16:12:10 +01:00
|
|
|
|
2002-05-21 21:42:29 +02:00
|
|
|
install_prog:: $(PROGRAMS)
|
|
|
|
$(MKINSTALLDIRS) $(bindir)
|
|
|
|
$(INSTALL_PROGRAM) aviinfo.exe $(bindir)/aviinfo.exe
|
|
|
|
$(INSTALL_PROGRAM) aviplay.exe $(bindir)/aviplay.exe
|
|
|
|
$(INSTALL_PROGRAM) icinfo.exe $(bindir)/icinfo.exe
|
|
|
|
|
|
|
|
install:: install_prog$(DLLEXT)
|
|
|
|
|
2000-01-31 06:02:49 +01:00
|
|
|
uninstall::
|
2002-05-21 21:42:29 +02:00
|
|
|
$(RM) $(PROGRAMS:%=$(bindir)/%$(DLLEXT)) $(PROGRAMS:%.exe=$(bindir)/%)
|
2000-11-11 00:45:20 +01:00
|
|
|
|
|
|
|
checklink:: $(PROGRAMS:%=%.so)
|
2002-05-21 21:42:29 +02:00
|
|
|
$(CC) -o checklink $(TOPSRCDIR)/library/checklink.c aviinfo.exe.so && $(RM) checklink
|
|
|
|
$(CC) -o checklink $(TOPSRCDIR)/library/checklink.c aviplay.exe.so && $(RM) checklink
|
|
|
|
$(CC) -o checklink $(TOPSRCDIR)/library/checklink.c icinfo.exe.so && $(RM) checklink
|
1999-01-29 16:12:10 +01:00
|
|
|
|
|
|
|
### Dependencies:
|