/[imapfilter]/imapfilter/Makefile
ViewVC logotype

Annotation of /imapfilter/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations)
Mon Sep 10 23:56:29 2001 UTC (22 years, 6 months ago) by lefcha
Branch: MAIN
Changes since 1.2: +1 -1 lines
CFLAGS small change.

1 lefcha 1.1 CC = cc
2 lefcha 1.3 CFLAGS = -Wall -O2
3 lefcha 1.1
4     DESTDIR = /usr/local
5     BINDIR = $(DESTDIR)/bin
6     MANDIR = $(DESTDIR)/man/man1
7    
8     INSTALL = install -c
9 lefcha 1.2 INST_DIR = install -d
10     INST_BIN = $(INSTALL) -m 755
11     INST_DOC = $(INSTALL) -m 644
12 lefcha 1.1
13     BIN = imapfilter
14 lefcha 1.2 OBJ = connect.o data.o file.o imap.o imapfilter.o log.o response.o request.o
15 lefcha 1.1 MAN = imapfilter.1
16    
17 lefcha 1.2 imapfilter: $(OBJ)
18     $(CC) $(CFLAGS) -o $(BIN) $(OBJ)
19 lefcha 1.1
20 lefcha 1.2 $(OBJ) : imapfilter.h config.h
21     data.o imapfilter.o imap.o file.o request.o: data.h
22 lefcha 1.1
23     install: imapfilter
24 lefcha 1.2 if test ! -d $(BINDIR); then $(INST_DIR) $(BINDIR); fi
25     $(INST_BIN) $(BIN) $(BINDIR)
26     if test ! -d $(MANDIR); then $(INST_DIR) $(MANDIR); fi
27     $(INST_DOC) $(MAN) $(MANDIR)
28 lefcha 1.1
29     uninstall:
30     rm -f $(BINDIR)/$(BIN) $(MANDIR)/$(MAN)
31    
32     clean:
33 lefcha 1.2 rm -f $(OBJ) $(BIN) core *~
34 lefcha 1.1
35     .PHONY : install uninstall clean

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26