added makefile
This commit is contained in:
parent
9b2a43b6d4
commit
5b1cae44a4
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
a.out
|
||||
main_logging.c
|
16
Makefile
Normal file
16
Makefile
Normal file
@ -0,0 +1,16 @@
|
||||
# Compiler and flags
|
||||
CC = gcc
|
||||
CFLAGS = -g -Wall
|
||||
TARGET = a.out
|
||||
SRC = main.c
|
||||
|
||||
# Default target: build the executable
|
||||
all: $(TARGET)
|
||||
|
||||
# Rule to compile and link the main.c file
|
||||
$(TARGET): $(SRC)
|
||||
$(CC) $(CFLAGS) $(SRC) -o $(TARGET)
|
||||
|
||||
# Clean up build files (optional)
|
||||
clean:
|
||||
rm -f $(TARGET)
|
Loading…
Reference in New Issue
Block a user