cpath/compile

10 lines
187 B
Bash
Executable File

#!/bin/bash
CC=gcc
AR=ar
CFLAGS="-c -fPIC -Wall -Werror -pedantic -O3 -Iinclude -Ic-cpp-aliases"
SRC="src/cpath.c"
OUT=libcpath.a
(set -x ; $CC $CFLAGS $SRC ; $AR -r $OUT *.o ; rm *.o)