summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-09-18 22:19:25 -0400
committermidipix <writeonce@midipix.org>2015-09-26 11:05:27 -0400
commit0da0f7bab3e248355dcbb185e86235e067b35413 (patch)
tree3a7508f9f9ab50df795f13d1bd157ea68b56745e
parent2996ff0ef728a18d78f44d43288ddbe4eb230f9e (diff)
downloaddalist-0da0f7bab3e248355dcbb185e86235e067b35413.tar.bz2
dalist-0da0f7bab3e248355dcbb185e86235e067b35413.tar.xz
makefile replacement: step 1/2: remove the project's ad-hoc makefile.
-rw-r--r--Makefile.in14
-rw-r--r--config.lzy27
-rwxr-xr-xconfigure115
-rw-r--r--dalist.lzy127
4 files changed, 0 insertions, 283 deletions
diff --git a/Makefile.in b/Makefile.in
deleted file mode 100644
index b370cb0..0000000
--- a/Makefile.in
+++ /dev/null
@@ -1,14 +0,0 @@
-all:
- ./lazy -x build
-
-install:
- ./lazy -x build -e install
-
-clean:
- rm -rf src
- rm -rf lib
- rm -f lazy
- rm -f lazy.config.tag
- rm -f lz_stack
- rm -f *.objs
- rm -rf *.lst
diff --git a/config.lzy b/config.lzy
deleted file mode 100644
index 33af62a..0000000
--- a/config.lzy
+++ /dev/null
@@ -1,27 +0,0 @@
-# package
-lz_package=dalist
-
-
-# toolchain
-lz_default_target=x86_64-nt64-midipix
-lz_default_arch=x86_64
-lz_default_compiler=gcc
-
-
-# lazy
-lz_cflags_cmdline=
-lz_cxxflags_cmdline=
-
-lz_cflags_debug=
-lz_cflags_release=
-
-lz_cflags_include_first=
-lz_cflags_include_last=
-lz_cflags_include_cmdline=
-lz_cxxflags_include_cmdline=
-
-lz_exec_prefix=
-lz_bindir=
-lz_libdir=
-lz_includedir=
-lz_syslibdir=
diff --git a/configure b/configure
deleted file mode 100755
index eb7a40c..0000000
--- a/configure
+++ /dev/null
@@ -1,115 +0,0 @@
-#!/bin/sh
-
-# a simple configure-make wrapper for use in conjunction with the 'lazy' build script.
-# 'lazy' is deviant, occasionally useful, and permissively licensed; get_lazy() below,
-# then look for configure.template in the root directory.
-
-init_vars()
-{
- lz_config_dir=`readlink -f $(dirname $0)`
- lz_pwd=`pwd`
-
- if [ x"$lz_config" = x ]; then
- . $lz_config_dir/config.lzy || exit 2
- else
- . "$lz_config" || exit 2
- fi
-}
-
-
-error_msg()
-{
- echo $@ >&2
-}
-
-
-require_out_of_tree()
-{
- if [ x"$lz_config_dir" = x"$lz_pwd" ]; then
- error_msg "$lz_package: out-of-tree builds are required."
- error_msg "please invoke configure again from a clean build directory."
- exit 2
- fi
-
- return 0
-}
-
-
-get_lazy()
-{
- which lazy && lazy=`which lazy` && return 0
-
- if ! [ -d slazy ]; then
- git clone git://midipix.org/lazy slazy || exit 2
- fi
-
- lazy=$lz_pwd/slazy/lazy
-}
-
-
-lazy_approach()
-{
- if [ x"$lz_prefix" = x ]; then
- error_msg "prefix is required."
- exit 2
- fi
-
- if [ x"$lz_arch" = x ]; then lz_arch=$lz_default_arch; fi
- if [ x"$lz_target" = x ]; then lz_target=$lz_default_target; fi
- if [ x"$lz_compiler" = x ]; then lz_compiler=$lz_default_compiler; fi
- if [ x"$lz_compiler" = x ]; then lz_compiler=gcc; fi
-
- $lazy -x config $lz_debug \
- -t $lz_target \
- -a $lz_arch \
- -c $lz_compiler \
- -n $lz_package \
- -p $lz_config_dir \
- -f $lz_prefix \
- || exit 2
-
-}
-
-
-lazy_copy()
-{
- cp "$lz_config_dir/Makefile.in" "$lz_pwd/Makefile"
-}
-
-
-for arg ; do
- case "$arg" in
- --help) usage
- ;;
-
- --prefix=*)
- lz_prefix=${arg#*=}
- ;;
- --host=*)
- lz_target=${arg#*=}
- ;;
- --target=*)
- lz_target=${arg#*=}
- ;;
- --compiler=*)
- lz_compiler=${arg#*=}
- ;;
- --config=*)
- lz_config=${arg#*=}
- ;;
- --debug)
- lz_debug='-d'
- ;;
- *)
- error_msg ${arg#}: "unsupported config argument."
- exit 2
- ;;
- esac
-done
-
-
-init_vars
-require_out_of_tree
-get_lazy
-lazy_approach
-lazy_copy
diff --git a/dalist.lzy b/dalist.lzy
deleted file mode 100644
index cf4eef9..0000000
--- a/dalist.lzy
+++ /dev/null
@@ -1,127 +0,0 @@
-lz_project_rules()
-{
- lz_rules="all install xstatic install_xstatic"
-}
-
-lz_project_definitions()
-{
- dalist_lib_name=libdalist
- dalist_so_name="$lz_build_dir/lib/$dalist_lib_name$lz_dylib_ext"
- dalist_a_name="$lz_build_dir/lib/$dalist_lib_name$lz_stlib_ext"
- dalist_so_def_name="$lz_build_dir/lib/$dalist_lib_name$lz_libdef_ext"
- dalist_implib_name="$lz_build_dir/lib/$dalist_lib_name$lz_implib_ext"
-
- lz_cflags_common="-DMIDIPIX_FREESTANDING
- -D__NT$lz_arch_bits \
- -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__ \
- -Werror=all -fno-builtin -ffreestanding"
-
-
- # lz_cflags_extra="-Os -fno-stack-protector -fomit-frame-pointer -fno-unwind-tables -fno-asynchronous-unwind-tables"
-
- dalist_so_ldflags="-shared --image-base=0x320000 \
- --entry "$lz_default_underscore"dalist_lib_entry_point@12 \
- --exclude-all-symbols \
- --output-def $dalist_so_def_name \
- --out-implib $dalist_implib_name \
- --subsystem=windows"
-
- lz_cflags_include_common="-I$lz_project_dir/include"
-
- if [ "$MIDIPIX_ROOT"x != x ]; then
- lz_cflags_include_common="$lz_cflags_include_common -I$MIDIPIX_ROOT/include"
- fi
-
- dalist_so_obj_list=dalist.so.objs
- dalist_so_src_list=dalist.so.src.lst
-
- dalist_a_obj_list=dalist.a.objs
- dalist_a_src_list=dalist.a.src.lst
-}
-
-dalist_shared()
-{
- lz_src_dirs="src"
- lz_cflags_step="-DDALIST_BUILD"
-
- if ! [ "$lz_pecoff_winnt"x = yesx ]; then
- lz_cflags_step="$lz_cflags_step -fpic"
- fi
-
- lz_compile "$dalist_so_obj_list" "$dalist_so_src_list" "$lz_dyobj_ext"
- lz_link "$dalist_so_obj_list" "$dalist_so_src_list" "$dalist_so_name" \
- "$dalist_so_ldflags" \
- ''
-}
-
-
-dalist_static()
-{
- lz_src_dirs="src"
-
- lz_compile "$dalist_a_obj_list" "$dalist_a_src_list" "$lz_stobj_ext"
- lz_archive "$dalist_a_obj_list" "$dalist_a_src_list" "$dalist_a_name"
-}
-
-
-dalist_xstatic()
-{
- lz_src_dirs="src"
- lz_cflags_step="-DDALIST_BUILD"
-
- lz_compile "$dalist_a_obj_list" "$dalist_a_src_list" "$lz_stobj_ext"
- lz_archive "$dalist_a_obj_list" "$dalist_a_src_list" "$dalist_a_name"
-}
-
-
-dalist_install_headers()
-{
- lz_pushd $lz_project_dir
-
- cp -r -t $lz_prefix/include include/$lz_project_name
-
- lz_popd
-}
-
-
-dalist_install_shared()
-{
- lz_pushd $lz_build_dir/lib
-
- cp -t $lz_prefix/lib $dalist_lib_name$lz_dylib_ext
- cp -t $lz_prefix/lib $dalist_lib_name$lz_implib_ext
-
- lz_popd
-}
-
-
-dalist_install_static()
-{
- lz_pushd $lz_build_dir/lib
-
- cp -t $lz_prefix/lib $dalist_lib_name$lz_stlib_ext
-
- lz_popd
-}
-
-dalist_install_xstatic()
-{
- lz_step dalist_xstatic
- lz_step dalist_install_static
-}
-
-
-dalist_all()
-{
- lz_step dalist_shared
- lz_step dalist_static
-}
-
-
-dalist_install()
-{
- lz_step dalist_all
- lz_step dalist_install_shared
- lz_step dalist_install_static
- lz_step dalist_install_headers
-}