feat: new shell form hell

This commit is contained in:
iridiumR 2022-09-18 11:15:07 +08:00
commit 69229a3285
No known key found for this signature in database
GPG key ID: 5574BE4450D55618
2 changed files with 25 additions and 0 deletions

15
Makefile Normal file
View file

@ -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

10
main.c Normal file
View file

@ -0,0 +1,10 @@
#include <stdio.h>
#include <signal.h>
int main(int argc, char *argv[]) {
printf("Hello, World!");
#ifdef DEBUG
printf("DEBUG is defined");
#endif
return 0;
}