view src/audacious/Makefile @ 2438:8750a62abed8 trunk

[svn] Provide flags in InputPlayback for common plugin flag needs, and provide a useful default get_time().
author iabervon
date Sun, 28 Jan 2007 22:09:12 -0800
parents 3ec22a11c83e
children af8b86badfdb
line wrap: on
line source

include ../../mk/rules.mk
include ../../mk/init.mk
include ../../mk/objective.mk

SUBDIRS = widgets glade images ui

OBJECTIVE_BINS = audacious

LDFLAGS += $(AUDLDFLAGS)

LDADD = \
	-L.. $(LTLIBINTL)     \
	-L../libaudacious -laudacious \
	$(CHARDET_LIBS) \
	$(GTK_LIBS)      \
	$(LIBGLADE_LIBS) \
	$(REGEX_LIBS)    \
	./widgets/libwidgets.a

CFLAGS += \
	$(GTK_CFLAGS)      \
	$(LIBGLADE_CFLAGS) \
	$(BEEP_DEFINES)    \
	$(ARCH_DEFINES)    \
	$(REGEX_CFLAGS)    \
	-D_AUDACIOUS_CORE \
	-I.. -I../..   \
	-I../intl

HEADERS = \
	formatter.h \
	i18n.h \
	input.h \
	hook.h \
	main.h \
	output.h \
	playlist.h \
	playlist_container.h \
	plugin.h \
	strings.h \
	ui_fileinfopopup.h \
	ui_preferences.h \
	util.h \
	strings.h \
	titlestring.h \
	vfs.h \
	vfs_buffer.h \
	xconvert.h

SOURCES = \
	build_stamp.c \
	controlsocket.c \
	dnd.c \
	dock.c \
	effect.c \
	fft.c \
	formatter.c \
	general.c \
	genevent.c \
	glade.c \
	hints.c \
	hook.c \
	iir.c \
	iir_cfs.c \
	iir_fpu.c \
	input.c \
	logger.c \
	main.c \
	memorypool.c \
	output.c \
	pixbuf_effects.c \
	playback.c \
	playlist.c \
	playlist_container.c \
	playlist_manager.c \
	pluginenum.c \
	signals.c \
	strings.c \
	titlestring.c \
	ui_about.c \
	ui_credits.c \
	ui_equalizer.c \
	ui_fileinfo.c \
	ui_fileinfopopup.c \
	ui_fileopener.c \
	ui_main.c \
	ui_manager.c \
	ui_playlist.c \
	ui_preferences.c \
	ui_skinselector.c \
	ui_urlopener.c \
	urldecode.c \
	util.c \
	vfs_buffer.c \
	vfs_buffered_file.c \
	vfs.c \
	vfs_common.c \
	visualization.c \
	xconvert.c

OBJECTS = ${SOURCES:.c=.o}

desktop_DATA = audacious.desktop
desktopdir = $(datadir)/applications

build-prehook:
	if [ -d .svn ] && [ -f build_stamp.c ]; then		\
		rm -f build_stamp.c;				\
		printf "%10s     %-20s\n" RM build_stamp.c;	\
	fi

build_stamp.c:
	if [ -d .svn ] && [ ! -f build_stamp.c ]; then		\
		( \
			echo '/* SVN repository version.'; \
			echo ' * This auto-generated file must not be included in SVN; but must'; \
			echo ' * be included in release tarballs.'; \
			echo ' */'; \
			echo '#include <glib.h>'; \
			echo -n 'const gchar *svn_stamp = "'; \
			(svnversion -n .); \
			echo '";' \
		) > build_stamp.c; \
		printf "%10s     %-20s\n" STAMP build_stamp.c;	\
	fi;

audacious: $(OBJECTS) widgets/libwidgets.a
	$(CXX) $(LDFLAGS) $(OBJECTS) $(LDADD) -o $@ 
	@printf "%10s     %-20s\n" LINK $@

OBJECTIVE_DATA = audacious.desktop:$(datadir)/applications