CC = gcc LD = gcc CFLAGS += -g all: main main: main.o $(LD) $^ $(LFLAGS) -o $@ %.o: %.c $(CC) -c $(CFLAGS) $< -o $@ clean: $(RM) main.o main