kiss-mfavila-small/core-mod/core/atto-git/files/makefile.mid
2021-12-25 16:39:35 +00:00

69 lines
1.7 KiB
Plaintext

#
# makefile
#
# Based on Anthonys Editor January 93
#
# Public Domain 1991, 1993 by Anthony Howe. No warranty.
#
CFLAGS = -pipe -w -D_GLIBCXX_ASSERTIONS -D_FORTIFY_SOURCE=2 -O2 -march=haswell -fno-asynchronous-unwind-tables -momit-leaf-frame-pointer -ftree-loop-vectorize -fstack-protector-strong --param ssp-buffer-size=4 -fstack-clash-protection -fPIE -fPIC -Wl,--hash-style=gnu -fno-plt -fomit-frame-pointer -fmodulo-sched -fno-expensive-optimizations -fira-loop-pressure -fno-sched-spec-load -fconserve-stack -fisolate-erroneous-paths-attribute -fdelete-null-pointer-checks -fisolate-erroneous-paths-dereference -static
CC = cc
LD = cc
LDFLAGS = -Wl,-O1,-sort-common,-as-needed,-z,relro,-z,now
LIBS = -lncursesw
CP = cp
MV = mv
RM = rm
E =
O = .o
OBJ = command$(O) display$(O) gap$(O) key$(O) search$(O) buffer$(O) replace$(O) window$(O) complete$(O) hilite$(O) main$(O)
atto$(E) : $(OBJ)
$(LD) $(CFLAGS) $(LDFLAGS) -o atto$(E) $(OBJ) $(LIBS)
command$(O): command.c header.h
$(CC) $(CFLAGS) -c command.c
complete$(O): complete.c header.h
$(CC) $(CFLAGS) -c complete.c
display$(O): display.c header.h
$(CC) $(CFLAGS) -c display.c
gap$(O): gap.c header.h
$(CC) $(CFLAGS) -c gap.c
key$(O): key.c header.h
$(CC) $(CFLAGS) -c key.c
search$(O): search.c header.h
$(CC) $(CFLAGS) -c search.c
replace$(O): replace.c header.h
$(CC) $(CFLAGS) -c replace.c
window$(O): window.c header.h
$(CC) $(CFLAGS) -c window.c
buffer$(O): buffer.c header.h
$(CC) $(CFLAGS) -c buffer.c
hilite$(O): hilite.c header.h
$(CC) $(CFLAGS) -c hilite.c
main$(O): main.c header.h
$(CC) $(CFLAGS) -c main.c
clean:
-$(RM) $(OBJ) atto$(E)
install:
-$(MV) atto$(E) /usr/local/bin/