2004-01-08 17:29:42 +00:00
|
|
|
# mkvtoolnix - Makefile for MinGW
|
|
|
|
# because I was fed up fighting against libtool
|
|
|
|
|
|
|
|
# Put all the user changeable options into one file
|
|
|
|
include ../Makefile.mingw.options
|
|
|
|
|
|
|
|
LIBRARIES = libavi.a
|
|
|
|
|
|
|
|
SYSTEM_INCLUDES = -I$(TOP) -I$(TOP)/avilib-0.6.10 -I$(TOP)/src/common
|
|
|
|
|
|
|
|
libavi_SOURCES = avidump.c \
|
|
|
|
avilib.c \
|
|
|
|
avimisc.c
|
|
|
|
libavi_OBJECTS := $(patsubst %.c,%.o,$(libavi_SOURCES))
|
|
|
|
|
|
|
|
RUNAR = $(AR) rcu
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) $(CFLAGS) $(INCLUDES) $(SYSTEM_INCLUDES) -c -o $@ $<
|
|
|
|
|
|
|
|
all: $(LIBRARIES)
|
|
|
|
|
|
|
|
libavi.a: $(libavi_OBJECTS)
|
|
|
|
rm -f $@
|
|
|
|
$(RUNAR) $@ $(libavi_OBJECTS)
|
|
|
|
ranlib $@
|
|
|
|
|
|
|
|
clean:
|
2004-01-08 18:22:24 +00:00
|
|
|
rm -f *.o $(LIBRARIES) .depend
|
|
|
|
|
2004-01-09 22:25:21 +00:00
|
|
|
Makefile: Makefile.mingw
|
|
|
|
@echo Re-copying Makefile from Makefile.mingw
|
|
|
|
sed "s/-f Makefile\.mingw//g" < $< > $@
|
|
|
|
|
2004-01-08 18:22:24 +00:00
|
|
|
depend:
|
|
|
|
$(CC) $(CFLAGS) $(INCLUDES) $(SYSTEM_INCLUDES) -MM \
|
|
|
|
$(libavi_SOURCES) > .depend
|
|
|
|
|
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|