46 lines
1.5 KiB
Makefile
46 lines
1.5 KiB
Makefile
# This Makefile is used to create several test cases for Tcl's load
|
|
# command. It also illustrates how to take advantage of configuration
|
|
# exported by Tcl to set up Makefiles for shared libraries.
|
|
# SCCS: @(#) Makefile.in 1.11 96/04/15 09:50:19
|
|
|
|
CC = @CC@
|
|
LIBS = @TCL_BUILD_LIB_SPEC@ @TCL_LIBS@ -lc
|
|
SHLIB_CFLAGS = @SHLIB_CFLAGS@
|
|
SHLIB_LD = @SHLIB_LD@
|
|
SHLIB_SUFFIX = @SHLIB_SUFFIX@
|
|
SHLIB_VERSION = @SHLIB_VERSION@
|
|
SRC_DIR = @srcdir@
|
|
TCL_VERSION= @TCL_VERSION@
|
|
|
|
CFLAGS = -g
|
|
CC_SWITCHES = $(CFLAGS) -I${SRC_DIR}/../../generic -DTCL_MEM_DEBUG \
|
|
${SHLIB_CFLAGS}
|
|
|
|
all: pkga${SHLIB_SUFFIX} pkgb${SHLIB_SUFFIX} pkgc${SHLIB_SUFFIX} pkgd${SHLIB_SUFFIX} pkge${SHLIB_SUFFIX}
|
|
|
|
pkga${SHLIB_SUFFIX}: $(SRC_DIR)/pkga.c
|
|
$(CC) -c $(CC_SWITCHES) $(SRC_DIR)/pkga.c
|
|
${SHLIB_LD} pkga.o -o pkga${SHLIB_SUFFIX} @SHLIB_LD_LIBS@
|
|
|
|
pkgb${SHLIB_SUFFIX}: $(SRC_DIR)/pkgb.c
|
|
$(CC) -c $(CC_SWITCHES) $(SRC_DIR)/pkgb.c
|
|
${SHLIB_LD} pkgb.o -o pkgb${SHLIB_SUFFIX} @SHLIB_LD_LIBS@
|
|
|
|
pkgc${SHLIB_SUFFIX}: $(SRC_DIR)/pkgc.c
|
|
$(CC) -c $(CC_SWITCHES) $(SRC_DIR)/pkgc.c
|
|
${SHLIB_LD} pkgc.o -o pkgc${SHLIB_SUFFIX} @SHLIB_LD_LIBS@
|
|
|
|
pkgd${SHLIB_SUFFIX}: $(SRC_DIR)/pkgd.c
|
|
$(CC) -c $(CC_SWITCHES) $(SRC_DIR)/pkgd.c
|
|
${SHLIB_LD} pkgd.o -o pkgd${SHLIB_SUFFIX} @SHLIB_LD_LIBS@
|
|
|
|
pkge${SHLIB_SUFFIX}: $(SRC_DIR)/pkge.c
|
|
$(CC) -c $(CC_SWITCHES) $(SRC_DIR)/pkge.c
|
|
${SHLIB_LD} pkge.o -o pkge${SHLIB_SUFFIX} @SHLIB_LD_LIBS@
|
|
|
|
clean:
|
|
rm -f *.o *${SHLIB_SUFFIX} config.cache config.log config.status lib.exp
|
|
|
|
distclean: clean
|
|
rm -f Makefile
|