8 VERSION
=$(shell cat VERSION
)
9 DISTDIR
=$(PROGRAM
)-$(VERSION
)
10 TARBALL
=$(PROGRAM
)-$(VERSION
).
tar.gz
11 LSM
=$(PROGRAM
)-$(VERSION
).lsm
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
24 $(CC
) $< $(CFLAGS
) $(LIBS
) -o
$@
26 wmymail.o
: wmymail.c
$(XPMS
)
27 $(CC
) $(CFLAGS
) $(MY_INCS
) -o
$@
-c
$<
30 rm -f wmymail wmymail.o
$(LSM
) $(TARBALL
)
40 $(TARBALL
): $(DISTFILES
) $(LSM
)
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
)
49 tar -c
$(DISTDIR
) | gzip
> $(TARBALL
)