stk/Tcl/Makefile.in

76 lines
1.9 KiB
Makefile
Raw Normal View History

1996-09-27 06:29:02 -04:00
#
# This Makefile permits to build a subset of libtcl.a. This subset contains
# unmodified functions of the original Tcl distribution which are used in
# the STk interpreter. Thoses functions are principally utilities functions
# such as hash tables, regexp, unix utilities
#
include ../config.make
1998-04-10 06:59:06 -04:00
CFLAGS = $(STKCFLAGS) $(DFLGS) -I. -I../Src @DEFS@
1998-06-09 07:07:40 -04:00
OBJ = panic.o tclHash.o tclGet.o regexp.o tclUtil.o @LIBOBJS@
1998-04-10 06:59:06 -04:00
EVOBJ = tclEvent.o tclTimer.o tclUnixNotfy.o tclUnixTime.o tclUnixEvent.o \
1998-06-09 07:07:40 -04:00
tclPreserve.o tclNotify.o tclAsync.o
1996-09-27 06:29:02 -04:00
all: libtcl.a libevtcl.a
libtcl.a: $(OBJ)
rm -f libtcl.a
ar q libtcl.a $(OBJ)
$(RANLIB) libtcl.a
libevtcl.a: $(EVOBJ)
rm -f libevtcl.a
ar q libevtcl.a $(EVOBJ)
$(RANLIB) libevtcl.a
install: all
install.libs: install
1998-04-30 07:04:33 -04:00
-if [ ! -d $(ardir) ] ; then mkdir -p $(ardir); fi
$(CP) libtcl.a $(ardir)
$(RANLIB) $(ardir)/libtcl.a
$(CP) libevtcl.a $(ardir)
$(RANLIB) $(ardir)/libevtcl.a
1996-09-27 06:29:02 -04:00
-if [ ! -d $(incdir) ] ; then mkdir -p $(incdir); fi
$(CP) tcl.h tclInt.h tclRegexp.h $(incdir)
clean:
1998-04-10 06:59:06 -04:00
@rm -f *.a *.o core *~ Makefile config.* tclConfig.sh
1996-09-27 06:29:02 -04:00
# Files which must be generated if system does not provide the function they
# implement
getcwd.o: ./compat/getcwd.c
$(CC) -c $(CFLAGS) ./compat/getcwd.c
opendir.o: ./compat/opendir.c
$(CC) -c $(CFLAGS) ./compat/opendir.c
strerror.o: ./compat/strerror.c
$(CC) -c $(CFLAGS) ./compat/strerror.c
strstr.o: ./compat/strstr.c
$(CC) -c $(CFLAGS) ./compat/strstr.c
strtod.o: ./compat/strtod.c
$(CC) -c $(CFLAGS) ./compat/strtod.c
strtol.o: ./compat/strtol.c
$(CC) -c $(CFLAGS) ./compat/strtol.c
strtoul.o: ./compat/strtoul.c
$(CC) -c $(CFLAGS) ./compat/strtoul.c
tmpnam.o: ./compat/tmpnam.c
$(CC) -c $(CFLAGS) ./compat/tmpnam.c
waitpid.o: ./compat/waitpid.c
$(CC) -c $(CFLAGS) ./compat/waitpid.c
fixstrtod.o: ./compat/fixstrtod.c
$(CC) -c $(CFLAGS) ./compat/fixstrtod.c
strncasecmp.o: ./compat/strncasecmp.c
$(CC) -c $(CFLAGS) ./compat/strncasecmp.c