csci3081/duckVisitor/makefile
Michael Zhang 1ba4536588
f
2018-01-29 17:24:20 -06:00

17 lines
310 B
Makefile

# CSCI3081 Ducks Exercise makefile
CXX = g++
DEBUG = -g
CXXFLAGS = -Wall -c $(DEBUG)
LDFLAGS = -Wall $(DEBUG)
OBJS = Duck.o Visitor.o Fly.o Quack.o
all: duckVisitor.o $(OBJS)
$(CXX) $(LDFLAGS) -o duckVisitor duckVisitor.o $(OBJS)
%.o : %.cpp
$(CXX) $(CXXFLAGS) -o $@ $<
clean:
\rm *.o *.*~ duckVisitor