-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·32 lines (25 loc) · 974 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
#
# evergreen - online only terminal mail user agent
#
# Copyright (C) 2024, 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 = evergreen
RM = rm -f
INSTALL = install
LIBS = -lncurses -lmenu -lform -L/usr/local/lib -Wl,-rpath=/usr/local/lib/ -letpan
ETPANCFLAGS=-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)
%.o : %.c
$(CC) $(CFLAGS) -c -funsigned-char -Wno-format-y2k $(ETPANCFLAGS) $^
install:
$(INSTALL) -m 755 $(EXE) "/usr/bin"
clean :
$(RM) *.i *.o $(EXE)
.PHONY: clean