wip better makefile

This commit is contained in:
asus
2024-01-23 16:14:28 +01:00
parent 25fadd05a0
commit 3c1d9f0c3c
5 changed files with 23 additions and 30 deletions

View File

@@ -1,5 +1,8 @@
NAME = Grace
SRCS = Grace.c
NAME = Grace
SRCS = Grace.c
CLONE = $(NAME)_kid.c
CREATE_CLONE = ./$(NAME) > $(CLONE)
include ../MakefileCommon

View File

@@ -1,14 +0,0 @@
/*comment outside*/
#include <stdio.h>
#define not_main main
char *second_function() {
return "/*comment outside*/%c#include <stdio.h>%c#define not_main main%c%cchar *second_function() {%c return %c%s%c;%c}%c%cint not_main() {%c /*comment inside*/%c char *program = second_function();%c printf(program, 10, 10, 10, 10, 10, 34, program, 34, 10, 10, 10, 10, 10, 10, 10, 10, 10);%c return 0;%c}%c";
}
int not_main() {
/*comment inside*/
char *program = second_function();
printf(program, 10, 10, 10, 10, 10, 34, program, 34, 10, 10, 10, 10, 10, 10, 10, 10, 10);
return 0;
}