Skip to content

Commit adfc0c5

Browse files
committed
Decouple xmp and libxmp
The player application now has its own buildsystem separated from the library buildsystem. Signed-off-by: Claudio Matsuoka <[email protected]>
1 parent aa112da commit adfc0c5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1218
-24
lines changed

COPYING

+340
Large diffs are not rendered by default.

INSTALL

Whitespace-only changes.

Makefile

-24
This file was deleted.

Makefile.in

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
VERSION = 3.9.0
2+
3+
CC = @CC@
4+
CFLAGS = -c @CFLAGS@ @DEFS@ @CPPFLAGS@
5+
LD = @CC@
6+
LDFLAGS = @LDFLAGS@
7+
LIBS = @LIBS@
8+
INSTALL = @INSTALL@
9+
DESTDIR =
10+
prefix = @prefix@
11+
exec_prefix = @prefix@
12+
datarootdir = @datarootdir@
13+
BINDIR = @bindir@
14+
LIBDIR = @libdir@
15+
MANDIR = @mandir@/man1
16+
SYSCONFDIR = @sysconfdir@/xmp
17+
SHELL = /bin/sh
18+
19+
DIST = xmp-$(VERSION)
20+
DFILES = README INSTALL configure configure.ac Makefile.in
21+
DDIRS = src drivers
22+
V = 0
23+
24+
all: binaries
25+
26+
include src/Makefile
27+
include src/drivers/Makefile
28+
29+
CFLAGS += -I. -DVERSION=\"$(VERSION)\"
30+
31+
.SUFFIXES: .c .o .lo .a .so .dll
32+
33+
.c.o:
34+
@CMD='$(CC) $(CFLAGS) -o $*.o $<'; \
35+
if [ "$(V)" -gt 0 ]; then echo $$CMD; else echo CC $*.o ; fi; \
36+
eval $$CMD
37+
38+
binaries: src/xmp
39+
40+
clean:
41+
@rm -f $(OBJS)
42+
43+
install: install-xmp install-docs
44+
45+
depend:
46+
@echo Building dependencies...
47+
@echo > $@
48+
@for i in $(OBJS) do \
49+
c="$${i%.o}.c"; l="$${i%.o}.lo"; \
50+
$(CC) $(CFLAGS) -MM $$c | \
51+
sed "s!^.*\.o:!$$i $$l:!" >> $@ ; \
52+
done
53+
54+
dist: dist-prepare dist-subdirs
55+
56+
dist-prepare:
57+
rm -Rf $(DIST) $(DIST).tar.gz
58+
mkdir -p $(DIST)
59+
cp -RPp $(DFILES) $(DIST)/
60+
61+
dist-subdirs: $(addprefix dist-,$(DDIRS))
62+
chmod -R u+w $(DIST)/*
63+
tar cvf - $(DIST) | gzip -9c > $(DIST).tar.gz
64+
rm -Rf $(DIST)
65+
ls -l $(DIST).tar.gz
66+
67+
$(OBJS): Makefile
68+
69+
sinclude depend
70+

README

Whitespace-only changes.

configure.ac

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
dnl AC_CONFIG_AUX_DIR(./scripts)
2+
AC_INIT
3+
0>confdefs.h
4+
5+
AC_ARG_WITH(libxmp, [ --with-libxmp=<path> libxmp prefix (optional)],
6+
libxmp_path="$withval")
7+
8+
AC_PROG_CC
9+
10+
if test "$libxmp_path" != ""; then
11+
CINCS="${CINCS} -I${libxmp_path}/include"
12+
LIBS="${LIBS} -L${libxmp_path}/lib"
13+
fi
14+
CPPFLAGS="${CINCS}"
15+
16+
AC_CHECK_HEADER(xmp.h)
17+
if test "${ac_cv_header_xmp_h}" = "yes"; then
18+
AC_CHECK_LIB(xmp,xmp_player_start,,
19+
AC_MSG_ERROR(Can't find libxmp))
20+
else
21+
AC_MSG_ERROR(Can't find libxmp header files)
22+
fi
23+
24+
25+
AC_PROG_INSTALL
26+
AC_CONFIG_FILES([Makefile])
27+
AC_OUTPUT

0 commit comments

Comments
 (0)