Project

General

Profile

Feature #53 » vdr-plugin-dxr3-Makefile.diff

mnival, 01/07/2009 10:05 PM

View differences:

vdr-plugin-dxr3-Makefile/Makefile 2009-01-07 21:04:08.000000000 +0100
### Includes and Defines (add further entries here):
INCLUDES += -I$(VDRDIR)/include -I$(FFMDIR) -I$(FFMDIR)/libavcodec -I$(EM8300)
LIBS = -L$(FFMDIR)/libavcodec -lavcodec
ifneq ($(shell which pkg-config),)
ifneq ($(shell pkg-config --silence-errors --libs libavcodec),)
LIBS += $(shell pkg-config --silence-errors --libs libavcodec)
INCLUDES += $(shell pkg-config --silence-errors --cflags libavcodec)
else
LIBS += -lavcodec
INCLUDES += -I$(FFMDIR) -I$(FFMDIR)/libavcodec
endif
endif
INCLUDES += -I$(VDRDIR)/include -I$(EM8300)
DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
DEFINES += -D_GNU_SOURCE
......
### Targets:
libvdr-$(PLUGIN).so: $(OBJS)
$(CXX) $(CXXFLAGS) -shared $(OBJS) $(LIBS) -o $@
$(CXX) $(CXXFLAGS) -shared $(OBJS) -L. $(LIBS) -o $@
@cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION)
dist: clean
(1-1/3)