feat: new shell form hell
This commit is contained in:
commit
69229a3285
2 changed files with 25 additions and 0 deletions
15
Makefile
Normal file
15
Makefile
Normal 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
10
main.c
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue