|
|
| |
# If your system needs extra libraries loaded in, define them here. | # If your system needs extra libraries loaded in, define them here. |
# In particular, add -lresolv if you are running bind 4.9.5 | # In particular, add -lresolv if you are running bind 4.9.5 |
LOADLIBS = @LIBS@ @INTLLIBS@ @LEXLIB@ |
LOADLIBS = @LIBS@ @LEXLIB@ |
# LOADLIBS = -lsocket3r -lunix3r # QNX | # LOADLIBS = -lsocket3r -lunix3r # QNX |
| |
# Extra sources/objects for library functions not provided on the host system. | # Extra sources/objects for library functions not provided on the host system. |
EXTRASRC = @EXTRASRC@ | EXTRASRC = @EXTRASRC@ |
# EXTRASRC = $(srcdir)/strcasecmp.c $(srcdir)/alloca.c # QNX | # EXTRASRC = $(srcdir)/strcasecmp.c $(srcdir)/alloca.c # QNX |
EXTRAOBJ = @EXTRAOBJ@ @INTLOBJS@ |
EXTRAOBJ = @EXTRAOBJ@ |
# EXTRAOBJ = strcasecmp.o alloca.o getopt.o getopt1.o | # EXTRAOBJ = strcasecmp.o alloca.o getopt.o getopt1.o |
| |
DESTDIR = | DESTDIR = |
|
|
.SUFFIXES: | .SUFFIXES: |
.SUFFIXES: .o .c .h .y .l .ps .dvi .info .texi | .SUFFIXES: .o .c .h .y .l .ps .dvi .info .texi |
| |
all: fetchmail po |
all: fetchmail |
| |
# Some makes apparently use .PHONY as the default goal if it is before `all'. | # Some makes apparently use .PHONY as the default goal if it is before `all'. |
.PHONY: all | .PHONY: all |
| |
fetchmail: $(objs) @INTLDEPS@ |
fetchmail: $(objs) |
$(CC) $(LDEFLAGS) $(LDFLAGS) $(objs) $(LOADLIBS) -o fetchmail | $(CC) $(LDEFLAGS) $(LDFLAGS) $(objs) $(LOADLIBS) -o fetchmail |
| |
intl: |
|
@INTLDEPS@: dummy |
|
cd intl; $(MAKE) |
|
|
|
po: dummy |
|
cd po; $(MAKE) |
|
|
|
dummy: |
|
|
|
# Tester for address parsing | # Tester for address parsing |
rfc822: rfc822.c | rfc822: rfc822.c |
gcc -DMAIN -g rfc822.c -o rfc822 | gcc -DMAIN -g rfc822.c -o rfc822 |
|
|
$(INSTALL_DATA) $(srcdir)/fetchmail.man $(DESTDIR)$(mandir)/fetchmail.$(manext) | $(INSTALL_DATA) $(srcdir)/fetchmail.man $(DESTDIR)$(mandir)/fetchmail.$(manext) |
rm -f $(DESTDIR)$(mandir)/fetchmailconf.$(manext) | rm -f $(DESTDIR)$(mandir)/fetchmailconf.$(manext) |
cd $(DESTDIR)$(mandir) && ln -s fetchmail.$(manext) fetchmailconf.$(manext) | cd $(DESTDIR)$(mandir) && ln -s fetchmail.$(manext) fetchmailconf.$(manext) |
@echo "Installing language catalogs..." |
|
-cd intl; $(MAKE) install |
|
cd po; $(MAKE) install |
|
| |
uninstall: | uninstall: |
rm -f $(DESTDIR)$(bindir)/fetchmail $(DESTDIR)$(bindir)/fetchmailconf | rm -f $(DESTDIR)$(bindir)/fetchmail $(DESTDIR)$(bindir)/fetchmailconf |