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