-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.in
50 lines (41 loc) · 1.3 KB
/
Makefile.in
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
VERSION=1.1
PREFIX= ${DESTDIR}/usr/local
BINDIR= ${PREFIX}/bin
SHAREDIR=${PREFIX}/share/ex/${VERSION}
_CFLAGS=$(CFLAGS) -DUNIMP -Wall -Wextra -DSHAREDIR='"$(SHAREDIR)"' $(DEFINES) \
-fcommon \
#-DDEBUG $(__CDBG) $(__SAN)
_LDFLAGS=$(LDFLAGS) $(DEFINES) $(__SAN) \
-s
OBJ= ex.o ex_cmds.o exd.o ex_put.o ex_print.o exv.o ex_vmain.o exs.o \
3printf.o ex_io.o ex_pack.o ex_recover.o ex_set.o ex_get.o ex_subr.o \
ex_tty.o ex_ca.o ex_unix.o ex_init.o ex_re.o ex_source.o ex_glob.o \
ex_args.o exh.o ex_graphic.o ex_libS.o ex_addr.o ex_vcolumn.o \
ex_note.o exa.o exg.o ex_shift.o ex_vops.o ex_vcurs.o ex_vadjust.o \
ex_vclear.o ex_vkey.o ex_voperate.o exo.o ex_vset.o exj.o exz.o exm.o \
exx.o exw.o ex_file.o exu.o exr.o Version.o
.PHONY: install
all: a.out
clean:
rm -f a.out $(OBJ)
distclean: clean
rm -f Makefile config.log
install: ${BINDIR} ${LIBDIR} ${SHAREDIR}
install a.out ${BINDIR}/ex
ln -sf ${BINDIR}/ex ${BINDIR}/edit
cp -R how_ex ${SHAREDIR}/
chmod 755 ${SHAREDIR}/how_ex
chmod 644 ${SHAREDIR}/how_ex/*
cp exrefm/exrefm.pdf exrefm/exrefm.more ${SHAREDIR}/
chmod 644 ${SHAREDIR}/exrefm.*
uninstall:
for i in ex edit; do \
rm -f ${BINDIR}/$$i; \
done
rm -rf ${SHAREDIR}
${BINDIR} ${LIBDIR} ${SHAREDIR}:
mkdir -p $@
a.out: $(OBJ)
$(CC) $(_LDFLAGS) $(OBJ) $(TERMLIB)
.c.o:
$(CC) $(_CFLAGS) -c $<