Most notably is the pain of setting up Makefiles by hand. Still. I think I've hit on something. Relative to my project's directory...
I have a folder for my build which contains a Makefile customised for that platform. On windows this is...
CFLAGS=-g -O0 -Wall -pedantic -Wno-long-long
LIBS=-lmingw32 -lSDLmain -lSDL -lopengl32 -lphysfs
It explicitly specifies CC and CXX because I tend to use Cygwin as a replacement shell and it allows me to use make instead of mingw32-make.exe.
all: Coulomb.exe $(DLL)
$(CXX) -o Coulomb.exe $(OBJECTS) $(LIBS)
$(CXX) -o $@ -c $< $(CFLAGS)
$(CXX) -MM -MF $(patsubst %.o,%.d,$@) $< $(CFLAGS)
cp $< .
.phony: all clean
rm -rf *.exe
rm -rf *.o
rm -rf data/*.o
rm -rf *.d
rm -rf data/*.d
rm -rf *.dll
Unfortunately I still don't really know what I'm going to do with this set up yet. I'd appreciate any comments on the Makefile set up though.