spigotcpp/Makefile
A.M. Rowsell 97018305fd
Few small changes, added Windows makefile, LICENSE
Code is licensed under the MPLv2. Changed the makefile to, by
default, optimize to level 3. make debug will remove optimization
and add gdb debugging symbols, which slows output down quite
a bit. Removed an assertion leftover from bug squashing.
2023-06-09 20:21:32 -04:00

31 lines
428 B
Makefile

CC=gcc
CXX=g++
RM=rm -f
CPPFLAGS=-Wall
LDFLAGS=
LDLIBS=-lm
SRCS=main.cpp Spigot.cpp
OBJS=$(subst .cpp,.o,$(SRCS))
all: main
debug: $(OBJS)
$(CXX) $(LDFLAGS) -ggdb -O0 -o main $(OBJS) $(LDLIBS)
main: $(OBJS)
$(CXX) $(LDFLAGS) -O3 -o main $(OBJS) $(LDLIBS)
depend: .depend
.depend: $(SRCS)
$(RM) ./.depend
$(CXX) $(CPPFLAGS) -MM $^ >> ./.depend
clean:
$(RM) $(OBJS)
distclean: clean
$(RM) *~ .depend
include .depend