diff --git a/bin/yait b/bin/yait deleted file mode 100755 index 7ac3f47..0000000 Binary files a/bin/yait and /dev/null differ diff --git a/config.mak b/config.mak deleted file mode 100644 index d6ba4f4..0000000 --- a/config.mak +++ /dev/null @@ -1,4 +0,0 @@ -PREFIX=/usr/bin/ -CFLAGS=-Wall -Wextra -O2 -LDFLAGS= -CC=gcc diff --git a/lib/e.h b/core/e.h similarity index 100% rename from lib/e.h rename to core/e.h diff --git a/lib/file.c b/core/file.c similarity index 100% rename from lib/file.c rename to core/file.c diff --git a/lib/file.h b/core/file.h similarity index 100% rename from lib/file.h rename to core/file.h diff --git a/lib/print.c b/core/print.c similarity index 100% rename from lib/print.c rename to core/print.c diff --git a/lib/print.h b/core/print.h similarity index 100% rename from lib/print.h rename to core/print.h diff --git a/obj/yait/main.o b/obj/yait/main.o deleted file mode 100644 index bcb307d..0000000 Binary files a/obj/yait/main.o and /dev/null differ diff --git a/yait/format.h b/yait/format.h new file mode 100644 index 0000000..a66982c --- /dev/null +++ b/yait/format.h @@ -0,0 +1,26 @@ +#ifndef CORE_H +#define CORE_H + +#include + +typedef enum { + OPENBSD3, + GPLv3, + MIT, + UNLICENCE, +} licence_t; + +typedef enum { + RAYLIB, + WINAPI, + cURL, +} lib_t; + +typedef struct { + bool nogit; + licence_t licence; + char *name; + lib_t libraries[]; +} format_t; + +#endif diff --git a/yait/main.c b/yait/main.c index 58db290..78dfac9 100644 --- a/yait/main.c +++ b/yait/main.c @@ -1,6 +1,18 @@ #include "../lib/print.h" +#include "core.h" -int main(void) { - printfn("error: incomplete binary."); +void create(format_t); + +int main(int argc, char **argv) { + if (argc < 2) { + printfn("error: not enough arguments."); + return 1; + } + format_t conf; + conf.name = argv[1]; + conf.nogit = false; return 0; } + +void create(format_t conf) { +}