Created
January 21, 2024 11:24
-
-
Save 0xdeadbeer/5eb1965509c034dbab6fbd4f114f5fe6 to your computer and use it in GitHub Desktop.
Simple sh build script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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