#
# Makefile
#
# Autor: H.Drachenfels
# erstellt am: 2.12.2022
#

CXX = g++ #-fno-elide-constructors
CXXFLAGS = -g -Wall -Wextra -std=c++11 -pedantic

TARGET = listvar
OBJECTS = intlist.o

all: $(TARGET)

clean:
	rm -f $(TARGET) $(TARGET).o $(OBJECTS)

$(TARGET): $(TARGET).o $(OBJECTS)
	$(CXX) $(CXXFLAGS) -o $@ $^

$(TARGET).o: $(TARGET).cpp intlist.h
intlist.o: intlist.cpp intlist.h

