CC = gcc # compiler flags: # -g adds debugging information to the executable file # -Wall turns on most, but not all, compiler warnings CFLAGS = -g -Wall CFLAGS_PROD = -s -Wall # the build target executable: TARGET = grpkill all: $(TARGET) $(TARGET): $(TARGET).c $(CC) $(CFLAGS) -o $(TARGET) $(TARGET).c $(TARGET)-prod: $(TARGET).c $(CC) $(CFLAGS_PROD) -o $(TARGET)-prod $(TARGET).c clean: $(RM) $(TARGET)