1 ## Process this file with automake to produce Makefile.in
5 -lhb -la52 -lmkv -lavformat -lavcodec -lavutil -ldca -ldvdnav -ldvdread \
6 -lfaac -lmp3lame -lmpeg2 -lvorbis -lvorbisenc -logg -lsamplerate \
7 -lx264 -lmp4v2 -lswscale -ltheora -lz \
8 -lbz2 -liberty -lpthreadGC2 -lbluray -lass -lfontconfig -lfreetype
11 -lhb -la52 -lmkv -lavformat -lavcodec -lavutil -ldca -ldvdnav -ldvdread \
12 -lfaac -lmp3lame -lmpeg2 -lvorbis -lvorbisenc -logg -lsamplerate \
13 -lx264 -lmp4v2 -lswscale -ltheora -lz \
14 -lbz2 -lpthread -lbluray -lass -lfontconfig -lfreetype
27 hb-status-empty.32.png \
34 hb-queue-delete.16.png \
36 hb-queue-pass1.16.png \
37 hb-queue-pass2.16.png \
38 hb-queue-subtitle.16.png \
52 -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
53 -DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
54 -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
61 # Dummy file, not built. Forces g++ linking
62 nodist_EXTRA_ghb_SOURCES = dummy.cpp
97 ghbcellrenderertext.c \
98 ghbcellrenderertext.h \
108 -mwindows -Wl,--export-dynamic -Wl,--exclude-libs,ALL
111 -Wl,--export-dynamic -Wl,--exclude-libs,ALL
114 ghb_LDADD = $(HB_LIBS) $(GHB_LIBS)
116 ghb_DEPENDENCIES = $(HB_DIR)/libhb/libhb.a
118 resources.o: resource_data.h
120 resource_data.h: resources.plist
121 python $(srcdir)/quotestring.py resources.plist resource_data.h
123 widget_reverse.deps: makedeps.py
124 widget.deps: makedeps.py
125 python $(srcdir)/makedeps.py
127 resources.plist: create_resources resources.list $(icons_dep) internal_defaults.xml standard_presets.xml ghb.ui widget.deps widget_reverse.deps
128 ./create_resources -I$(srcdir) $(srcdir)/resources.list resources.plist
135 CREATE_RES.c.o = $(patsubst %.c,%-native.o,$(CREATE_RES.c))
137 create_resources: $(CREATE_RES.c.o)
138 $(CC_FOR_BUILD) -o $@ $^ $(GHB_TOOLS_LIBS)
140 $(CREATE_RES.c.o): %-native.o: %.c
141 $(CC_FOR_BUILD) $(GHB_TOOLS_CFLAGS) -c -o $@ $<
143 ghbcellrenderertext.$(OBJEXT): marshalers.h
145 $(srcdir)/marshalers.h: marshalers.list
146 glib-genmarshal --prefix=ghb_marshal $(srcdir)/marshalers.list --header > $(srcdir)/marshalers.h
148 $(srcdir)/marshalers.c: marshalers.list
149 glib-genmarshal --prefix=ghb_marshal $(srcdir)/marshalers.list --body > $(srcdir)/marshalers.c
151 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(DESTDIR)/$(datadir)/icons/hicolor
154 for icon in $(icons); do \
155 SIZE=`echo $$icon | cut -d. -f2`; \
156 FILE=`echo $$icon | cut -d. -f1,3`; \
157 if [ "$$SIZE" = "svg" ]; then \
161 SIZE="$${SIZE}x$${SIZE}"; \
163 rm -f $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/$$FILE; \
165 @-if test -z "$(DESTDIR)"; then \
166 echo "Updating Gtk icon cache."; \
167 $(gtk_update_icon_cache); \
169 echo "*** Icon cache not updated. After install, run this:"; \
170 echo "*** $(gtk_update_icon_cache)"; \
172 rm -f $(DESTDIR)/$(datadir)/applications/$(hb_menu)
175 for icon in $(icons); do \
176 SIZE=`echo $$icon | cut -d. -f2`; \
177 FILE=`echo $$icon | cut -d. -f1,3`; \
178 if [ "$$SIZE" = "svg" ]; then \
182 SIZE="$${SIZE}x$${SIZE}"; \
184 mkdir -p $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/; \
185 $(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)/$(datadir)/icons/hicolor/$$SIZE/apps/$$FILE; \
187 @-if test -z "$(DESTDIR)"; then \
188 echo "Updating Gtk icon cache."; \
189 $(gtk_update_icon_cache); \
191 echo "*** Icon cache not updated. After install, run this:"; \
192 echo "*** $(gtk_update_icon_cache)"; \
194 mkdir -p $(DESTDIR)/$(datadir)/applications/; \
195 $(INSTALL_DATA) $(srcdir)/$(hb_menu) $(DESTDIR)/$(datadir)/applications/$(hb_menu)