stk/Extensions/Makefile.in

62 lines
1.9 KiB
Makefile

#
# Copyright © 1993-1999 Erick Gallesio - I3S-CNRS/ESSI <eg@unice.fr>
#
#
# Permission to use, copy, modify, distribute,and license this
# software and its documentation for any purpose is hereby granted,
# provided that existing copyright notices are retained in all
# copies and that this notice is included verbatim in any
# distributions. No written agreement, license, or royalty fee is
# required for any of the authorized uses.
# This software is provided ``AS IS'' without express or implied
# warranty.
#
# Author: Erick Gallesio [eg@kaolin.unice.fr]
# Creation date: 6-Mar-1994 15:49
# Last file update: 3-Sep-1999 19:39 (eg)
include ../config.make
EXAMPLES = stack.$(SH_SUFFIX) \
when.$(SH_SUFFIX)
CFLAGS= $(SH_CCFLAGS) $(STKCFLAGS) $(DFLGS) -DUSE_TK @DEFS@ \
-I../Tk/generic -I../Tk/$(FLAVOR) -I../Tcl -I../Src -I../Mp $(XINCLUDES)
##############################################################################
.SUFFIXES: .$(SH_SUFFIX) .o .c
.o.$(SH_SUFFIX):
$(SH_LOADER) $(SH_LDFLAGS) $*.$(SH_SUFFIX) $<
if test -f a.out ;then mv a.out $*.$(SH_SUFFIX); fi
##############################################################################
all: $(EXTRA_OBJ)
chmod 0755 stk-genmake
# Following lines are needed for weird make commands.
# You really should use Gnu make....
hash.$(SH_SUFFIX): hash.o
sregexp.$(SH_SUFFIX): sregexp.o
process.$(SH_SUFFIX): process.o
socket.$(SH_SUFFIX): socket.o
posix.$(SH_SUFFIX): posix.o
html.$(SH_SUFFIX): html.o
pixmap.$(SH_SUFFIX): pixmap.o
jpeg.$(SH_SUFFIX): jpeg.o
base64.$(SH_SUFFIX): base64.o
examples: $(EXAMPLES)
install:
if test "$(EXTRA_OBJ)" != "" ; then $(CP) $(EXTRA_OBJ) $(execdir); fi
install.libs:
-if [ ! -d $(bindir) ] ; then mkdir -p $(bindir); fi
cp stk-genmake $(bindir)
chmod 0755 $(bindir)/stk-genmake
clean:
@/bin/rm -f *.o *.$(SH_SUFFIX) core *~ Makefile config.status \
config.log stk-genmake