File: Makefile.in

package info (click to toggle)
toshset 1.46-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 284 kB
  • ctags: 429
  • sloc: cpp: 1,997; sh: 1,507; ansic: 909; makefile: 132
file content (198 lines) | stat: -rw-r--r-- 4,943 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
# Makefile.in -- template makefile for compiling the toshset utility
#
# $Log: Makefile.in,v $
# Revision 1.13  2002/01/29 12:26:14  schwitrs
# added README, ChangeLog to FILES
#
# Revision 1.12  2002/01/29 01:43:54  schwitrs
# added smm.h
#
# Revision 1.11  2002/01/19 23:45:27  schwitrs
# *** empty log message ***
#
# Revision 1.10  2002/01/19 23:29:53  schwitrs
# *** empty log message ***
#
# Revision 1.9  2002/01/19 23:28:16  schwitrs
# *** empty log message ***
#
# Revision 1.8  2002/01/19 23:26:54  schwitrs
# *** empty log message ***
#
# Revision 1.7  2002/01/19 23:24:51  schwitrs
# dist fixes
#
# Revision 1.6  2002/01/19 23:20:51  schwitrs
# *** empty log message ***
#
# Revision 1.5  2002/01/19 23:16:23  schwitrs
# added easier means to change version number
# do rcs-checkin before dist
#
# Revision 1.4  2001/05/14 16:53:12  schwitrs
# *** empty log message ***
#
# Revision 1.3  2001/05/14 16:39:51  schwitrs
# added rcs-checkin rule
# added note to mail debian maintainer
# added rule toshset-static rule
#
# Revision 1.2  2000/07/04 15:16:58  schwitrs
# fixes for manpages, arch-dep bin dir, version
#
# Revision 1.1  2000/02/03 02:45:47  schwitrs
# Initial revision
#
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#

VERSION = @VERSION@

INSTALL = @INSTALL@
BININSTALL = @INSTALL_PROGRAM@
MANINSTALL = @INSTALL_DATA@
prefix = @prefix@
BINDESTDIR = @bindir@/
MANDESTDIR = @mandir@/man1


LDFLAGS = -s

PROGRAMS = @PROGRAMS@
MANPAGES = @MANPAGES@
CC = @CC@
CFLAGS = -m486 -O2 -Wall @OS_CFLAGS@ @DEBUGFLAGS@
CXXFLAGS = -DCPLUSPLUS

HEADERS = cdsList.hh  cdsString.hh  hci.h  sci.h  wildmat.h smm.h
C_SRC = sci.c hci.c wildmat.c
CXX_SRC = toshset.cc cdsList.cc cdsString.cc

FILES = $(C_SRC) $(CXX_SRC) $(HEADERS) Makefile.in configure.in toshset.1 \
	install-sh config.sub config.guess README ChangeLog

TOBJS = $(C_SRC:.c=.o) $(CXX_SRC:.cc=.o)

#ifeq ($(ARCH),)
    ARCH=$(shell uname -sr|sed 's/\.[0-9]\+\(-[0-9]\+\)\?$$/_/'|sed 's/ /_/g')
    ARCH:= $(ARCH)$(shell uname -m)
#endif
ARCHDIR=bin.$(ARCH)

all: $(ARCHDIR) arch-all
#depend: $(ARCHDIR) arch-depend

#
# get to the correct (architecture-dependent) directory 
#
ifeq ($(ARCHDEP),)

rcs-checkin:
	su $(LOGNAME) -c "ci -l $(FILES)"
	#chown schwitrs.schwitrs $(FILES)


clean:
	rm -rf $(ARCHDIR)
	rm -f Makefile.old 
distclean: clean
	rm -f core config.status config.cache config.log Makefile *~
dist: distclean rcs-checkin
	(echo -n "new version: ";\
	read newVersion; \
	rm -f ChangeLog; \
	rcs2log > ChangeLog; \
	rm -rf /tmp/toshset-$$newVersion; \
	mkdir /tmp/toshset-$$newVersion; \
	cp $(FILES) /tmp/toshset-$$newVersion; \
	sed 's/__VERSION__/'$$newVersion'/g' <configure.in \
		>/tmp/toshset-$$newVersion/configure.in; \
	cd /tmp/toshset-$$newVersion; \
	rm -f Makefile; \
	find -type d | xargs chmod 755; \
	find -type f | xargs chmod 644; \
	find -type d | xargs chown root:root; \
	find -type f | xargs chown root:root; \
	autoconf; \
	chmod 755 install-sh; \
	cd ..; \
	tar cvf - toshset-$$newVersion | \
		gzip -9 > toshset-$$newVersion.tgz; \
	echo Done.)
	echo "mail mvo@debian.org with update notice"
depend: $(ARCHDIR)
	$(CC) $(CFLAGS) -M $(C_SRC) |\
	sed 's/\/usr\/[^ ]* *//g;/^  \\$$/d' |\
	grep -v '^ \\$$' >$(ARCHDIR)/Makefile.dep
	$(CXX) $(CFLAGS) -M $(CXX_SRC) |\
	sed 's/\/usr\/[^ ]* *//g;/^  \\$$/d' |\
	grep -v '^ \\$$' >>$(ARCHDIR)/Makefile.dep
$(ARCHDIR):
	mkdir $(ARCHDIR)
 % : 
	cd $(ARCHDIR); $(MAKE) -f ../Makefile ARCHDEP=TRUE $@

else
#architecture-dependent rules

VPATH:=..

# cancel the default rule
% : RCS/%,v

%.d: %.c
	$(CC) $(CFLAGS) -M $< >$@
%.d: %.cc
	$(CXX) $(CFLAGS) $(CXXFLAGS) -M $< >$@


include $(CXX_SRC:.cc=.d)
include $(C_SRC:.c=.d)


##.c.o:
##	  $(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" -DBINDIR=\"$(BINDESTDIR)\"\
##	  -c $<

.cc.o:
	$(CXX) $(CFLAGS) $(CXXFLAGS) \
		-DVERSION=\"$(VERSION)\" -DBINDIR=\"$(BINDESTDIR)\" -c $<


arch-all: $(PROGRAMS)

hci.o: ../hci.c
	$(CC) -m486 -Wall -c $<

sci.o: ../sci.c
	$(CC)  -m486 -Wall -c $<

toshset: $(TOBJS)
	$(CXX) $(LDFLAGS) -g -o $@ $(TOBJS) $(WMLIBS)

toshset-static: $(TOBJS)
	$(CXX) $(LDFLAGS) -g -o $@ -Xlinker -Bstatic $(TOBJS) $(WMLIBS)

install: all
	$(BININSTALL) -m 755 $(PROGRAMS) $(BINDESTDIR)
	cd ..;$(BININSTALL) -m 644 $(MANPAGES) $(MANDESTDIR)




endif
#----- dependences -----