2023-06-07 06:08:12 +00:00
|
|
|
CC=gcc
|
|
|
|
CXX=g++
|
|
|
|
RM=rm -f
|
2023-06-09 16:15:53 +00:00
|
|
|
CPPFLAGS=-ggdb -O0 -Wall
|
2023-06-07 06:08:12 +00:00
|
|
|
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
|