Consolidate all C files into a "c" subdirectory
This commit is contained in:
parent
53e6421ce1
commit
d6f54bc13c
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
set -eu
|
||||
CC="${CC:-clang}"
|
||||
CFLAGS="-O2 -falign-functions -Wall -Wno-strict-aliasing -I ../llt -D NDEBUG -D USE_COMPUTED_GOTO"
|
||||
CFLAGS="-O2 -falign-functions -Wall -Wno-strict-aliasing -I ../c -D NDEBUG -D USE_COMPUTED_GOTO"
|
||||
LFLAGS="-lm"
|
||||
builddir="build-$(uname | tr A-Z- a-z_)-$(uname -m | tr A-Z- a-z_)"
|
||||
cd "$(dirname "$0")"/..
|
||||
|
@ -13,27 +13,27 @@ find "$builddir" -mindepth 1 -delete
|
|||
cd "$builddir"
|
||||
echo "Entering directory '$PWD'"
|
||||
set -x
|
||||
$CC $CFLAGS -c ../builtins.c
|
||||
$CC $CFLAGS -c ../equalhash.c
|
||||
$CC $CFLAGS -c ../flisp.c
|
||||
$CC $CFLAGS -c ../flmain.c
|
||||
$CC $CFLAGS -c ../iostream.c
|
||||
$CC $CFLAGS -c ../string.c
|
||||
$CC $CFLAGS -c ../table.c
|
||||
$CC $CFLAGS -c ../llt/bitvector-ops.c
|
||||
$CC $CFLAGS -c ../llt/bitvector.c
|
||||
$CC $CFLAGS -c ../llt/dirpath.c
|
||||
$CC $CFLAGS -c ../llt/dump.c
|
||||
$CC $CFLAGS -c ../llt/hashing.c
|
||||
$CC $CFLAGS -c ../llt/htable.c
|
||||
$CC $CFLAGS -c ../llt/int2str.c
|
||||
$CC $CFLAGS -c ../llt/ios.c
|
||||
$CC $CFLAGS -c ../llt/lltinit.c
|
||||
$CC $CFLAGS -c ../llt/ptrhash.c
|
||||
$CC $CFLAGS -c ../llt/random.c
|
||||
$CC $CFLAGS -c ../llt/socket.c
|
||||
$CC $CFLAGS -c ../llt/timefuncs.c
|
||||
$CC $CFLAGS -c ../llt/utf8.c
|
||||
$CC $CFLAGS -c ../c/builtins.c
|
||||
$CC $CFLAGS -c ../c/equalhash.c
|
||||
$CC $CFLAGS -c ../c/flisp.c
|
||||
$CC $CFLAGS -c ../c/flmain.c
|
||||
$CC $CFLAGS -c ../c/iostream.c
|
||||
$CC $CFLAGS -c ../c/string.c
|
||||
$CC $CFLAGS -c ../c/table.c
|
||||
$CC $CFLAGS -c ../c/bitvector-ops.c
|
||||
$CC $CFLAGS -c ../c/bitvector.c
|
||||
$CC $CFLAGS -c ../c/dirpath.c
|
||||
$CC $CFLAGS -c ../c/dump.c
|
||||
$CC $CFLAGS -c ../c/hashing.c
|
||||
$CC $CFLAGS -c ../c/htable.c
|
||||
$CC $CFLAGS -c ../c/int2str.c
|
||||
$CC $CFLAGS -c ../c/ios.c
|
||||
$CC $CFLAGS -c ../c/lltinit.c
|
||||
$CC $CFLAGS -c ../c/ptrhash.c
|
||||
$CC $CFLAGS -c ../c/random.c
|
||||
$CC $CFLAGS -c ../c/socket.c
|
||||
$CC $CFLAGS -c ../c/timefuncs.c
|
||||
$CC $CFLAGS -c ../c/utf8.c
|
||||
$CC $LFLAGS -o flisp -lm \
|
||||
builtins.o equalhash.o flisp.o flmain.o iostream.o string.o table.o \
|
||||
bitvector-ops.o bitvector.o dirpath.o dump.o hashing.o htable.o \
|
||||
|
|
|
@ -3,4 +3,4 @@ set -eu
|
|||
cd "$(dirname "$0")"/..
|
||||
echo "Entering directory '$PWD'"
|
||||
set -x
|
||||
find . -name "[^.]*.[ch]" | sort | xargs clang-format -verbose -i
|
||||
find c -name "[^.]*.[ch]" | sort | xargs clang-format -verbose -i
|
||||
|
|
Loading…
Reference in New Issue