Skip to content
Snippets Groups Projects
Select Git revision
  • 945e6b4644d4db9232493552639ce8d27d4ec3e2
  • main default
2 results

assignment_tests.sh

Blame
  • makefile 303 B
    # Compiler settings
    CC = gcc
    CFLAGS = -Wall -Wextra -g
    
    # Target executable name
    TARGET = stringfun
    
    # Default target
    all: $(TARGET)
    
    # Compile source to executable
    $(TARGET): stringfun.c
    	$(CC) $(CFLAGS) -o $(TARGET) $^
    
    # Clean up build files
    clean:
    	rm -f $(TARGET)
    
    # Phony targets
    .PHONY: all clean