Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
8f43012151 | |||
15d997f592 | |||
2d3efaf5e8 | |||
d083075003 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,2 @@
|
||||
main
|
||||
bff
|
||||
*.o
|
||||
|
3
Examples/allAscii.bf
Normal file
3
Examples/allAscii.bf
Normal file
@ -0,0 +1,3 @@
|
||||
+++++++++[>++++++++++<-]>+++++
|
||||
>>+++[<++++++++++>-]<+++
|
||||
<[>.+<-]
|
1
Examples/cat.bf
Normal file
1
Examples/cat.bf
Normal file
@ -0,0 +1 @@
|
||||
>,[>,]<[<]>[.>]
|
21
Examples/life.bf
Normal file
21
Examples/life.bf
Normal file
@ -0,0 +1,21 @@
|
||||
|
||||
>>>->+>+++++>(++++++++++)[[>>>+<<<-]>+++++>+>>+[<<+>>>>>+<<<-]<-]>>>>[
|
||||
[>>>+>+<<<<-]+++>>+[<+>>>+>+<<<-]>>[>[[>>>+<<<-]<]<<++>+>>>>>>-]<-
|
||||
]+++>+>[[-]<+<[>+++++++++++++++++<-]<+]>>[
|
||||
[+++++++++.-------->>>]+[-<<<]>>>[>>,----------[>]<]<<[
|
||||
<<<[
|
||||
>--[<->>+>-<<-]<[[>>>]+>-[+>>+>-]+[<<<]<-]>++>[<+>-]
|
||||
>[[>>>]+[<<<]>>>-]+[->>>]<-[++>]>[------<]>+++[<<<]>
|
||||
]<
|
||||
]>[
|
||||
-[+>>+>-]+>>+>>>+>[<<<]>->+>[
|
||||
>[->+>+++>>++[>>>]+++<<<++<<<++[>>>]>>>]<<<[>[>>>]+>>>]
|
||||
<<<<<<<[<<++<+[-<<<+]->++>>>++>>>++<<<<]<<<+[-<<<+]+>->>->>
|
||||
]<<+<<+<<<+<<-[+<+<<-]+<+[
|
||||
->+>[-<-<<[<<<]>[>>[>>>]<<+<[<<<]>-]]
|
||||
<[<[<[<<<]>+>>[>>>]<<-]<[<<<]]>>>->>>[>>>]+>
|
||||
]>+[-<<[-]<]-[
|
||||
[>>>]<[<<[<<<]>>>>>+>[>>>]<-]>>>[>[>>>]<<<<+>[<<<]>>-]>
|
||||
]<<<<<<[---<-----[-[-[<->>+++<+++++++[-]]]]<+<+]>
|
||||
]>>
|
||||
]
|
19
Makefile
19
Makefile
@ -1,15 +1,26 @@
|
||||
.PHONY: clean, mrproper
|
||||
.PHONY: clean, mrproper, uninstall, install
|
||||
CC = gcc
|
||||
CFLAGS = -g -Wall
|
||||
LDFLAGS =
|
||||
|
||||
all: bff
|
||||
PREFIX = /usr/local
|
||||
|
||||
%.o: %.c
|
||||
all: bff
|
||||
|
||||
bff.o: bff.c
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
bff: main.o
|
||||
bff: bff.o
|
||||
$(CC) $(CFLAGS) -o $@ $+
|
||||
|
||||
install: bff
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f bff $(DESTDIR)$(PREFIX)/bin
|
||||
chmod 755 $(DESTDIR)$(PREFIX)/bin/bff
|
||||
|
||||
uninstall:
|
||||
rm -f $(DESTDIR)$(PREFIX)/bin/bff
|
||||
|
||||
clean:
|
||||
rm -f *.o core.*
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user