2011-03-25 18:45:13 +00:00
|
|
|
LIBDIR = -L/usr/X11R6/lib
|
|
|
|
LIBS = -lXpm -lXext -lX11
|
2014-09-14 17:57:21 +00:00
|
|
|
CFLAGS += -O2
|
2011-03-25 18:45:13 +00:00
|
|
|
OBJS = wmppp.o \
|
2015-05-20 03:30:56 +00:00
|
|
|
wmgeneral/wmgeneral.o \
|
|
|
|
wmgeneral/misc.o \
|
|
|
|
wmgeneral/list.o
|
2011-03-25 18:45:13 +00:00
|
|
|
|
|
|
|
.c.o:
|
2014-09-14 17:57:21 +00:00
|
|
|
cc -g -c $(CPPFLAGS) $(CFLAGS) -Wall $< -o $*.o
|
2011-03-25 18:45:13 +00:00
|
|
|
|
|
|
|
wmppp: $(OBJS)
|
2014-09-14 17:57:21 +00:00
|
|
|
cc -o wmppp $(LDFLAGS) $^ -lXext $(LIBDIR) $(LIBS)
|
2011-03-25 18:45:13 +00:00
|
|
|
|
|
|
|
all:: wmppp getmodemspeed
|
|
|
|
|
|
|
|
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
|
2014-09-14 17:57:20 +00:00
|
|
|
rm -f wmppp getmodemspeed
|
2011-03-25 18:45:13 +00:00
|
|
|
|
|
|
|
install::
|
2014-09-14 17:57:14 +00:00
|
|
|
|
2011-03-25 18:45:13 +00:00
|
|
|
cp -f wmppp /usr/local/bin/
|
|
|
|
chmod 755 /usr/local/bin/wmppp
|
|
|
|
chown root:root /usr/local/bin/wmppp
|
|
|
|
cp getmodemspeed /etc/ppp/
|
|
|
|
chmod 755 /etc/ppp/getmodemspeed
|
|
|
|
chown root.root /etc/ppp/getmodemspeed
|
|
|
|
cp -f user.wmppprc /etc/wmppprc
|
|
|
|
chmod 644 /etc/wmppprc
|
|
|
|
chown root.root /etc/wmppprc
|
|
|
|
cp -f user.wmppprc $(HOME)/.wmppprc
|
2014-09-14 17:57:15 +00:00
|
|
|
cp -f wmppp.1 /usr/local/share/man/man1
|
2011-03-25 18:45:13 +00:00
|
|
|
echo "WMPPP installation finished."
|