-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·32 lines (25 loc) · 971 Bytes
/
Copy pathMakefile
File metadata and controls
executable file
·32 lines (25 loc) · 971 Bytes
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
#
# imapmv - imapmv, fast, flexible IMAP message move utility
#
# Copyright (C) 2026, Naveen Albert
#
# Naveen Albert <bbs@phreaknet.org>
#
CC = gcc
CFLAGS = -Wall -Werror -Wunused -Wextra -Wmaybe-uninitialized -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -Wmissing-declarations -Wmissing-format-attribute -Wnull-dereference -Wformat=2 -Wshadow -Wsizeof-pointer-memaccess -std=gnu99 -pthread -O3 -g -Wstack-protector -fno-omit-frame-pointer -fwrapv -fPIC -D_FORTIFY_SOURCE=2
EXE = imapmv
RM = rm -f
INSTALL = install
LIBS = -L/usr/local/lib -Wl,-rpath=/usr/local/lib/ -letpan
ETPAN_FLAGS=-I/usr/local/include
MAIN_SRC := $(wildcard *.c)
MAIN_OBJ = $(MAIN_SRC:.c=.o)
$(EXE): $(MAIN_OBJ)
$(CC) $(CFLAGS) -Wl,--export-dynamic -o $(EXE) *.o $(LIBS)
imapmv.o : imapmv.c
$(CC) $(CFLAGS) -c -funsigned-char -fno-stack-protector $(ETPAN_FLAGS) $^
install:
$(INSTALL) -m 755 $(EXE) "/usr/bin"
clean :
$(RM) *.i *.o $(EXE)
.PHONY: clean