summaryrefslogtreecommitdiff
blob: ab17050a0479e39309c2cab984d4843060e724e6 (plain)
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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
diff -r d6d89bbc08e5 -r 2ef7f06a679f Makefile
--- a/Makefile	Thu Feb 11 15:08:35 2010 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-
-SQUIRREL=.
-MAKE=make
-
-sq32:
-	cd squirrel; $(MAKE) 
-	cd sqstdlib; $(MAKE) 
-	cd sq; $(MAKE) 
-
-sqprof:
-	cd squirrel; $(MAKE) sqprof
-	cd sqstdlib; $(MAKE) sqprof
-	cd sq; $(MAKE) sqprof
-
-sq64:
-	cd squirrel; $(MAKE) sq64
-	cd sqstdlib; $(MAKE) sq64
-	cd sq; $(MAKE) sq64
diff -r d6d89bbc08e5 -r 2ef7f06a679f Makefile.am
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile.am	Wed Feb 17 01:30:01 2010 -0500
@@ -0,0 +1,84 @@
+# autoreconf variables, recommended by libtoolize
+ACLOCAL_FLAGS = -I m4
+
+AM_CPPFLAGS = -Iinclude
+
+# custom installation directories
+examplesdir = $(docdir)/examples
+pkgconfigdir = $(libdir)/pkgconfig
+
+# installed things
+dist_doc_DATA = doc/sqstdlib2.pdf \
+	doc/squirrel2.pdf
+dist_examples_DATA = samples/ackermann.nut \
+	samples/array.nut \
+	samples/class.nut \
+	samples/classattributes.nut \
+	samples/coroutines.nut \
+	samples/delegation.nut \
+	samples/fibonacci.nut \
+	samples/flow.nut \
+	samples/generators.nut \
+	samples/hello.nut \
+	samples/list.nut \
+	samples/loops.nut \
+	samples/matrix.nut \
+	samples/metamethods.nut \
+	samples/methcall.nut \
+	samples/tailstate.nut
+nodist_pkgconfig_DATA = libsqstdlib.pc \
+	libsquirrel.pc
+bin_PROGRAMS = sq/sq
+lib_LTLIBRARIES = libsquirrel.la \
+	libsqstdlib.la
+include_HEADERS = include/sqstdaux.h \
+	include/sqstdblob.h \
+	include/sqstdio.h \
+	include/sqstdmath.h \
+	include/sqstdstring.h \
+	include/sqstdsystem.h \
+	include/squirrel.h
+
+
+# sources for installed things
+
+libsqstdlib_la_SOURCES = sqstdlib/sqstdaux.cpp \
+	sqstdlib/sqstdblob.cpp sqstdlib/sqstdblobimpl.h \
+	sqstdlib/sqstdio.cpp \
+	sqstdlib/sqstdmath.cpp \
+	sqstdlib/sqstdrex.cpp \
+	sqstdlib/sqstdstream.cpp sqstdlib/sqstdstream.h \
+	sqstdlib/sqstdstring.cpp \
+	sqstdlib/sqstdsystem.cpp
+libsqstdlib_la_LDFLAGS = -version-info 0:0:0
+libsqstdlib_la_LIBADD = libsquirrel.la
+
+libsquirrel_la_SOURCES = squirrel/sqapi.cpp \
+	squirrel/sqarray.h \
+	squirrel/sqbaselib.cpp \
+	squirrel/sqclass.cpp squirrel/sqclass.h \
+	squirrel/sqclosure.h \
+	squirrel/sqcompiler.cpp squirrel/sqcompiler.h \
+	squirrel/sqdebug.cpp \
+	squirrel/sqfuncproto.h \
+	squirrel/sqfuncstate.cpp squirrel/sqfuncstate.h \
+	squirrel/sqlexer.cpp squirrel/sqlexer.h \
+	squirrel/sqmem.cpp \
+	squirrel/sqobject.cpp squirrel/sqobject.h \
+	squirrel/sqopcodes.h \
+	squirrel/sqpcheader.h \
+	squirrel/sqstate.cpp squirrel/sqstate.h \
+	squirrel/sqstring.h \
+	squirrel/sqtable.cpp squirrel/sqtable.h \
+	squirrel/squserdata.h \
+	squirrel/squtils.h \
+	squirrel/sqvm.cpp squirrel/sqvm.h
+libsquirrel_la_LDFLAGS = -version-info 0:0:0
+
+sq_sq_SOURCES = sq/sq.c
+sq_sq_LDADD = libsqstdlib.la
+
+EXTRA_DIST = COMPILE COPYRIGHT HISTORY README \
+	doc/sqstdlib2.chm doc/squirrel2.chm \
+	squirrel.dsw sq/sq.dsp squirrel/squirrel.dsp sqstdlib/sqstdlib.dsp \
+	etc/minimal.c etc/test.nut
diff -r d6d89bbc08e5 -r 2ef7f06a679f configure.ac
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/configure.ac	Wed Feb 17 01:30:01 2010 -0500
@@ -0,0 +1,15 @@
+AC_INIT([squirrel],[2.2.4],[http://squirrel-lang.org/])
+
+# recommended by libtoolize:
+AC_CONFIG_MACRO_DIR([m4])
+
+AM_INIT_AUTOMAKE([foreign dist-bzip2 subdir-objects])
+
+AC_PROG_LIBTOOL
+AC_PROG_CC_C_O
+AC_PROG_CXX
+
+AC_CONFIG_FILES([Makefile
+libsquirrel.pc
+libsqstdlib.pc])
+AC_OUTPUT
diff -r d6d89bbc08e5 -r 2ef7f06a679f libsqstdlib.pc.in
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libsqstdlib.pc.in	Wed Feb 17 01:30:01 2010 -0500
@@ -0,0 +1,14 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: @PACKAGE_NAME@
+Description: A library for libsquirrel users
+Version: @VERSION@
+URL: @PACKAGE_BUGREPORT@
+Libs: -L${libdir} -lsqstdlib
+# I don't like hard-coding this here, but it's an internal
+# dependency so it's justified.
+Libs.private: -lsquirrel
+Cflags: -I${includedir}
diff -r d6d89bbc08e5 -r 2ef7f06a679f libsquirrel.pc.in
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libsquirrel.pc.in	Wed Feb 17 01:30:01 2010 -0500
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: @PACKAGE_NAME@
+Description: A dynamic scripting language for games
+Version: @VERSION@
+URL: @PACKAGE_BUGREPORT@
+Libs: -L${libdir} -lsquirrel
+Cflags: -I${includedir}
diff -r d6d89bbc08e5 -r 2ef7f06a679f sq/Makefile
--- a/sq/Makefile	Thu Feb 11 15:08:35 2010 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-SQUIRREL= ..
-
-
-OUT= $(SQUIRREL)/bin/sq
-INCZ= -I$(SQUIRREL)/include -I. -I$(SQUIRREL)/sqlibs
-LIBZ= -L$(SQUIRREL)/lib 
-LIB= -lsquirrel -lsqstdlib
-
-OBJS= sq.o
-	
-SRCS= sq.c
-	
-	
-sq32:
-	g++ -O2 -fno-rtti -o $(OUT) $(SRCS) $(INCZ) $(LIBZ) $(LIB)
-
-sqprof:
-	g++ -O2 -pg -fno-rtti -pie -gstabs -g3 -o $(OUT) $(SRCS) $(INCZ) $(LIBZ) $(LIB)
-	
-sq64:
-	g++ -O2 -fno-rtti -D_SQ64 -o $(OUT) $(SRCS) $(INCZ) $(LIBZ) $(LIB)
\ No newline at end of file
diff -r d6d89bbc08e5 -r 2ef7f06a679f sqstdlib/Makefile
--- a/sqstdlib/Makefile	Thu Feb 11 15:08:35 2010 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-SQUIRREL= ..
-
-
-OUT= $(SQUIRREL)/lib/libsqstdlib.a
-INCZ= -I$(SQUIRREL)/include -I. -Iinclude
-
-SRCS= \
-	sqstdblob.cpp \
-	sqstdio.cpp \
-	sqstdstream.cpp \
-	sqstdmath.cpp \
-	sqstdsystem.cpp \
-	sqstdstring.cpp \
-	sqstdaux.cpp \
-	sqstdrex.cpp
-	
-	
-sq32:
-	gcc -O2  -fno-rtti -Wall -c $(SRCS) $(INCZ)
-	ar rc $(OUT) *.o
-	rm *.o
-
-sqprof:
-	gcc -O2 -pg -fno-rtti -pie -gstabs -g3 -Wall -c $(SRCS) $(INCZ)
-	ar rc $(OUT) *.o
-	rm *.o
-sq64:
-	gcc -O2 -D_SQ64 -fno-rtti -Wall -c $(SRCS) $(INCZ)
-	ar rc $(OUT) *.o
-	rm *.o
diff -r d6d89bbc08e5 -r 2ef7f06a679f squirrel/Makefile
--- a/squirrel/Makefile	Thu Feb 11 15:08:35 2010 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,52 +0,0 @@
-SQUIRREL= ..
-
-
-OUT= $(SQUIRREL)/lib/libsquirrel.a
-INCZ= -I$(SQUIRREL)/include -I. -Iinclude
-DEFS= 
-LIB=	
-
-OBJS= \
-	sqapi.o \
-	sqbaselib.o \
-	sqcompiler.o \
-	sqdebug.o \
-	sqlexer.o \
-	sqobject.o \
-	sqparser.o \
-	sqstate.o \
-	sqtable.o \
-	sqvm.o \
-	sqmem.o \
-	sqclass.o
-	
-SRCS= \
-	sqapi.cpp \
-	sqbaselib.cpp \
-	sqfuncstate.cpp \
-	sqdebug.cpp \
-	sqlexer.cpp \
-	sqobject.cpp \
-	sqcompiler.cpp \
-	sqstate.cpp \
-	sqtable.cpp \
-	sqmem.cpp \
-	sqvm.cpp \
-	sqclass.cpp
-
-	
-	
-sq32:
-	gcc -O2  -fno-rtti -Wall -c $(SRCS) $(INCZ) $(DEFS)
-	ar rc $(OUT) *.o
-	rm *.o
-
-sqprof:
-	gcc -O2 -pg -fno-rtti -pie -gstabs -g3 -Wall -c $(SRCS) $(INCZ) $(DEFS)
-	ar rc $(OUT) *.o
-	rm *.o
-
-sq64:
-	gcc -O2  -D_SQ64 -fno-rtti -Wall -c $(SRCS) $(INCZ) $(DEFS)
-	ar rc $(OUT) *.o
-	rm *.o