COMP = g++ FLAGS = -g -Wall LIBS = OBJ_LIST = simm.o TARGET_NAME = simm all: $(TARGET_NAME) $(TARGET_NAME): $(OBJ_LIST) $(COMP) $(FLAGS) -o $(TARGET_NAME) $(OBJ_LIST) $(LIBS) %.o: %.cc %.h $(COMP) $(FLAGS) -c $< clean: rm -f *.o *~ core $(TARGET_NAME)