commit 69229a3285802431a962285dc5ace2b733d6497d Author: iridiumR Date: Sun Sep 18 11:15:07 2022 +0800 feat: new shell form hell diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8c6b1f6 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +OBJ=main.o +CC=gcc +CFLAGS= -O3 -Wall + +all:dish + +dish: $(OBJ) + $(CC) $(CFLAGS) -o dish $(OBJ) + +debug: CFLAGS += -DDEBUG -g +debug: dish + +clean: + rm -f $(OBJ) dish + diff --git a/main.c b/main.c new file mode 100644 index 0000000..f71b21a --- /dev/null +++ b/main.c @@ -0,0 +1,10 @@ +#include +#include + +int main(int argc, char *argv[]) { + printf("Hello, World!"); + #ifdef DEBUG + printf("DEBUG is defined"); + #endif + return 0; +} \ No newline at end of file