forked from troglobit/mg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
64 lines (61 loc) · 1.64 KB
/
Makefile.am
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
bin_PROGRAMS = mg
mg_SOURCES = basic.c bell.c buffer.c cinfo.c dir.c display.c echo.c \
extend.c file.c fileio.c funmap.c help.c kbd.c keymap.c \
line.c macro.c main.c match.c modes.c paragraph.c \
region.c search.c spawn.c tty.c ttyio.c ttykbd.c \
undo.c util.c version.c window.c word.c yank.c \
chrdef.h def.h funmap.h kbd.h key.h macro.h pathnames.h
mg_CFLAGS = -U_FORTIFY_SOURCE -D_GNU_SOURCE $(lite_CFLAGS)
if TINY
mg_CFLAGS += -fomit-frame-pointer -fdata-sections -ffunction-sections \
-fno-stack-protector -fno-asynchronous-unwind-tables \
-fmerge-all-constants -fno-ident -finline-small-functions \
-Wl,--gc-sections -Wl,-z,norelro -Wl,--hash-style=gnu \
-Wl,--build-id=none
endif
mg_LDADD = $(lite_LIBS)
dist_man1_MANS = mg.1
doc_DATA = README
EXTRA_DIST = tutorial
#
# More or less standalone extensions.
#
if AUTOEXEC
mg_SOURCES += autoexec.c
endif
if CMODE
mg_SOURCES += cmode.c
endif
if COMPILE
mg_SOURCES += grep.c
endif
if CSCOPE
mg_SOURCES += cscope.c
endif
if CTAGS
mg_SOURCES += tags.c
endif
if DIRED
mg_SOURCES += dired.c
endif
if REGEX
mg_SOURCES += re_search.c
endif
if THEO
mg_SOURCES += theo.c
endif
#
# Target to run when building a release
#
release: dist
@for file in $(DIST_ARCHIVES); do \
md5sum $$file > ../$$file.md5; \
done
@mv $(DIST_ARCHIVES) ../
@echo
@echo "Resulting release files:"
@echo "================================================================="
@for file in $(DIST_ARCHIVES); do \
printf "$$file \tDistribution tarball\n"; \
printf "$$file.md5\t"; cat ../$$file.md5 | cut -f1 -d' '; \
done