forked from libxmp/xmp-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The player application now has its own buildsystem separated from the library buildsystem. Signed-off-by: Claudio Matsuoka <[email protected]>
- Loading branch information
Showing
43 changed files
with
1,218 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
VERSION = 3.9.0 | ||
|
||
CC = @CC@ | ||
CFLAGS = -c @CFLAGS@ @DEFS@ @CPPFLAGS@ | ||
LD = @CC@ | ||
LDFLAGS = @LDFLAGS@ | ||
LIBS = @LIBS@ | ||
INSTALL = @INSTALL@ | ||
DESTDIR = | ||
prefix = @prefix@ | ||
exec_prefix = @prefix@ | ||
datarootdir = @datarootdir@ | ||
BINDIR = @bindir@ | ||
LIBDIR = @libdir@ | ||
MANDIR = @mandir@/man1 | ||
SYSCONFDIR = @sysconfdir@/xmp | ||
SHELL = /bin/sh | ||
|
||
DIST = xmp-$(VERSION) | ||
DFILES = README INSTALL configure configure.ac Makefile.in | ||
DDIRS = src drivers | ||
V = 0 | ||
|
||
all: binaries | ||
|
||
include src/Makefile | ||
include src/drivers/Makefile | ||
|
||
CFLAGS += -I. -DVERSION=\"$(VERSION)\" | ||
|
||
.SUFFIXES: .c .o .lo .a .so .dll | ||
|
||
.c.o: | ||
@CMD='$(CC) $(CFLAGS) -o $*.o $<'; \ | ||
if [ "$(V)" -gt 0 ]; then echo $$CMD; else echo CC $*.o ; fi; \ | ||
eval $$CMD | ||
|
||
binaries: src/xmp | ||
|
||
clean: | ||
@rm -f $(OBJS) | ||
|
||
install: install-xmp install-docs | ||
|
||
depend: | ||
@echo Building dependencies... | ||
@echo > $@ | ||
@for i in $(OBJS) do \ | ||
c="$${i%.o}.c"; l="$${i%.o}.lo"; \ | ||
$(CC) $(CFLAGS) -MM $$c | \ | ||
sed "s!^.*\.o:!$$i $$l:!" >> $@ ; \ | ||
done | ||
|
||
dist: dist-prepare dist-subdirs | ||
|
||
dist-prepare: | ||
rm -Rf $(DIST) $(DIST).tar.gz | ||
mkdir -p $(DIST) | ||
cp -RPp $(DFILES) $(DIST)/ | ||
|
||
dist-subdirs: $(addprefix dist-,$(DDIRS)) | ||
chmod -R u+w $(DIST)/* | ||
tar cvf - $(DIST) | gzip -9c > $(DIST).tar.gz | ||
rm -Rf $(DIST) | ||
ls -l $(DIST).tar.gz | ||
|
||
$(OBJS): Makefile | ||
|
||
sinclude depend | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
dnl AC_CONFIG_AUX_DIR(./scripts) | ||
AC_INIT | ||
0>confdefs.h | ||
|
||
AC_ARG_WITH(libxmp, [ --with-libxmp=<path> libxmp prefix (optional)], | ||
libxmp_path="$withval") | ||
|
||
AC_PROG_CC | ||
|
||
if test "$libxmp_path" != ""; then | ||
CINCS="${CINCS} -I${libxmp_path}/include" | ||
LIBS="${LIBS} -L${libxmp_path}/lib" | ||
fi | ||
CPPFLAGS="${CINCS}" | ||
|
||
AC_CHECK_HEADER(xmp.h) | ||
if test "${ac_cv_header_xmp_h}" = "yes"; then | ||
AC_CHECK_LIB(xmp,xmp_player_start,, | ||
AC_MSG_ERROR(Can't find libxmp)) | ||
else | ||
AC_MSG_ERROR(Can't find libxmp header files) | ||
fi | ||
|
||
|
||
AC_PROG_INSTALL | ||
AC_CONFIG_FILES([Makefile]) | ||
AC_OUTPUT |
Oops, something went wrong.