wmclockmon: remove unnecessary `AC_SUBST` of `LIBS`
[dockapps.git] / wmppp.app / Makefile
blob8329c658924ace74ebdc2c2819e8f75e2ad84425
1 LIBS = -lXpm -lXext -lX11 -ldockapp
2 OBJS = wmppp.o
4 INSTALL = install
5 INSTALL_PROGRAM = $(INSTALL)
6 INSTALL_DATA = $(INSTALL) -m 644
8 PREFIX = /usr/local
9 BINDIR = $(PREFIX)/bin
10 LIBDIR = $(PREFIX)/lib/wmppp.app
11 SYSCONFDIR = /etc
12 MANDIR = $(PREFIX)/share/man/man1
14 all:: wmppp getmodemspeed
16 %.o: %.c
17 $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
19 wmppp: $(OBJS)
20 $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
22 getmodemspeed: getmodemspeed.o
23 $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
25 clean::
26 for i in $(OBJS) ; do \
27 rm -f $$i; \
28 done
29 rm -f getmodemspeed.o
30 rm -f wmppp getmodemspeed
32 install::
33 $(INSTALL) -d $(DESTDIR)$(BINDIR)
34 $(INSTALL_PROGRAM) wmppp $(DESTDIR)$(BINDIR)
35 $(INSTALL) -d $(DESTDIR)$(LIBDIR)
36 $(INSTALL_PROGRAM) getmodemspeed $(DESTDIR)$(LIBDIR)
37 $(INSTALL) -d $(DESTDIR)$(SYSCONFDIR)
38 $(INSTALL_DATA) user.wmppprc $(DESTDIR)$(SYSCONFDIR)/wmppprc
39 $(INSTALL) -d $(DESTDIR)$(MANDIR)
40 $(INSTALL_DATA) wmppp.1 $(DESTDIR)$(MANDIR)
41 echo "WMPPP installation finished."