forked from somzoli/alterMIME
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (26 loc) · 795 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Wedit Makefile for project altermime
#CC=cc
#CC=ccmalloc gcc
#CFLAGS=-Wall -g
#CFLAGS=-Wall -ggdb
# Optional builds
# ALTERMIME_PRETEXT - Allows prefixing of the email body with a file, sort of the
# opposite of a disclaimer.
ALTERMIME_OPTIONS=-DALTERMIME_PRETEXT
#ALTERMIME_OPTIONS=
CFLAGS=-Wall -g -I. -O2 $(ALTERMIME_OPTIONS)
OBJS= strstack.o mime_alter.o ffget.o pldstr.o filename-filters.o logger.o MIME_headers.o libmime-decoders.o boundary-stack.o qpe.o
.c.o:
${CC} ${CFLAGS} -c $*.c
all: altermime
altermime: altermime.c ${OBJS}
${CC} ${CFLAGS} altermime.c ${OBJS} -o altermime
# Build Install
install: altermime
strip altermime
cp altermime /usr/local/bin
chmod a+rx /usr/local/bin/altermime
uninstall:
rm -f /usr/local/bin/altermime
clean:
rm -f *.o altermime