46 lines
999 B
Makefile
46 lines
999 B
Makefile
################################################################
|
|
# Makefile for librfc822.a
|
|
#
|
|
# Author: Jan Wielemaker (wielemak@science.uva.nl)
|
|
################################################################
|
|
|
|
CC=@CC@
|
|
CFLAGS=@CFLAGS@ @DEFS@
|
|
LIBS=@LIBS@
|
|
AR=@AR@
|
|
RANLIB=@RANLIB@
|
|
|
|
ifeq (@PROLOG_SYSTEM@,yap)
|
|
|
|
srcdir=@srcdir@
|
|
|
|
SHLIB_CFLAGS=@SHLIB_CFLAGS@
|
|
|
|
%.o: $(srcdir)/%.c
|
|
$(CC) -c $(CFLAGS) -I../../../.. $(SHLIB_CFLAGS) $< -o $@
|
|
endif
|
|
|
|
OBJ= rfc822.o rfc822_getaddr.o rfc822_getaddrs.o \
|
|
rfc822_mkdate.o rfc822_parsedt.o rfc2047u.o \
|
|
rfc2047.o imapsubj.o imaprefs.o
|
|
|
|
all: librfc822.a
|
|
|
|
librfc822.a: $(OBJ)
|
|
rm -f librfc822.a
|
|
$(AR) r librfc822.a $(OBJ)
|
|
$(RANLIB) librfc822.a
|
|
|
|
|
|
################################################################
|
|
# Clean
|
|
################################################################
|
|
|
|
clean:
|
|
rm -f $(OBJ) *~ *.o *% a.out core config.log librfc822.a
|
|
|
|
distclean: clean
|
|
rm -f Makefile config.status config.h librfc822.a
|
|
rm -rf autom4te.cache
|
|
rm -f stamp-h1
|