--- Makefile.orig Wed Jan 26 23:11:08 2000 +++ Makefile Fri Nov 24 14:42:09 2000 @@ -1 +1 @@ -CFLAGS = -O2 -Wall +CFLAGS += -Wall -fPIC @@ -7,3 +7,3 @@ -BINDIR = /usr/local/bin -LIBDIR = /usr/local/lib -ETCDIR = /etc +BINDIR = ${PREFIX}/bin +LIBDIR = ${PREFIX}/lib +ETCDIR = ${PREFIX}/etc @@ -18 +18 @@ - $(LD) $(LDFLAGS) -o $@ $^ + $(CC) -shared -o $@ $> @@ -27,5 +27,5 @@ - install --mode=0755 muttzilla.so $(LIBDIR) - install --mode=0755 -d $(MZLIBDIR) - install --mode=0755 mzmail.sh mzmail.py mznews.sh mznews.py $(BINDIR) - install --mode=0644 $(MAILERLIBS) $(MZLIBDIR) - install --mode=0644 -b muttzilla.conf $(ETCDIR) + ${BSD_INSTALL_DATA} muttzilla.so $(LIBDIR) + -mkdir -p $(MZLIBDIR) + ${BSD_INSTALL_SCRIPT} mzmail.sh mzmail.py mznews.sh mznews.py $(BINDIR) + ${BSD_INSTALL_DATA} $(MAILERLIBS) $(MZLIBDIR) + ${BSD_INSTALL_DATA} muttzilla.conf $(ETCDIR)