Move headers into include directories
This commit is contained in:
parent
2804638d84
commit
403d081e13
@ -9,21 +9,21 @@ CFLAGS="$CFLAGS -O0 -ggdb"
|
|||||||
if [ ! -e build ]; then mkdir build; else rm build/*; fi
|
if [ ! -e build ]; then mkdir build; else rm build/*; fi
|
||||||
|
|
||||||
# Build library
|
# Build library
|
||||||
clang $CFLAGS -Ilib -c lib/parse.c -o build/parse.o
|
clang $CFLAGS -Ilib/include -c lib/parse.c -o build/parse.o
|
||||||
clang $CFLAGS -Ilib -c lib/desugar.c -o build/desugar.o
|
clang $CFLAGS -Ilib/include -c lib/desugar.c -o build/desugar.o
|
||||||
clang $CFLAGS -Ilib -c lib/regex.c -o build/regex.o
|
clang $CFLAGS -Ilib/include -c lib/regex.c -o build/regex.o
|
||||||
clang $CFLAGS -Ilib -c lib/fsa.c -o build/fsa.o
|
clang $CFLAGS -Ilib/include -c lib/fsa.c -o build/fsa.o
|
||||||
clang $CFLAGS -Ilib -c lib/construct.c -o build/construct.o
|
clang $CFLAGS -Ilib/include -c lib/construct.c -o build/construct.o
|
||||||
ar -crs build/lib.a build/parse.o build/desugar.o build/regex.o \
|
ar -crs build/lib.a build/parse.o build/desugar.o build/regex.o \
|
||||||
build/fsa.o build/construct.o
|
build/fsa.o build/construct.o
|
||||||
|
|
||||||
# Build tests
|
# Build tests
|
||||||
clang $CFLAGS -Itests -c tests/testing.c -o build/testing.o
|
clang $CFLAGS -Itests/include -c tests/testing.c -o build/testing.o
|
||||||
clang $CFLAGS -Ilib -Itests -o build/parse_tests \
|
clang $CFLAGS -Ilib/include -Itests/include -o build/parse_tests \
|
||||||
tests/parse_tests.c build/testing.o build/lib.a
|
tests/parse_tests.c build/testing.o build/lib.a
|
||||||
clang $CFLAGS -Ilib -Itests -o build/desugar_tests \
|
clang $CFLAGS -Ilib/include -Itests/include -o build/desugar_tests \
|
||||||
tests/desugar_tests.c build/testing.o build/lib.a
|
tests/desugar_tests.c build/testing.o build/lib.a
|
||||||
clang $CFLAGS -Ilib -Itests -o build/fsa_tests \
|
clang $CFLAGS -Ilib/include -Itests/include -o build/fsa_tests \
|
||||||
tests/fsa_tests.c build/testing.o build/lib.a
|
tests/fsa_tests.c build/testing.o build/lib.a
|
||||||
clang $CFLAGS -Ilib -Itests -o build/construct_tests \
|
clang $CFLAGS -Ilib/include -Itests/include -o build/construct_tests \
|
||||||
tests/construct_tests.c build/testing.o build/lib.a
|
tests/construct_tests.c build/testing.o build/lib.a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user