2015-08-15 22:23:01 +00:00
|
|
|
LIBS = -lXpm -lXext -lX11 -ldockapp
|
|
|
|
OBJS = wmppp.o
|
2011-03-25 18:45:13 +00:00
|
|
|
|
2015-05-20 03:31:05 +00:00
|
|
|
INSTALL = install
|
|
|
|
INSTALL_PROGRAM = $(INSTALL)
|
|
|
|
INSTALL_DATA = $(INSTALL) -m 644
|
2011-03-25 18:45:13 +00:00
|
|
|
|
2015-05-20 03:31:05 +00:00
|
|
|
PREFIX = /usr/local
|
|
|
|
BINDIR = $(PREFIX)/bin
|
|
|
|
LIBDIR = $(PREFIX)/lib/wmppp.app
|
|
|
|
SYSCONFDIR = /etc
|
|
|
|
MANDIR = $(PREFIX)/share/man/man1
|
2011-03-25 18:45:13 +00:00
|
|
|
|
|
|
|
all:: wmppp getmodemspeed
|
|
|
|
|
2015-05-20 03:31:05 +00:00
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
wmppp: $(OBJS)
|
|
|
|
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
|
|
|
|
|
|
|
|
getmodemspeed: getmodemspeed.o
|
|
|
|
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
|
|
|
|
|
2011-03-25 18:45:13 +00:00
|
|
|
clean::
|
|
|
|
for i in $(OBJS) ; do \
|
2014-09-14 17:57:20 +00:00
|
|
|
rm -f $$i; \
|
2011-03-25 18:45:13 +00:00
|
|
|
done
|
2015-05-20 03:31:05 +00:00
|
|
|
rm -f getmodemspeed.o
|
2014-09-14 17:57:20 +00:00
|
|
|
rm -f wmppp getmodemspeed
|
2011-03-25 18:45:13 +00:00
|
|
|
|
|
|
|
install::
|
2015-05-20 03:31:05 +00:00
|
|
|
$(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)
|
2011-03-25 18:45:13 +00:00
|
|
|
echo "WMPPP installation finished."
|