This commit is contained in:
milisbir 2018-02-01 17:10:49 +02:00
parent be439e9a3a
commit 0408df4394
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,10 @@
diff --git a/Makefile b/Makefile
index 98d3b4d..ff1b937 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CFLAGS=-Wall -Wno-strict-aliasing -std=gnu11 -g -I. -O0
+CFLAGS+=-Wall -Wno-strict-aliasing -std=gnu11 -I.
OBJS=cpp.o debug.o dict.o gen.o lex.o vector.o parse.o buffer.o map.o \
error.o path.o file.o set.o
TESTS := $(patsubst %.c,%.bin,$(filter-out test/testmain.c,$(wildcard test/*.c)))

View File

@ -0,0 +1,21 @@
# Tanım: Basit bir c11 derleyici
# URL: https://github.com/rui314/8cc
# Paketçi: Cihan_Alkan
# Gerekler:
# Grup: geliştirme
isim=8cc
surum=git
devir=1
kaynak=(fix_cflags.patch)
derle() {
git_indir https://github.com/rui314/$isim $isim
cd $SRC/$isim
patch -p1 < ../fix_cflags.patch
make
install -Dm755 8cc "$PKG/usr/bin/8cc"
cp -rf $SRC/$isim/include $PKG/usr/
install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/LICENSE"
}