1
0
mirror of https://github.com/biergaizi/codecrypt synced 2024-06-28 09:53:46 +00:00
codecrypt/autogen.sh
Mirek Kratochvil d1fe9b176b restructuralization
- removed cfs_qd (I didn't find a workable specification and it's still
  slow&ugly)
- removed mce_oc (it's just insecure and no one will use that)
- removed library structure, it isn't neccesary anyway
- added primitives for hashing to prepare for FMTseq
2012-12-22 14:09:19 +01:00

30 lines
953 B
Bash
Executable File

#!/bin/sh
# simple autogen script that generates basic layout for autotools.
COMMON_CPPFLAGS="-I/usr/local/include"
COMMON_CFLAGS="-Wall"
COMMON_LDFLAGS="-L/usr/local/lib"
COMMON_LDADD=""
OUT=Makefile.am
touch NEWS AUTHORS ChangeLog
echo > $OUT
DISTDIRS=""
echo "AUTOMAKE_OPTIONS = subdir-objects" >>$OUT
echo "dist_noinst_SCRIPTS = autogen.sh" `for i in $DISTDIRS ; do find \$i -type f ; done | tr "\n" " " ` >>$OUT
echo "bin_PROGRAMS = ccr" >>$OUT
echo "ccrdir = src/" >>$OUT
echo "ccr_SOURCES = `( find src/ -type f -name \*.c ; find src/ -type f -name \*.cpp ) |tr \"\n\" \" \" ` " >>$OUT
echo "noinst_HEADERS = `find src/ -type f -name \*.h |tr \"\n\" \" \" `" >>$OUT
echo "ccr_CPPFLAGS = -I\$(srcdir)/$i/ ${COMMON_CPPFLAGS}" >>$OUT
echo "ccr_CFLAGS = ${COMMON_CFLAGS}" >>$OUT
echo "ccr_LDFLAGS = ${COMMON_LDFLAGS}" >>$OUT
echo "ccr_LDADD = -lgmp ${COMMON_LDADD} " >>$OUT
libtoolize --force && aclocal && autoconf && automake --add-missing