19 lines
314 B
Bash
Executable File
19 lines
314 B
Bash
Executable File
#!/bin/bash
|
|
|
|
CC=clang
|
|
INCLUDE="\
|
|
-Ialiases \
|
|
-Icpath/include \
|
|
-Idstr/include \
|
|
$(find mem/include -type d | xargs -I{} echo -n "-I{} ") \
|
|
"
|
|
SRC="\
|
|
cpath/src/*.c \
|
|
dstr/src/*.c \
|
|
mem/src/*/*.c \
|
|
"
|
|
CFLAGS="-shared -fPIC -Wall -Werror -pedantic"
|
|
OUT="libwapp.so"
|
|
|
|
(set -x ; $CC $CFLAGS $INCLUDE $SRC -o $OUT)
|