Last active
September 20, 2020 07:20
-
-
Save pyperanger/60b84619df08057617123ebb9917128a to your computer and use it in GitHub Desktop.
suck makefile
This file contains 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/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