-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.in
More file actions
103 lines (81 loc) · 1.62 KB
/
Makefile.in
File metadata and controls
103 lines (81 loc) · 1.62 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Makefile for mg
# This Makefile has been written by Han Boetes
# <han@mijncomputer.nl> and is released in Public Domain.
# *sigh* Those debian folks are really tidy on their licenses.
name= mg
prefix= /usr/local
bindir= $(prefix)/bin
libdir= $(prefix)/lib
includedir= $(prefix)/include
mandir= $(prefix)/man
CC= gcc
CFLAGS?= -O2 -pipe
CFLAGS+= -g -Wall -Werror
CFLAGS+= -D_BSD_SOURCE -D_XOPEN_SOURCE
LIBS= -lncurses
INSTALL= /usr/bin/install
STRIP= /usr/bin/strip
OBJS= autoexec.o \
basic.o \
buffer.o \
cinfo.o \
cmode.o \
dir.o \
dired.o \
display.o \
echo.o \
extend.o \
file.o \
fileio.o \
funmap.o \
help.o \
kbd.o \
keymap.o \
line.o \
macro.o \
main.o \
match.o \
modes.o \
paragraph.o \
random.o \
re_search.o \
region.o \
search.o \
spawn.o \
tty.o \
ttyio.o \
ttykbd.o \
undo.o \
version.o \
window.o \
word.o \
yank.o
OBJS+= grep.o theo.o
# # Portability stuff.
CFLAGS+= @extraflags@
OBJS+= @extraobjs@
LIBS+= @extralibs@
EXE_EXT= @exe_ext@
.c.o:
$(CC) $(CFLAGS) -c $<
all: $(name)
$(name): $(OBJS)
$(CC) $(LDFLAGS) $(OBJS) -o $(name) $(LIBS)
distclean: clean
-rm -f Makefile config.log config.h *~ *.core core.*
clean:
-rm -f *.o $(name)$(EXE_EXT)
install: $(name) $(name).1
$(INSTALL) -d $(DESTDIR)$(bindir)
$(INSTALL) -d $(DESTDIR)$(mandir)/man1
$(INSTALL) -m 755 $(name) $(DESTDIR)$(bindir)/$(name)
$(INSTALL) -m 444 $(name).1 $(DESTDIR)$(mandir)/man1/$(name).1
install-strip: install
$(STRIP) $(DESTDIR)$(bindir)/$(name)
uninstall:
rm -f \
$(DESTDIR)$(bindir)/$(name)$(EXE_EXT) \
$(DESTDIR)$(mandir)/man1/$(name).1
rebuild:
./configure ;\
make clean all