wmbattery: Bump to version 2.51.
[dockapps.git] / wmymail / Makefile
blobd9812c2a8311bf81d00bebba178d6164f80d033e
2 # Makefile for wmymail
6 PROGRAM=wmymail
8 VERSION=$(shell cat VERSION)
9 DISTDIR=$(PROGRAM)-$(VERSION)
10 TARBALL=$(PROGRAM)-$(VERSION).tar.gz
11 LSM=$(PROGRAM)-$(VERSION).lsm
13 CC = cc
14 LIBS = -L/usr/X11R6/lib -lX11 -lXpm -lXext -ldockapp
15 CFLAGS = -O2 -I/usr/X11R6/include -Wall
16 XPMS = xpm/main.xpm xpm/mbox_1.xpm xpm/mbox_2.xpm xpm/mbox_3.xpm \
17 xpm/numbers.xpm xpm/unumbers.xpm
18 DISTFILES = Makefile README README.old ChangeLog wmymail.c \
19 raw-envelope.jpg lsm.in VERSION
21 default all target: wmymail
23 wmymail: wmymail.o
24 $(CC) $< $(CFLAGS) $(LIBS) -o $@
26 wmymail.o: wmymail.c $(XPMS)
27 $(CC) $(CFLAGS) $(MY_INCS) -o $@ -c $<
29 clean:
30 rm -f wmymail wmymail.o $(LSM) $(TARBALL)
31 rm -fr $(DISTDIR)
33 dist: $(TARBALL)
35 lsm: $(LSM)
37 $(LSM):
38 make-lsm
40 $(TARBALL): $(DISTFILES) $(LSM)
41 rm -fr $(DISTDIR)
42 mkdir -p $(DISTDIR)/xpm
43 cp $(DISTFILES) $(DISTDIR)
44 cp $(XPMS) wmymail-$(VERSION)/xpm
45 rm -f wmymail-$(VERSION).tar.gz
46 tar -c $(DISTDIR) | gzip > $(TARBALL)
47 make-lsm
48 cp $(LSM) $(DISTDIR)
49 tar -c $(DISTDIR) | gzip > $(TARBALL)