wmifs: Switch to autotools for build.
This commit is contained in:
parent
37e7f6b54b
commit
a70ee1fafb
|
@ -1,42 +0,0 @@
|
|||
prefix =/usr/local
|
||||
bindir=${prefix}/bin
|
||||
datarootdir=${prefix}/share
|
||||
mandir=${datarootdir}/man
|
||||
man1dir=${mandir}/man1
|
||||
CONF=/etc
|
||||
|
||||
CC = gcc
|
||||
LIBS = -lXpm -lXext -lX11 -ldockapp
|
||||
OBJS = wmifs.o
|
||||
|
||||
CFLAGS = -Wall -O2 -g
|
||||
|
||||
INSTALL = /usr/bin/install
|
||||
INSTALL_DIR = $(INSTALL) -p -d -o root -g root -m 755
|
||||
INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755
|
||||
INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644
|
||||
|
||||
.c.o:
|
||||
$(CC) -DCONF=\"$(CONF)\" $(CPPFLAGS) $(CFLAGS) -c $< -o $*.o
|
||||
|
||||
wmifs: $(OBJS)
|
||||
$(CC) $(LDFLAGS) -o wmifs $^ $(LIBS)
|
||||
|
||||
all:: wmifs
|
||||
|
||||
clean::
|
||||
for i in $(OBJS) ; do \
|
||||
rm -f $$i ; \
|
||||
done
|
||||
rm -f wmifs
|
||||
|
||||
install::
|
||||
$(INSTALL_DIR) $(DESTDIR)$(bindir)
|
||||
$(INSTALL_DIR) $(DESTDIR)$(CONF)
|
||||
$(INSTALL_DIR) $(DESTDIR)$(man1dir)
|
||||
$(INSTALL_PROGRAM) wmifs $(DESTDIR)$(bindir)
|
||||
$(INSTALL_FILE) sample.wmifsrc $(DESTDIR)$(CONF)/wmifsrc
|
||||
$(INSTALL_FILE) wmifs.1 $(DESTDIR)$(man1dir)
|
||||
@echo "WMiFS installation finished..."
|
||||
@echo " "
|
||||
@echo "have fun! ;-)"
|
7
wmifs/Makefile.am
Normal file
7
wmifs/Makefile.am
Normal file
|
@ -0,0 +1,7 @@
|
|||
bin_PROGRAMS = wmifs
|
||||
dist_man_MANS = wmifs.1
|
||||
EXTRA_DIST = BUGS CHANGES HINTS sample.wmifsrc wmifs-mask.xbm wmifs-master.xpm
|
||||
|
||||
AM_CPPFLAGS = -DCONF=\"@sysconfdir@\"
|
||||
AM_CFLAGS = $(x11_CFLAGS) $(xpm_CFLAGS) $(dockapp_CFLAGS)
|
||||
LIBS += $(x11_LIBS) $(xpm_LIBS) $(dockapp_LIBS)
|
2
wmifs/autogen.sh
Executable file
2
wmifs/autogen.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
autoreconf --force --verbose --install
|
9
wmifs/configure.ac
Normal file
9
wmifs/configure.ac
Normal file
|
@ -0,0 +1,9 @@
|
|||
AC_INIT([wmifs], [1.6], [wmaker-dev@lists.windowmaker.org])
|
||||
AM_INIT_AUTOMAKE([foreign])
|
||||
AC_CONFIG_SRCDIR([configure.ac])
|
||||
AC_PROG_CC
|
||||
PKG_CHECK_MODULES([x11], [x11])
|
||||
PKG_CHECK_MODULES([xpm], [xpm])
|
||||
PKG_CHECK_MODULES([dockapp], [dockapp])
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_OUTPUT
|
Loading…
Reference in a new issue