chiark / gitweb /
Do not invalidate string rep of shared objs.
[chiark-tcl.git] / base / troglodyte-Makefile
index fbcfc8fc881365b111a83091fda9823911095734..d84d43e3d5a32f18bcb33243c0af935eb1b4fb04 100644 (file)
@@ -9,16 +9,10 @@ OBJS=         tables.o \
                bcmode.o \
                misc.o \
                algtables.o \
-               serpent.o \
-               sha1.o \
-               md5.o \
                crypto.o \
                parse.o
 
 HDRS=          hbytes.h \
-               serpent.h \
-               md5.h \
-               sha1.h \
                $(AUTO_HDRS)
 
 AUTO_HDRS=     tables.h
@@ -28,9 +22,13 @@ AUTOS=               $(AUTO_HDRS) $(AUTO_SRCS)
 TARGETS=       hbytes.so autocode.tcl autococo.tcl
 
 CC_CRYPTO=     $(CC) $(CFLAGS) $(CPPFLAGS) -O3
+CPPFLAGS=      -I../plocal/include $(TCL_MEM_DEBUG) $(CMDLINE_CPPFLAGS)
+LDFLAGS=       -L../plocal/lib
+LDLIBS=                -lnettle
 CFLAGS=                -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror \
                $(OPTIMISE)
 OPTIMISE=      -O2
+TCL_MEM_DEBUG= -DTCL_MEM_DEBUG
 
 all:           $(TARGETS) $(AUTOS)
 
@@ -50,14 +48,8 @@ autoco%.tcl: deco%gen.tcl decobogen.tcl general.tcl ./hbytes.so \
 %.o:           %.c $(HDRS)
                $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
 
-serpent.o:     serpent.c serpent.h serpentsboxes.h
-               $(CC_CRYPTO) -o $@ -c $<
-
-md5.o:         md5.c md5.h
-               $(CC_CRYPTO) -o $@ -c $<
-
-sha1.o:                sha1.c sha1.h
-               $(CC_CRYPTO) -o $@ -c $<
+#alg.o:                alg.c alg.h alg2.h
+#              $(CC_CRYPTO) -o $@ -c $<
 
 clean:
                rm -f $(OBJS) $(TARGETS) *~ ./#*#