25 lines
522 B
Bash
25 lines
522 B
Bash
|
|
package=perfect-os-junk
|
|
version=0.0.1
|
|
|
|
CFLAGS="-O2 -Wall -Wextra -Wshadow -ansi -pedantic -std=c99"
|
|
|
|
targets=(libposj)
|
|
type[libposj]=library
|
|
sources[libposj]="$(echo lib/*.c)"
|
|
|
|
for i in *.c; do
|
|
targets+=(${i%.c})
|
|
sources[${i%.c}]="$i $(echo lib/*.c)"
|
|
type[${i%.c}]=binary
|
|
depends[${i%.c}]="libposj.a"
|
|
ldflags[${i%.c}]="libposj.a"
|
|
done
|
|
|
|
targets+=(pubsub/pubsubd)
|
|
type[pubsub/pubsubd]=binary
|
|
sources[pubsub/pubsubd]="pubsub/list.c pubsub/pubsubd.c"
|
|
cflags[pubsub/pubsubd]="-I lib"
|
|
ldflags[pubsub/pubsubd]="libposj.a"
|
|
|