-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
51 lines (37 loc) · 1.43 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
DEFINES = -DSYS5 -DBSD_SELECT -DNO_CATGETS -DHAS_NCURSES -DHAS_UNISTD -DHAS_STDLIB -DHAS_CTYPE -DHAS_SYS_IOCTL -DHAS_SYS_WAIT -DHAS_UNISTD -DHAS_STDARG -DHAS_STDLIB -DHAS_SYS_WAIT -DSLCT_HDR
CFLAGS += -O2 -march=native -mtune=native -flto -fcommon -lncursesw
LDFLAGS+= -s
PREFIX?= /usr/
main : ncurses
install : main
install -Dm755 aee $(DESTDIR)$(PREFIX)bin/
install -Dm644 aee.1 $(DESTDIR)$(PREFIX)share/man/man1/
uninstall : clean
rm -rf $(DESTDIR)$(PREFIX)/bin/aee $(DESTDIR)$(PREFIX)/share/man/man1/aee.1
clean :
rm -f *.o aee ane xae_dir/*.o
all : ncurses cursedee
CC = clang
OBJS = aee.o control.o format.o localize.o srch_rep.o delete.o mark.o motion.o keys.o help.o windows.o journal.o file.o
.c.o:
$(CC) $(DEFINES) -c $*.c $(CFLAGS)
ncurses : $(OBJS)
$(CC) -o aee $(OBJS) $(CFLAGS) $(LDFLAGS)
cursedee :
make -f makefile.ee.newcurse.lib
aeelib :
make -f makefile.newcurse.lib
aee.o: aee.c aee.h new_curse.h aee_version.h
control.o: control.c new_curse.h aee.h
delete.o: delete.c new_curse.h aee.h
format.o: format.c new_curse.h aee.h
help.o: help.c new_curse.h aee.h
journal.o: journal.c new_curse.h aee.h
windows.o: windows.c new_curse.h aee.h
file.o: file.c new_curse.h aee.h
keys.o: keys.c new_curse.h aee.h
localize.o: localize.c new_curse.h aee.h
mark.o: mark.c new_curse.h aee.h
motion.o: motion.c new_curse.h aee.h
srch_rep.o: srch_rep.c new_curse.h aee.h
new_curse.o: new_curse.c new_curse.h