fookb: Use automake

This commit is contained in:
Doug Torrance 2017-09-09 21:24:21 -04:00 committed by Carlos R. Mafra
parent 24d0d1fa03
commit f33317e016
3 changed files with 15 additions and 71 deletions

12
fookb/Makefile.am Normal file
View file

@ -0,0 +1,12 @@
bin_PROGRAMS = fookb
fookb_SOURCES = fookb.c fookb.h globals.c images.c images.h opts.c opts.h \
params.c params.h sound.c sound.h
dist_man_MANS = fookb.1x
dist_pkgdata_DATA = 1.xpm 2.xpm 3.xpm 4.xpm rus.xpm lat.xpm boom.xpm \
En.xpm Ru.xpm beep_spring.au
AM_CFLAGS = $(Xlib_CFLAGS) $(libXpm_CFLAGS) $(WUtil_CFLAGS) -DHAVE_WINGS_WUTIL_H
LIBS += $(Xlib_LIBS) $(libXpm_LIBS) $(WUtil_LIBS)
EXTRA_DIST = copyright fookb.cf KNOWN_BUGS LICENSE README.russian.koi8-r \
README.russian.utf-8 VERSION

View file

@ -1,70 +0,0 @@
BIN_PATH=@prefix@/bin
SHARE_PATH=@prefix@/share/fookb
MAN_PATH=@prefix@/man/man1
# FLAGS=-Wall -g -DDEBUG @DEFS@
FLAGS=-Wall -Werror @DEFS@
GCC=@CC@
INCLUDEDIR=@X_CFLAGS@
LIBDIR=@X_LIBS@
PRELIBS=@X_PRE_LIBS@
EXTRALIBS=@X_EXTRA_LIBS@
LIBS=@LIBS@
# DEBUG
# DLIBS=-lefence
DLIBS=
fookb: fookb.o params.o images.o sound.o opts.o globals.o
${GCC} ${PRELIBS} ${LIBDIR} ${EXTRALIBS} ${DLIBS} ${LIBS} -o fookb fookb.o params.o images.o sound.o opts.o globals.o @WUTIL_LIB@
fookb.o: fookb.c fookb.h params.h
${GCC} -c ${FLAGS} ${INCLUDEDIR} fookb.c
params.o: params.c params.h
${GCC} -c ${FLAGS} ${INCLUDEDIR} params.c
images.o: images.c images.h
${GCC} -c ${FLAGS} ${INCLUDEDIR} images.c
sound.o: sound.h sound.c params.h
${GCC} -c ${FLAGS} ${INCLUDEDIR} sound.c
opts.o: opts.h fookb.h opts.c
${GCC} -c ${FLAGS} ${INCLUDEDIR} opts.c
globals.o: globals.c
clean:
rm -f fookb fookb.o params.o images.o sound.o opts.o globals.o
superclean: clean
rm -f Makefile config.*
superpuperclean: superclean
rm -f configure
rm -rf autom4te.cache
hyperclean:
rm -f config.*
hyperpiperclean: hyperclean
rm -f configure
install: fookb
mkdir -p ${BIN_PATH}
mkdir -p ${SHARE_PATH}
mkdir -p ${MAN_PATH}
cp fookb ${BIN_PATH}
cp 1.xpm ${SHARE_PATH}
cp 2.xpm ${SHARE_PATH}
cp 3.xpm ${SHARE_PATH}
cp 4.xpm ${SHARE_PATH}
cp rus.xpm ${SHARE_PATH}
cp lat.xpm ${SHARE_PATH}
cp boom.xpm ${SHARE_PATH}
cp beep_spring.au ${SHARE_PATH}
cp fookb.1x ${MAN_PATH}

View file

@ -5,7 +5,9 @@ dnl
dnl vim:ts=8:sts=2:shiftwidth=2:expandtab:foldmethod=marker
dnl {{{1
AC_INIT(fookb.c)
AC_INIT([fookb], [3.1], [wmaker-dev@lists.windowmaker.org])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_SRCDIR([fookb.c])
dnl Checks for programs.
AC_PROG_CC