Makefile.mingw 451 B

12345678910111213141516171819202122
  1. TARGET = proxy2ch.exe
  2. SOURCES = main.cpp BBS2chProxyConnection.cpp BBS2chProxyAuth.cpp DataStorage.cpp
  3. OBJS = $(SOURCES:.cpp=.o)
  4. .PHONY: all
  5. all : $(TARGET)
  6. $(TARGET) : $(OBJS)
  7. $(CXX) $^ -o $(TARGET) -static-libgcc -static-libstdc++ -lcurldll -lpthread -lwsock32 -lws2_32 -lregex
  8. .cpp.o:
  9. $(CXX) -O2 -c $<
  10. .PHONY: depend
  11. depend:
  12. $(CXX) -MM $(CFLAGS) $(SOURCES) > dependencies
  13. .PHONY: clean
  14. clean :
  15. rm -f $(OBJS) $(TARGET)
  16. include dependencies