diff --git a/TODO b/TODO new file mode 100644 index 0000000..70c99cd --- /dev/null +++ b/TODO @@ -0,0 +1,4 @@ +The following is a list of this that need to be done. + +Urgent: + - Fix the segfault at Makefile diff --git a/c-out/bin/yait b/c-out/bin/yait new file mode 100755 index 0000000..80415e8 Binary files /dev/null and b/c-out/bin/yait differ diff --git a/c-out/obj/main.o b/c-out/obj/main.o new file mode 100644 index 0000000..0652fba Binary files /dev/null and b/c-out/obj/main.o differ diff --git a/config.mak b/config.mak new file mode 100644 index 0000000..4a4a130 --- /dev/null +++ b/config.mak @@ -0,0 +1,4 @@ +PREFIX=/usr/bin/ +CFLAGS=-Wall -Wextra -g +LDFLAGS= +CC=gcc diff --git a/configure b/configure index 6222641..b75b922 100755 --- a/configure +++ b/configure @@ -37,9 +37,6 @@ trycc cc trycc clang printf "%s\n" "$CC" -printf "checking for xxd... " -trycc xxd - printf "checking weather C compiler works... " status="fail" tmpc="$(mktemp -d)/test.c" diff --git a/yait/main.c b/yait/main.c index ba95230..338ba01 100644 --- a/yait/main.c +++ b/yait/main.c @@ -122,6 +122,12 @@ create_project (format_t fmt) create_file_with_content ( "configure", configure_template); + int status = system("chmod +x configure"); + if (status) + { + printfn ("error: %s", strerror (status)); + return status; + } // Create a safe uppercase version of the project name for Makefile variables char *mkfile_name = strdup (fmt.project); if (!mkfile_name)