Skip to content

Instantly share code, notes, and snippets.

@pyperanger
Last active September 20, 2020 07:20
Show Gist options
  • Save pyperanger/60b84619df08057617123ebb9917128a to your computer and use it in GitHub Desktop.
Save pyperanger/60b84619df08057617123ebb9917128a to your computer and use it in GitHub Desktop.
suck makefile
#!/usr/bin/perl
# FLAGS
$NASM = "nasm -f elf64";
$GCC = "gcc -no-pie";
# COMPILATION
map { print "$NASM $_\n"; `$NASM $_`} glob("*.asm");
map { $elf = substr($_, 0, -2); print "$GCC $elf\n"; `$GCC $_ -o $elf`} glob("*.o");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment