A.M. Rowsell
218d5b7da8
I totally brainfarted and put this->preDigits.size() in the for loop comparison clause, which gets re-evaluated every loop. So it was leaving digits on the stack that should have been printed, causing errors both immediately and down the line.
28 lines
363 B
Makefile
28 lines
363 B
Makefile
CC=gcc
|
|
CXX=g++
|
|
RM=rm -f
|
|
CPPFLAGS=-ggdb -O0 -Wall
|
|
LDFLAGS=-g
|
|
LDLIBS=-lm
|
|
|
|
SRCS=main.cpp Spigot.cpp
|
|
OBJS=$(subst .cpp,.o,$(SRCS))
|
|
|
|
all: main
|
|
|
|
main: $(OBJS)
|
|
$(CXX) $(LDFLAGS) -o main $(OBJS) $(LDLIBS)
|
|
|
|
depend: .depend
|
|
|
|
.depend: $(SRCS)
|
|
$(RM) ./.depend
|
|
$(CXX) $(CPPFLAGS) -MM $^>>./.depend
|
|
|
|
clean:
|
|
$(RM) $(OBJS)
|
|
|
|
distclean: clean
|
|
$(RM) *~ .depend
|
|
|
|
include .depend |