1
# $Id: Makefile.in,v 1.4.2.1 2003/02/23 14:17:14 amura Exp $
2
# Makefile.in for Ng / Mg++
4
# $Log: Makefile.in,v $
5
# Revision 1.4.2.1 2003/02/23 14:17:14 amura
6
# move canna.c from sys/default to sys/unix
8
# Revision 1.4 2001/02/18 17:07:39 amura
9
# append AUTOSAVE feature (but NOW not work)
11
# Revision 1.3 2000/12/21 16:58:28 amura
12
# add confclean target
14
# Revision 1.2 2000/12/01 10:06:16 amura
15
# add configure rule and fix strip rule
17
# Revision 1.1 2000/11/19 18:34:59 amura
18
# support GNU configure system
21
# Create from BSD Makefile by MURAMATSU Atsushi
28
INSTALL_DATA = @INSTALL_DATA@
31
exec_prefix = @exec_prefix@
33
SHAREDIR = @datadir@/ng
35
# CDEFS gets defines, and gets passed to lint. CFLAGS gets flags, and doesn't
38
# Now, compile time options are defined in a "config.h".
41
CFLAGS = @CFLAGS@ $(CDEFS)
45
# If your machine don't have an alloca(), please define ALLOCA.
48
# Objects which only depend on the "standard" includes
49
OBJS = autosave.o basic.o dir.o dired.o shell.o version.o window.o \
52
# Those with unique requirements
53
IND = buffer.o complt.o display.o cmode.o echo.o extend.o file.o \
54
help.o kbd.o keymap.o line.o macro.o main.o match.o modes.o \
55
paragraph.o random.o region.o regex.o re_search.o search.o \
56
skg.o kanji.o undo.o word.o
58
# System dependent objects
59
OOBJS = cinfo.o spawn.o ttyio.o tty.o ttykbd.o
61
OBJ = $(OBJS) $(IND) $(OOBJS) fileio.o canna.o $(ALLOCA)
63
OSRCS = cinfo.c fileio.c spawn.c ttyio.c tty.c ttykbd.c canna.c alloca.c
64
SRCS = basic.c cmode.c dir.c dired.c file.c line.c match.c paragraph.c \
65
random.c region.c search.c shell.c version.c window.c word.c \
66
buffer.c complt.c display.c echo.c extend.c help.c kbd.c \
67
keymap.c macro.c main.c modes.c regex.c re_search.c kanji.c \
68
kinsoku.c skg.c jump.c undo.c
70
OINCS = ttydef.h sysdef.h chrdef.h
71
INCS = config.h def.h sysconfig.h
72
REINCS = regex_e.h regex_j.h regex_j.c regex_e.h kanji_.h kanji_.c
78
$(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS)
80
# strip mg once you're satisfied it'll run -- makes it much smaller
85
$(INSTALL) -m 755 -o root -g wheel $(PROG) $(BINDIR)
87
$(INSTALL_DATA) -o root -g wheel docs/* $(SHAREDIR)
88
$(INSTALL_DATA) -o root -g wheel bin/* $(SHAREDIR)
90
lint: $(SRCS) $(OSRCS) $(INCS) $(OINCS)
91
lint -ahbz $(CDEFS) $(SRCS) $(OSRCS)
96
$(OBJ): $(INCS) $(OINCS)
98
$(OOBJS): $(INCS) $(OINCS)
100
buffer.o: $(INCS) $(OINCS) kbd.h undo.h
102
cmode.o file.o line.o paragraph.o random.o region.o undo.o word.o: \
103
$(INCS) $(OINCS) undo.h
105
complt.o: $(INCS) $(OINCS) kbd.h complt.h
107
display.o keymap.o modes.o fileio.o: \
108
$(INCS) $(OINCS) kbd.h
110
echo.o: $(INCS) $(OINCS) key.h macro.h complt.h
113
$(INCS) $(OINCS) kbd.h macro.h key.h
115
kanji.o: $(INCS) $(OINCS) kinit.h
117
kbd.o: $(INCS) $(OINCS) kbd.h macro.h key.h undo.h
120
$(INCS) $(OINCS) macro.h key.h
123
$(INCS) $(OINCS) macro.h
125
match.o: $(INCS) $(OINCS) key.h
127
re_search.o: $(INCS) $(OINCS) $(REINCS) macro.h
129
regex.o: $(INCS) $(OINCS) $(REINCS)
131
skg.o: $(INCS) $(OINCS) macro.h key.h undo.h
133
sysdef.h: sys/$(SYS)/sysdef.h # Update links, if needed.
135
ln sys/$(SYS)/sysdef.h .
137
ttydef.h: sys/default/ttydef.h
139
ln sys/default/ttydef.h .
141
chrdef.h: sys/default/chrdef.h
143
ln sys/default/chrdef.h .
145
fileio.c: sys/$(SYS)/fileio.c
147
ln sys/$(SYS)/fileio.c .
149
spawn.c: sys/$(SYS)/spawn.c
151
ln sys/$(SYS)/spawn.c .
153
tty.c: sys/default/tty.c
155
ln sys/default/tty.c .
157
ttyio.c: sys/$(SYS)/ttyio.c
159
ln sys/$(SYS)/ttyio.c .
161
ttykbd.c: sys/default/ttykbd.c
163
ln sys/default/ttykbd.c .
165
cinfo.c: sys/default/cinfo.c
167
ln sys/default/cinfo.c .
169
canna.c: sys/$(SYS)/canna.c
171
ln sys/$(SYS)/canna.c .
173
alloca.c: sys/default/alloca.c
175
ln sys/default/alloca.c .
177
clean:; rm -f $(OBJ) $(OSRCS) $(OINCS) $(PROG)
180
rm -f config.log config.cache config.status sysconfig.h Makefile