add lab03

This commit is contained in:
SowinskiBraeden committed 2025-09-18 15:11:01 -07:00
1 parent 4a84421d52
commit a2e0fe202e
3 files changed
+147

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
# Compiler and flags
CC = gcc
CFLAGS = -Wall -std=c11
#Input file
INPUT = input.txt
# Source file
SRCS = lab3.c
# Output
TARGET = lab3.out
# Default target
all: $(TARGET)
# Rule to build the executable
$(TARGET): $(SRCS)
$(CC) $(CFLAGS) $(SRCS) -o $(TARGET)
convert: $(INPUT)
dos2unix $(INPUT)
# Rule to run the program
run: $(TARGET)
./$(TARGET) $(INPUT)
# Rule to clean generated files
clean:
rm -f $(TARGET)