Skip to content
Snippets Groups Projects
Select Git revision
  • 693e1a5e7fbac57c6bf01279631cbc820602ec88
  • main default
2 results

assignment_tests.sh

Blame
  • makefile 407 B
    # Compiler settings
    CC = gcc
    CFLAGS = -Wall -Wextra -g
    
    # Target executable name
    TARGET = dsh
    
    # Find all source and header files
    SRCS = $(wildcard *.c)
    HDRS = $(wildcard *.h)
    
    # Default target
    all: $(TARGET)
    
    # Compile source to executable
    $(TARGET): $(SRCS) $(HDRS)
    	$(CC) $(CFLAGS) -o $(TARGET) $(SRCS)
    
    # Clean up build files
    clean:
    	rm -f $(TARGET)
    
    test:
    	./test.sh
    
    # Phony targets
    .PHONY: all clean