dockapps/wmifs/Makefile
Rodolfo García Peñas (kix) 5a3e03c192 wmifs uses libdockapp
wmifs uses now the new library libdockapp that includes the old
wmgeneral library.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
2015-08-16 09:41:07 +01:00

43 lines
960 B
Makefile

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! ;-)"