Introduce a mechanism to add object-specific linker flags.
patch by Gustavo Sverzut Barbieri, barbieri gmail com Originally committed as revision 6182 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
4fadc2b4f1
commit
b2565d710f
@ -10,13 +10,13 @@ ALLHOOKS=$(HOOKS) imlib2$(SLIBSUF) drawtext$(SLIBSUF)
|
|||||||
|
|
||||||
ifeq ($(HAVE_IMLIB2),yes)
|
ifeq ($(HAVE_IMLIB2),yes)
|
||||||
HOOKS += imlib2$(SLIBSUF)
|
HOOKS += imlib2$(SLIBSUF)
|
||||||
LDFLAGS += -lImlib2
|
LDFLAGS_imlib2$(SLIBSUF) = -lImlib2
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(HAVE_FREETYPE2),yes)
|
ifeq ($(HAVE_FREETYPE2),yes)
|
||||||
HOOKS += drawtext$(SLIBSUF)
|
HOOKS += drawtext$(SLIBSUF)
|
||||||
CFLAGS += `freetype-config --cflags`
|
CFLAGS += `freetype-config --cflags`
|
||||||
LDFLAGS += `freetype-config --libs`
|
LDFLAGS_drawtext$(SLIBSUF) = `freetype-config --libs`
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SRCS := $(HOOKS:$(SLIBSUF)=.c)
|
SRCS := $(HOOKS:$(SLIBSUF)=.c)
|
||||||
@ -35,7 +35,7 @@ uninstall:
|
|||||||
-rmdir "$(shlibdir)/vhook/"
|
-rmdir "$(shlibdir)/vhook/"
|
||||||
|
|
||||||
%$(SLIBSUF): %.o
|
%$(SLIBSUF): %.o
|
||||||
$(CC) $(LDFLAGS) -g -o $@ $(VHOOKSHFLAGS) $<
|
$(CC) $(LDFLAGS_$@) $(LDFLAGS) -g -o $@ $(VHOOKSHFLAGS) $<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll
|
rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll
|
||||||
|
Loading…
x
Reference in New Issue
Block a user