Skip to content

Commit

Permalink
Add hello
Browse files Browse the repository at this point in the history
  • Loading branch information
externl committed Feb 12, 2024
1 parent 89f48d7 commit 2de2426
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
hello
*.o
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

TARGET = hello

SRCS = hello.c

OBJS = $(SRCS:.c=.o)

.PHONY: all
all: $(TARGET)

$(TARGET): $(OBJS)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
7 changes: 7 additions & 0 deletions hello.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include <stdio.h>

int main()
{
printf("Hello, World!\n");
return 0;
}

0 comments on commit 2de2426

Please sign in to comment.