dockapps/wmifs/Makefile
Doug Torrance 8a2de61837 wmifs: Update Makefile.
In particular,
- Drop unnecessary definition of DESTDIR.
- Drop LIBDIR; pointed to deprecated X11R6 directory.
- Honors CPPFLAGS and LDFLAGS build flags.
- Remove out-of-date version number from installation message.

Based in part on a patch from the Debian package [1].

[1] https://sources.debian.net/src/wmifs/1.4-2/debian/patches/hardening.patch/
2015-05-28 00:36:23 +01:00

46 lines
999 B
Makefile
Executable file

prefix =/usr/local
bindir=${prefix}/bin
datarootdir=${prefix}/share
mandir=${datarootdir}/man
man1dir=${mandir}/man1
CONF=/etc
CC = gcc
LIBS = -lXpm -lXext -lX11
OBJS = wmifs.o \
wmgeneral/wmgeneral.o \
wmgeneral/misc.o \
wmgeneral/list.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) $(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! ;-)"