2023-06-10 00:21:32 +00:00
|
|
|
CC=x86_64-w64-mingw32-gcc
|
|
|
|
CXX=x86_64-w64-mingw32-g++
|
|
|
|
RM=rm -f
|
|
|
|
CPPFLAGS=-Wall
|
2023-06-20 21:55:09 +00:00
|
|
|
LDFLAGS=-static
|
2023-06-10 00:21:32 +00:00
|
|
|
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
|