~ubuntu-branches/ubuntu/saucy/ng/saucy

« back to all changes in this revision

Viewing changes to sys/unix/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Masayuki Hatta (mhatta)
  • Date: 2008-07-17 08:10:34 UTC
  • mfrom: (4.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080717081034-s7iitiihm9hl4jjg
Tags: 1.5~beta1-3
Bumped to Standards-Version: 3.8.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# $Id: Makefile.in,v 1.4.2.1 2003/02/23 14:17:14 amura Exp $
 
2
# Makefile.in for Ng / Mg++
 
3
#
 
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
 
7
#
 
8
# Revision 1.4  2001/02/18 17:07:39  amura
 
9
# append AUTOSAVE feature (but NOW not work)
 
10
#
 
11
# Revision 1.3  2000/12/21 16:58:28  amura
 
12
# add confclean target
 
13
#
 
14
# Revision 1.2  2000/12/01 10:06:16  amura
 
15
# add configure rule and fix strip rule
 
16
#
 
17
# Revision 1.1  2000/11/19 18:34:59  amura
 
18
# support GNU configure system
 
19
#
 
20
#
 
21
# Create from BSD Makefile by MURAMATSU Atsushi
 
22
 
 
23
SYS     = unix
 
24
 
 
25
CC           = @CC@
 
26
STRIP        = @STRIP@
 
27
INSTALL      = @INSTALL@
 
28
INSTALL_DATA = @INSTALL_DATA@
 
29
 
 
30
prefix      = @prefix@
 
31
exec_prefix = @exec_prefix@
 
32
BINDIR      = @bindir@
 
33
SHAREDIR    = @datadir@/ng
 
34
 
 
35
# CDEFS gets defines, and gets passed to lint. CFLAGS gets flags, and doesn't
 
36
# get passed to lint.
 
37
#
 
38
# Now, compile time options are defined in a "config.h".
 
39
#
 
40
CDEFS   = @DEFS@
 
41
CFLAGS  = @CFLAGS@ $(CDEFS)
 
42
LDFLAGS = @LDFLAGS@
 
43
LIBS    = @LIBS@
 
44
 
 
45
# If your machine don't have an alloca(), please define ALLOCA.
 
46
ALLOCA  = @ALLOCA@
 
47
 
 
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 \
 
50
          kinsoku.o jump.o
 
51
 
 
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
 
57
 
 
58
# System dependent objects
 
59
OOBJS = cinfo.o spawn.o ttyio.o tty.o ttykbd.o
 
60
 
 
61
OBJ = $(OBJS) $(IND) $(OOBJS) fileio.o canna.o $(ALLOCA)
 
62
 
 
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
 
69
 
 
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
 
73
 
 
74
#PROG = mg
 
75
PROG = ng
 
76
 
 
77
$(PROG):        $(OBJ)
 
78
        $(CC) $(CFLAGS) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS)
 
79
 
 
80
# strip mg once you're satisfied it'll run -- makes it much smaller
 
81
strip:
 
82
        $(STRIP) $(PROG)
 
83
 
 
84
install:
 
85
        $(INSTALL) -m 755 -o root -g wheel $(PROG) $(BINDIR)
 
86
        mkdir $(SHAREDIR)
 
87
        $(INSTALL_DATA) -o root -g wheel docs/* $(SHAREDIR)
 
88
        $(INSTALL_DATA) -o root -g wheel bin/* $(SHAREDIR)
 
89
 
 
90
lint: $(SRCS) $(OSRCS) $(INCS) $(OINCS)
 
91
        lint -ahbz $(CDEFS) $(SRCS) $(OSRCS)
 
92
 
 
93
sysconfig.h:
 
94
        ./configure
 
95
 
 
96
$(OBJ):         $(INCS) $(OINCS)
 
97
 
 
98
$(OOBJS):       $(INCS) $(OINCS)
 
99
 
 
100
buffer.o:       $(INCS) $(OINCS) kbd.h undo.h
 
101
 
 
102
cmode.o file.o line.o paragraph.o random.o region.o undo.o word.o: \
 
103
                $(INCS) $(OINCS) undo.h
 
104
 
 
105
complt.o:       $(INCS) $(OINCS) kbd.h complt.h
 
106
 
 
107
display.o keymap.o modes.o fileio.o: \
 
108
                $(INCS) $(OINCS) kbd.h
 
109
 
 
110
echo.o:         $(INCS) $(OINCS) key.h macro.h complt.h
 
111
 
 
112
extend.o help.o: \
 
113
                $(INCS) $(OINCS) kbd.h macro.h key.h
 
114
 
 
115
kanji.o:        $(INCS) $(OINCS) kinit.h
 
116
 
 
117
kbd.o:          $(INCS) $(OINCS) kbd.h macro.h key.h undo.h
 
118
 
 
119
macro.o canna.o: \
 
120
                $(INCS) $(OINCS) macro.h key.h
 
121
 
 
122
main.o search.o: \
 
123
                $(INCS) $(OINCS) macro.h
 
124
 
 
125
match.o:        $(INCS) $(OINCS) key.h
 
126
 
 
127
re_search.o:    $(INCS) $(OINCS) $(REINCS) macro.h
 
128
 
 
129
regex.o:        $(INCS) $(OINCS) $(REINCS)
 
130
 
 
131
skg.o:          $(INCS) $(OINCS) macro.h key.h undo.h
 
132
 
 
133
sysdef.h:       sys/$(SYS)/sysdef.h     # Update links, if needed.
 
134
        rm -f sysdef.h
 
135
        ln sys/$(SYS)/sysdef.h .
 
136
 
 
137
ttydef.h:       sys/default/ttydef.h
 
138
        rm -f ttydef.h
 
139
        ln sys/default/ttydef.h .
 
140
 
 
141
chrdef.h:       sys/default/chrdef.h
 
142
        rm -f chrdef.h
 
143
        ln sys/default/chrdef.h .
 
144
 
 
145
fileio.c:       sys/$(SYS)/fileio.c
 
146
        rm -f fileio.c
 
147
        ln sys/$(SYS)/fileio.c .
 
148
 
 
149
spawn.c:        sys/$(SYS)/spawn.c
 
150
        rm -f spawn.c
 
151
        ln sys/$(SYS)/spawn.c .
 
152
 
 
153
tty.c:          sys/default/tty.c
 
154
        rm -f tty.c
 
155
        ln sys/default/tty.c .
 
156
 
 
157
ttyio.c:        sys/$(SYS)/ttyio.c
 
158
        rm -f ttyio.c
 
159
        ln sys/$(SYS)/ttyio.c .
 
160
 
 
161
ttykbd.c:       sys/default/ttykbd.c
 
162
        rm -f ttykbd.c
 
163
        ln sys/default/ttykbd.c .
 
164
 
 
165
cinfo.c:        sys/default/cinfo.c
 
166
        rm -f cinfo.c
 
167
        ln sys/default/cinfo.c .
 
168
 
 
169
canna.c:        sys/$(SYS)/canna.c
 
170
        rm -f canna.c
 
171
        ln sys/$(SYS)/canna.c .
 
172
 
 
173
alloca.c:       sys/default/alloca.c
 
174
        rm -f alloca.c
 
175
        ln sys/default/alloca.c .
 
176
 
 
177
clean:; rm -f $(OBJ) $(OSRCS) $(OINCS) $(PROG)
 
178
 
 
179
confclean:      clean
 
180
        rm -f config.log config.cache config.status sysconfig.h Makefile