This repository has been archived by the owner on Feb 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add simple command-line option parser (BFI) (#34)
- Loading branch information
1 parent
7e0e611
commit f409659
Showing
3 changed files
with
150 additions
and
74 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
|
||
Krzysztof "Παλαιολόγος" Szewczyk (https://github.com/KrzysztofSzewczyk) - BFAsm, BFI work. | ||
|
||
Last updated: 20.10.2018 | ||
Maciej "maviek" Stanka (https://github.com/maviek) - BFI work. | ||
|
||
Last updated: 29.12.2019 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
|
||
# This file could have been written in more | ||
# elegant manner, but I'm fine with it's current | ||
# state. | ||
|
||
# Krzysztof Szewczyk, Jul 2019 | ||
|
||
CC=gcc | ||
CFLAGS=-Ofast -march=native -funroll-loops -fomit-frame-pointer -w $(COVERAGE) $(OPTIONS) | ||
TARGETS=bfasm bfi bfintd bconv | ||
|
||
.PHONY: all clean install uninstall test | ||
|
||
all: $(TARGETS) bfasm.b bin | ||
|
||
install: | ||
chmod a+x bin/* | ||
sudo cp -rf bin/* /bin/ | ||
|
||
uninstall: | ||
cd /bin && sudo rm -f $(TARGETS) bfpp bfmake strip.pl labels.pl derle.pl bfi-rle && cd - | ||
|
||
test: test/*.asm | ||
chmod a+x test.pl $^ | ||
./test.pl $^ | ||
|
||
clean: | ||
rm -rf bin/ | ||
|
||
bfasm.b: bfasm bfasm.asm | ||
./bfasm < bfasm.asm > $@ | ||
|
||
bin: $(TARGETS) | ||
mkdir -p bin | ||
cp $(TARGETS) bfpp bfmake strip.pl labels.pl derle.pl bfi-rle bin/ | ||
rm -rf $(TARGETS) | ||
|
||
|
||
|
||
# This file could have been written in more | ||
# elegant manner, but I'm fine with it's current | ||
# state. | ||
|
||
# Krzysztof Szewczyk, Jul 2019 | ||
|
||
CC=gcc | ||
CFLAGS=-Ofast -march=native -funroll-loops -fomit-frame-pointer $(COVERAGE) $(OPTIONS) -Wall -Wextra | ||
TARGETS=bfasm bfi bfintd bconv | ||
|
||
.PHONY: all clean install uninstall test | ||
|
||
all: $(TARGETS) bfasm.b bin | ||
|
||
install: | ||
chmod a+x bin/* | ||
sudo cp -rf bin/* /bin/ | ||
|
||
uninstall: | ||
cd /bin && sudo rm -f $(TARGETS) bfpp bfmake strip.pl labels.pl derle.pl bfi-rle && cd - | ||
|
||
test: test/*.asm | ||
chmod a+x test.pl $^ | ||
./test.pl $^ | ||
|
||
clean: | ||
rm -rf bin/ | ||
|
||
bfasm.b: bfasm bfasm.asm | ||
./bfasm < bfasm.asm > $@ | ||
|
||
bin: $(TARGETS) | ||
mkdir -p bin | ||
cp $(TARGETS) bfpp bfmake strip.pl labels.pl derle.pl bfi-rle bin/ | ||
rm -rf $(TARGETS) | ||
|
||
|
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