Tcl Extension Architecture (TEA) Sample Extension

Check-in [908da789d2]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add gdb-test target.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:908da789d2b8b07d5b923da81d60dd8adcd7483e66b39eebca22c5b55de00e0b
User & Date: pooryorick 2018-06-05 18:59:29
Context
2018-06-15
06:17
Remove useless ranlib invocation. See also https://core.tcl.tk/tcl/info/9f5893b2e81f9576 check-in: c2dc5bb9fa user: stu tags: trunk
2018-06-05
18:59
Add gdb-test target. check-in: 908da789d2 user: pooryorick tags: trunk
18:40
Standardize environment variables for shell execution. check-in: 8a643db4a7 user: pooryorick tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to Makefile.in.

163
164
165
166
167
168
169







170
171
172
173
174
175
176
...
240
241
242
243
244
245
246
247

248
249
250
251
252
253




254
255
256
257
258
259
260
CLEANFILES	= @CLEANFILES@

CPPFLAGS	= @CPPFLAGS@
LIBS		= @PKG_LIBS@ @LIBS@
AR		= @AR@
CFLAGS		= @CFLAGS@
COMPILE		= $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)








.SUFFIXES: .c .$(OBJEXT)

#========================================================================
# Start of user-definable TARGETS section
#========================================================================

................................................................................
test: binaries libraries
	$(TCLSH) `@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS) \
		-load "package ifneeded $(PACKAGE_NAME) $(PACKAGE_VERSION) \
			[list load `@CYGPATH@ $(PKG_LIB_FILE)` $(PACKAGE_NAME)]"

shell: binaries libraries
	@$(TCLSH) $(SCRIPT)


gdb:
	$(EXEC_ENV) gdb $(TCLSH_PROG) $(SCRIPT)

VALGRIND     =  valgrind
VALGRINDARGS =	--tool=memcheck --num-callers=8 --leak-resolution=high \
		--leak-check=yes --show-reachable=yes -v





valgrind: binaries libraries
	$(EXEC_ENV) $(VALGRIND) $(VALGRINDARGS) $(TCLSH_PROG) \
		`@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS)

valgrindshell: binaries libraries
	$(EXEC_ENV) $(VALGRIND) $(VALGRINDARGS) $(TCLSH_PROG) $(SCRIPT)







>
>
>
>
>
>
>







 








>

|

<
|
|
>
>
>
>







163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
...
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
CLEANFILES	= @CLEANFILES@

CPPFLAGS	= @CPPFLAGS@
LIBS		= @PKG_LIBS@ @LIBS@
AR		= @AR@
CFLAGS		= @CFLAGS@
COMPILE		= $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)


GDB          =  gdb
VALGRIND     =  valgrind
VALGRINDARGS =	--tool=memcheck --num-callers=8 --leak-resolution=high \
		--leak-check=yes --show-reachable=yes -v


.SUFFIXES: .c .$(OBJEXT)

#========================================================================
# Start of user-definable TARGETS section
#========================================================================

................................................................................
test: binaries libraries
	$(TCLSH) `@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS) \
		-load "package ifneeded $(PACKAGE_NAME) $(PACKAGE_VERSION) \
			[list load `@CYGPATH@ $(PKG_LIB_FILE)` $(PACKAGE_NAME)]"

shell: binaries libraries
	@$(TCLSH) $(SCRIPT)


gdb:
	$(EXEC_ENV) $(GDB) $(TCLSH_PROG) $(SCRIPT)


gdb-test: binaries libraries 
	$(EXEC_ENV) $(GDB) --args $(TCLSH_PROG) `@CYGPATH@ $(srcdir)/tests/all.tcl` \
		$(TESTFLAGS) -singleproc 1 \
		-load "package ifneeded $(PACKAGE_NAME) $(PACKAGE_VERSION) \
			[list load `@CYGPATH@ $(PKG_LIB_FILE)` $(PACKAGE_NAME)]"


valgrind: binaries libraries
	$(EXEC_ENV) $(VALGRIND) $(VALGRINDARGS) $(TCLSH_PROG) \
		`@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS)

valgrindshell: binaries libraries
	$(EXEC_ENV) $(VALGRIND) $(VALGRINDARGS) $(TCLSH_PROG) $(SCRIPT)