Revision fb3d46da vhook/Makefile

View differences:

vhook/Makefile
4 4

  
5 5
CFLAGS=-fPIC $(SHCFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libavutil -DHAVE_AV_CONFIG_H
6 6

  
7
#FIXME: This needs to be in configure/config.mak
7 8
ifeq ($(CONFIG_DARWIN),yes)
8
	SHFLAGS += -flat_namespace -undefined suppress
9
	SHFLAGS = -dynamiclib -Wl,-single_module -flat_namespace -undefined suppress -Wl,-install_name,$(libdir)/vhook/$@
9 10
endif
10 11
HOOKS=null$(SLIBSUF) fish$(SLIBSUF) ppm$(SLIBSUF) watermark$(SLIBSUF)
11 12

  
......
36 37
	$(CC) $(LDFLAGS) -g -o $@ $(SHFLAGS) $< `freetype-config --libs`
37 38

  
38 39
%$(SLIBSUF): %.o
39
ifeq ($(CONFIG_DARWIN),yes)
40
	$(CC) $(LDFLAGS) $(SHFLAGS) -Wl,-install_name,$(libdir)/vhook/$@ -g -o $@ $<
41
else
42 40
	$(CC) $(LDFLAGS) -g -o $@ $(SHFLAGS) $<
43
endif
44 41

  
45 42
clean:
46 43
	rm -f *.o *.d .depend *$(SLIBSUF) *~

Also available in: Unified diff