2014-10-22 21:34:34 +00:00
|
|
|
prefix =/usr/local
|
|
|
|
bindir=${prefix}/bin
|
2014-10-22 21:34:51 +00:00
|
|
|
datarootdir=${prefix}/share
|
|
|
|
mandir=${datarootdir}/man
|
|
|
|
man1dir=${mandir}/man1
|
2014-10-22 21:34:34 +00:00
|
|
|
CONF=/etc
|
|
|
|
|
|
|
|
CC = gcc
|
2015-08-15 22:22:58 +00:00
|
|
|
LIBS = -lXpm -lXext -lX11 -ldockapp
|
|
|
|
OBJS = wmifs.o
|
2014-10-22 21:34:28 +00:00
|
|
|
|
2014-10-22 21:34:34 +00:00
|
|
|
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
|
2014-10-22 21:34:28 +00:00
|
|
|
|
|
|
|
.c.o:
|
2015-05-27 22:33:22 +00:00
|
|
|
$(CC) -DCONF=\"$(CONF)\" $(CPPFLAGS) $(CFLAGS) -c $< -o $*.o
|
2014-10-22 21:34:28 +00:00
|
|
|
|
|
|
|
wmifs: $(OBJS)
|
2015-05-27 22:33:13 +00:00
|
|
|
$(CC) $(LDFLAGS) -o wmifs $^ $(LIBS)
|
2014-10-22 21:34:28 +00:00
|
|
|
|
|
|
|
all:: wmifs
|
|
|
|
|
|
|
|
clean::
|
|
|
|
for i in $(OBJS) ; do \
|
2014-10-22 21:34:34 +00:00
|
|
|
rm -f $$i ; \
|
2014-10-22 21:34:28 +00:00
|
|
|
done
|
2014-10-22 21:34:34 +00:00
|
|
|
rm -f wmifs
|
2014-10-22 21:34:28 +00:00
|
|
|
|
|
|
|
install::
|
2014-10-22 21:34:34 +00:00
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(bindir)
|
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(CONF)
|
2014-10-22 21:34:51 +00:00
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(man1dir)
|
2014-10-22 21:34:34 +00:00
|
|
|
$(INSTALL_PROGRAM) wmifs $(DESTDIR)$(bindir)
|
|
|
|
$(INSTALL_FILE) sample.wmifsrc $(DESTDIR)$(CONF)/wmifsrc
|
2014-10-22 21:34:51 +00:00
|
|
|
$(INSTALL_FILE) wmifs.1 $(DESTDIR)$(man1dir)
|
2015-05-27 22:33:13 +00:00
|
|
|
@echo "WMiFS installation finished..."
|
2014-10-22 21:34:34 +00:00
|
|
|
@echo " "
|
|
|
|
@echo "have fun! ;-)"
|