Skip to content

Instantly share code, notes, and snippets.

@0xdeadbeer
Created January 21, 2024 11:24
Show Gist options
  • Save 0xdeadbeer/5eb1965509c034dbab6fbd4f114f5fe6 to your computer and use it in GitHub Desktop.
Save 0xdeadbeer/5eb1965509c034dbab6fbd4f114f5fe6 to your computer and use it in GitHub Desktop.
Simple sh build script
#!/usr/bin/sh
CC=gcc
CFLAGS=
LDFLAGS=
SRC=./src
ODIR=./build
mkdir -p $ODIR
find $SRC -type f -name "*.c" | parallel -j 4 gcc $CFLAGS {} -o $ODIR/{/.} $LDFLAGS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment