# Define variables
CC = gcc
CFLAGS = -Wall -g
TARGET = safe_packer
SOURCES = main.c aes.c
OBJECTS = $(SOURCES:.c=.o) # Replaces .c with .o in the SOURCES list

# Default target
all: $(TARGET)

# Rule to link object files into the executable
$(TARGET): $(OBJECTS)
	$(CC) $(OBJECTS) -o $(TARGET)


%.o: %.c
	$(CC) $(CFLAGS) -c $< -o $@

.PHONY: clean all

clean:
	rm -f $(TARGET) $(OBJECTS)