# BSDmakefile # $Ximalas$ BRANCH!= uname -r | awk '{split($$0, b, "-"); print tolower(b[2])}' VERSION!= uname -r | awk '{split($$0, v, "."); print v[1]}' ARCH!= uname -p BRANCH_VERSION_ARCH= ${BRANCH}-${VERSION}-${ARCH} .if ${BRANCH} == "current" BRANCH= head BRANCH_VERSION_ARCH= ${BRANCH}-${ARCH} .endif .if ${VERSION} == "8" COMPILER= clang33 .else COMPILER= clang .endif all: livstidsfanger-${BRANCH_VERSION_ARCH} CFLAGS= -Weverything -O3 -s -pthread livstidsfanger-${BRANCH_VERSION_ARCH}: livstidsfanger.c ${COMPILER} ${CFLAGS} -o $@ $>$^ # EOF