add Makefile

This commit is contained in:
raf 2023-11-29 05:44:49 +03:00
parent 803ab3afe5
commit 889b110eaa
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
2 changed files with 16 additions and 1 deletions

3
.gitignore vendored
View file

@ -1 +1,2 @@
dummy_serial # ignore build artifact
main

14
Makefile Normal file
View file

@ -0,0 +1,14 @@
CC = gcc
CFLAGS = -g -Wall
# the build target executable:
TARGET = main
all: $(TARGET)
$(TARGET): $(TARGET).c
$(CC) $(CFLAGS) -o $(TARGET) $(TARGET).c
clean:
$(RM) $(TARGET)