-
Notifications
You must be signed in to change notification settings - Fork 25
/
makefile
66 lines (46 loc) · 1.15 KB
/
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
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
#
# makefile
#
# Based on Anthonys Editor January 93
#
# Public Domain 1991, 1993 by Anthony Howe. No warranty.
#
CC = cc
CFLAGS = -O -Wall
LD = cc
LDFLAGS =
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) $(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/