diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ba2906d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +main diff --git a/build b/build new file mode 100755 index 0000000..cd3a103 --- /dev/null +++ b/build @@ -0,0 +1,3 @@ +#!/bin/bash + +bear -- ./compile $@ diff --git a/compile b/compile new file mode 100755 index 0000000..c39b0be --- /dev/null +++ b/compile @@ -0,0 +1,9 @@ +#!/bin/bash + +CC=clang +CFLAGS="-g -Wall" +CXXFLAGS="-g -Wall" +SRC="src/*.c" +OUT=main + +(set -x ; $CC $CFLAGS $SRC -o $OUT) diff --git a/compile_commands.json b/compile_commands.json new file mode 100644 index 0000000..3893374 --- /dev/null +++ b/compile_commands.json @@ -0,0 +1,83 @@ +[ + { + "arguments": [ + "/usr/bin/clang", + "-c", + "-g", + "-Wall", + "-o", + "main", + "src/main.c" + ], + "directory": "/home/abdelrahman/Sources/programming/event-system", + "file": "/home/abdelrahman/Sources/programming/event-system/src/main.c", + "output": "/home/abdelrahman/Sources/programming/event-system/main" + }, + { + "arguments": [ + "/usr/bin/clang-18", + "-cc1", + "-triple", + "x86_64-pc-linux-gnu", + "-emit-obj", + "-mrelax-all", + "-dumpdir", + "main-", + "-disable-free", + "-clear-ast-before-backend", + "-disable-llvm-verifier", + "-discard-value-names", + "-main-file-name", + "-mrelocation-model", + "pic", + "-pic-level", + "2", + "-pic-is-pie", + "-mframe-pointer=all", + "-fmath-errno", + "-ffp-contract=on", + "-fno-rounding-math", + "-mconstructor-aliases", + "-funwind-tables=2", + "-target-cpu", + "x86-64", + "-tune-cpu", + "generic", + "-debug-info-kind=constructor", + "-dwarf-version=5", + "-debugger-tuning=gdb", + "-fdebug-compilation-dir=/home/abdelrahman/Sources/programming/event-system", + "-fcoverage-compilation-dir=/home/abdelrahman/Sources/programming/event-system", + "-resource-dir", + "/usr/lib/clang/18", + "-internal-isystem", + "/usr/lib/clang/18/include", + "-internal-isystem", + "/usr/local/include", + "-internal-isystem", + "/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../x86_64-pc-linux-gnu/include", + "-internal-externc-isystem", + "/include", + "-internal-externc-isystem", + "/usr/include", + "-Wall", + "-ferror-limit", + "19", + "-stack-protector", + "2", + "-fgnuc-version=4.2.1", + "-fskip-odr-check-in-gmf", + "-fcolor-diagnostics", + "-faddrsig", + "-D__GCC_HAVE_DWARF2_CFI_ASM=1", + "-x", + "c", + "-o", + "/tmp/main-74e9ff.o", + "src/main.c" + ], + "directory": "/home/abdelrahman/Sources/programming/event-system", + "file": "/home/abdelrahman/Sources/programming/event-system/src/main.c", + "output": "/tmp/main-74e9ff.o" + } +] diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..03b2213 --- /dev/null +++ b/src/main.c @@ -0,0 +1,3 @@ +int main(void) { + return 0; +}