1
0
mirror of http://mpg123.de/trunk/.git synced 2025-07-31 13:24:22 +03:00

Move example programs from src/ to doc/examples/ .

git-svn-id: svn://scm.orgis.org/mpg123/trunk@1148 35dc7657-300d-0410-a2e5-dc2837fedb53
This commit is contained in:
thor
2007-11-28 09:35:58 +00:00
parent f22684a813
commit bf8e644005
5 changed files with 21 additions and 23 deletions

View File

@ -1,9 +1,26 @@
targets = mpg123_to_wav scan id3dump mpglib
CFLAGS := -g -Wall $(shell pkg-config --cflags libmpg123 sndfile) all: $(targets)
LDFLAGS := $(shell pkg-config --libs libmpg123 sndfile)
MPG123_CFLAGS := $(shell pkg-config --cflags libmpg123)
MPG123_LDFLAGS := $(shell pkg-config --libs libmpg123)
SND_CFLAGS := $(shell pkg-config --cflags sndfile)
SND_LDFLAGS := $(shell pkg-config --libs sndfile)
# Oder of libs not that important here...
compile = $(CC) $(CFLAGS) $(LDFLAGS) $(MPG123_CFLAGS) $(MPG123_LDFLAGS)
mpg123_to_wav: mpg123_to_wav.c mpg123_to_wav: mpg123_to_wav.c
$(CC) $(CFLAGS) $(LDFLAGS) -o mpg123_to_wav mpg123_to_wav.c $(compile) $(SND_CFLAGS) $(SND_LDFLAGS)-o mpg123_to_wav mpg123_to_wav.c
scan: scan.c
$(compile) -o scan scan.c
id3dump:id3dump.c
$(compile) -o id3dump id3dump.c
mpglib: mpglib.c
$(compile) -o mpglib mpglib.c
clean: clean:
rm -f mpg123_to_wav rm -vf $(targets)

View File

@ -18,25 +18,6 @@ EXTRA_DIST = Makefile.legacy config.h.legacy legacy_module.c module.c
CLEANFILES = *.a CLEANFILES = *.a
bin_PROGRAMS = mpg123 bin_PROGRAMS = mpg123
EXTRA_PROGRAMS = mpglib scan id3dump
# Dammit, how do I cross-directory dependencies so that they actually _work_?
# Putting all rules in one makefile doesn't work with libtool as long as I got the sources organized in subdirs.
# That SUCKS.
mpglib_LDADD = libmpg123/libmpg123.la
mpglib_DEPENDENCIES = libmpg123/libmpg123.la
scan_LDADD = libmpg123/libmpg123.la
scan_DEPENDENCIES = libmpg123/libmpg123.la
scan_SOURCES = scan.c
id3dump_LDADD = libmpg123/libmpg123.la
id3dump_DEPENDENCIES = libmpg123/libmpg123.la
id3dump_SOURCES = id3dump.c
mpglib_SOURCES = \
mpglib.c
mpg123_SOURCES = \ mpg123_SOURCES = \
audio.c \ audio.c \