dockapps/wmppp.app/Makefile
Rodolfo García Peñas (kix) 5855afaf43 wmppp.app uses libdockapp
wmppp.app 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

42 lines
964 B
Makefile

LIBS = -lXpm -lXext -lX11 -ldockapp
OBJS = wmppp.o
INSTALL = install
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL) -m 644
PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
LIBDIR = $(PREFIX)/lib/wmppp.app
SYSCONFDIR = /etc
MANDIR = $(PREFIX)/share/man/man1
all:: wmppp getmodemspeed
%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
wmppp: $(OBJS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
getmodemspeed: getmodemspeed.o
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
clean::
for i in $(OBJS) ; do \
rm -f $$i; \
done
rm -f getmodemspeed.o
rm -f wmppp getmodemspeed
install::
$(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL_PROGRAM) wmppp $(DESTDIR)$(BINDIR)
$(INSTALL) -d $(DESTDIR)$(LIBDIR)
$(INSTALL_PROGRAM) getmodemspeed $(DESTDIR)$(LIBDIR)
$(INSTALL) -d $(DESTDIR)$(SYSCONFDIR)
$(INSTALL_DATA) user.wmppprc $(DESTDIR)$(SYSCONFDIR)/wmppprc
$(INSTALL) -d $(DESTDIR)$(MANDIR)
$(INSTALL_DATA) wmppp.1 $(DESTDIR)$(MANDIR)
echo "WMPPP installation finished."