File: Makefile.in

package info (click to toggle)
xspread 3.1.1c-9
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,836 kB
  • ctags: 1,426
  • sloc: ansic: 19,342; yacc: 499; lisp: 231; makefile: 198; sh: 28; sed: 4
file content (218 lines) | stat: -rwxr-xr-x 5,909 bytes parent folder | download
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218

# Common prefix for installation directories.
# NOTE: This directory must exist when you start the install.
prefix		= @prefix@
exec_prefix	= $(prefix)
# Where to put the executables.
bindir		= $(exec_prefix)/bin
# Where to put the man pages.
manext		= 1
mandir		= $(exec_prefix)/man/man$(manext)
# Where to put the Info files.
infodir		= $(prefix)/info
# Where the source is
srcdir		= @srcdir@
libdir		= @x_libraries@
VPATH		= @srcdir@

YACC	= @YACC@
CC	= @CC@
CFLAGS	= @CFLAGS@
DEFS	= @DEFS@
LIBS	= @LIBS@ -L$(libdir)
INCLUDEDIR = -I. -I$(srcdir)
LN	= @LN_S@
RM	= rm -f
SHELL	= /bin/sh
INSTALL	= install
INSTALL_PROGRAM	= $(INSTALL)
INSTALL_DATA	= $(INSTALL)
INSTALLFLAGS	= -c
INSTPGMFLAGS	= -s

           DEPEND = makedepend
      DEPENDFLAGS =
           CCLINK = $(CC)
        LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)  $(EXTRA_LDOPTIONS) $(THREADS_LDFLAGS) $(LOCAL_LDFLAGS) $(LDPRELIB)
     CXXLDOPTIONS = $(CXXDEBUGFLAGS) $(CXXOPTIONS) $(EXTRA_LDOPTIONS) $(THREADS_CXXLDFLAGS) $(LOCAL_LDFLAGS) $(LDPRELIB)
        MKDIRHIER = mkdirhier
             LINT = lint
         LINTOPTS = -axz
        LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES) $(DEPEND_DEFINES)

# clear out the suffix list, then set it to what we need
.SUFFIXES:
.SUFFIXES: .o .c .y

# Warning - edit config.h if you want to change various things...

# All of the source files
# psc.c - Convert ascii input to SC/XSpread format.

SRCS =	cmds.c color.c crypt.c format.c gram.c graphic_main.c help.c \
	interp.c lex.c matrix.c plot_XY.c plot_bar.c plot_line.c \
	plot_pie.c plot_stk_bar.c range.c sc.c scXstuff.c screen.c \
	search.c sort.c utils.c version.c vi.c vmtbl.c xmalloc.c

OBJS =	cmds.o color.o crypt.o format.o graphic_main.o help.o interp.o \
	matrix.o plot_XY.o plot_bar.o plot_line.o plot_pie.o \
	plot_stk_bar.o range.o sc.o scXstuff.o screen.o search.o sort.o \
	utils.o version.o vi.o vmtbl.o xmalloc.o

HDRS =	config.h graphic_gvar.h pattern.h plot.h sc.h scXstuff.h \
	experres.h statres.h $(YTAB).h

#.c.o: $(HDRS)
#	echo hi mom
#	$(CC) $(INCLUDEDIR) $(CFLAGS) -c $< -o $@

# MS-DOS needs y_tab instead of the normal y.tab
#YTAB=y_tab
YTAB=y.tab

# For OSF(DEC Alpha things) add -ldnet_stub
EXTRA_LIBRARIES = $(XLIB) -lm -lcurses -ltermcap

PROGRAM = xspread

all:: $(PROGRAM) p$(PROGRAM)

$(PROGRAM): $(OBJS) $(DEPLIBS) gram.o lex.o
	$(RM) $@
	$(CCLINK) -o $@ $(LDOPTIONS) $(OBJS) gram.o lex.o $(LOCAL_LIBRARIES) $(LIBS) $(EXTRA_LOAD_FLAGS)

install:: xspread
	$(INSTALL_PROGRAM) $(INSTALLFLAGS) $(INSTPGMFLAGS) xspread $(bindir)/xspread

install:: pxspread
	$(INSTALL_PROGRAM) $(INSTALLFLAGS) $(INSTPGMFLAGS) pxspread $(bindir)/pxspread

uninstall::
	-$(RM) $(bindir)/xspread
	-$(RM) $(bindir)/pxspread


install.man:: xspread.man
	$(INSTALL_DATA) $(INSTALLFLAGS) $(INSTMANFLAGS) xspread.man $(mandir)/xspread.$(manext)
	$(INSTALL_DATA) $(INSTALLFLAGS) $(INSTMANFLAGS) pxspread.man $(mandir)/pxspread.$(manext)

uninstall::
	-$(RM) $(mandir)/xspread.$(manext)
	-$(RM) $(mandir)/pxspread.$(manext)

depend::
	$(DEPEND) $(DEPENDFLAGS) -- $(ALLDEFINES) $(DEPEND_DEFINES) -- $(SRCS)

lint:
	$(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
lint1:
	$(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)

#.c.o:
#	$(CC) $(INCLUDEDIR) $(CFLAGS) -c $< -o $@ 

$(OBJS):	$(HDRS)
	$(RM) $@
	$(CC) $(INCLUDEDIR) -c $(CFLAGS) $(LOCAL_DEFINES) $*.c

experres.h: gram.y eres.sed
	$(RM) experres.h
	sed < $(srcdir)/gram.y > experres.h -f $(srcdir)/eres.sed

statres.h: gram.y sres.sed
	$(RM) statres.h
	sed < $(srcdir)/gram.y > statres.h -f $(srcdir)/sres.sed

gram.o: sc.h $(YTAB).h gram.c experres.h statres.h
	$(CC) $(INCLUDEDIR) ${CFLAGS} -c $(srcdir)/gram.c 

$(YTAB).h: gram.c
gram.c: gram.y
	$(RM) $(YTAB).h $(YTAB).c gram.c
	$(YACC) -d gram.y
	mv $(YTAB).c gram.c

lex.o:	sc.h $(YTAB).h gram.o lex.c
	$(CC) $(INCLUDEDIR) ${CFLAGS} -c lex.c 

# 'psc' Ascii to sc format converter
pvmtbl.o: sc.h vmtbl.c config.h
	-$(RM) pvmtbl.c
	${LN} vmtbl.c pvmtbl.c
	$(CC) $(INCLUDEDIR) ${CFLAGS} -c -DPSC pvmtbl.c 
	$(RM) pvmtbl.c

putils.o: sc.h utils.c config.h
	-$(RM) putils.c
	${LN} utils.c putils.c
	$(CC) $(INCLUDEDIR) ${CFLAGS} -c -DPSC putils.c 
	$(RM) putils.c

pxmalloc.o: sc.h xmalloc.c config.h
	-$(RM) pxmalloc.c
	${LN} xmalloc.c pxmalloc.c
	$(CC) $(INCLUDEDIR) ${CFLAGS} -c -DPSC pxmalloc.c 
	$(RM) pxmalloc.c

p$(PROGRAM):	psc.c pvmtbl.o pxmalloc.o putils.o version.o
	$(CC) $(INCLUDEDIR) $(CFLAGS) ${LDFLAGS} -o $@ psc.c pvmtbl.o pxmalloc.o putils.o version.o ${PSCLIB} $(LIBS)

emptyrule:

clean:
	-$(RM) *.CKP *.ln *.BAK *.bak *.o core errs
	-$(RM) ,* *~ *.a .emacs_* tags TAGS make.log MakeOut "#"*
	-$(RM) $(PROGRAM) p$(PROGRAM)

distclean: clean
	-$(RM) Makefile config.h
	-$(RM) config.log config.cache

maintainerclean: distclean
	-$(RM) gram.c $(YTAB).h experres.h statres.h

tags:
	ctags *.[chy]

TAGS:
	etags *.[chy]

install::
	@echo "install in $(CURRENT_DIR) done"

uninstall::
	@echo "uninstall of $(PROGRAM) done"

install.man::
	@echo "install.man in $(CURRENT_DIR) done"

install.linkkit::
	@echo "install.linkkit in $(CURRENT_DIR) done"

# finish this (like test)
test: check
check: $(PROGRAM)
	cd tests; $(MAKE)

# For an explanation of the following Makefile rules, see node
# `Automatic Remaking' in GNU Autoconf documentation.
# check to make sure configure has been run...
Makefile: $(srcdir)/Makefile.in config.status
	CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
config.status: configure
	./config.status --recheck
# maintainer things: need to make sure config_h.in & configure are up to date
# next 3 require GNU autoconfig to run
configure: configure.in
	cd $(srcdir) && autoconf
config.h: stamp-h
stamp-h: config_h.in config.status
	CONFIG_FILES= CONFIG_HEADERS=config.h:config_h.in ./config.status
	echo timestamp >stamp-h
config.h.in: acconfig.h configure.in
	cd $(srcdir) && autoheader

includes:

# -----------------------------------------------------------------------
# dependencies generated by makedepend