CC = gcc CFLAGS = -g -Wall # the build target executable: TARGET = main all: $(TARGET) $(TARGET): $(TARGET).c $(CC) $(CFLAGS) -o $(TARGET) $(TARGET).c clean: $(RM) $(TARGET)