CC = gcc all: test CFLAGS = -Wall -lcrypt test: test.c my_string.o $(CC) $(CFLAGS) test.c -o test my_string.o my_string.o: my_string.c my_string.h $(CC) $(CFLAGS) -c my_string.c clean: rm -rf *.o test