include ../config.mak LIBNAME = DMO_Filter$(SLIBSUF) BINDIR = $(prefix)/lib/$(PROGNAME)/wine # DS_AudioDec.c SRCS = DMO_AudioDecoder.c DMO_VideoDecoder.c buffer.c dmo.c dmo_guids.c OBJS = $(SRCS:.c=.o) INCLUDE = -I. -I../dshow -I.. $(EXTRA_INC) CFLAGS = $(OPTFLAGS) $(INCLUDE) -DNOAVIFILE_HEADERS LD_LIBS = -lc ifeq ($(TARGET_OS),WIN32) LD=$(CC) LD_LIBS += -lkernel32 LD_FLAGS=--dll --disable-runtime-pseudo-reloc --enable-auto-import --enable-auto-image-base --gc-sections --sort-common else LD_LIBS += ../libloader$(SLIBSUF) LD_FLAGS=-soname $@ -rpath=$(BINDIR) endif .SUFFIXES: .c .o # .PHONY: all clean .c.o: $(CC) -c $(CFLAGS) -o $@ $< $(LIBNAME): $(OBJS) #ifneq ($(TARGET_OS),WIN32) # install -d $(BINDIR) #endif $(LD) --shared $(LD_FLAGS) -o $@ $(OBJS) ../dshow/DS_Filter$(SLIBSUF) $(LD_LIBS) all: $(LIBNAME) clean: rm -f *.o *.a *~ distclean: rm -f Makefile.bak *.o *$(SLIBSUF) *~ .depend test test.raw install: install -m 755 -s -p $(LIBNAME) $(BINDIR)/$(LIBNAME) uninstall: rm -f $(BINDIR)/$(LIBNAME) rmdir -p --ignore-fail-on-non-empty $(BINDIR) dep: depend depend: $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend # # include dependency files if they exist # ifneq ($(wildcard .depend),) include .depend endif