Makefile.mingw 791 B

12345678910111213141516171819202122232425262728
  1. TARGET = proxy2ch.exe
  2. SOURCES = main.cpp BBS2chProxyConnection.cpp BBS2chProxyAuth.cpp hmac.c stringEncodingConverter.c BBS2chProxyRawSocket.cpp BBS2chProxySecureSocket.cpp BBS2chProxyHttpHeaders.cpp BBS2chProxyURL.cpp BBS2chProxyKeyManager.cpp BBS2chProxyBoardManager.cpp BBS2chProxyHTML2Dat.cpp BBS2chProxyFormData.cpp BBS2chProxyPoster.cpp parson/parson.c
  3. OBJS = $(SOURCES:.cpp=.o)
  4. OBJS := $(OBJS:.c=.o)
  5. CFLAGS = -O2
  6. .PHONY: all
  7. all : $(TARGET)
  8. $(TARGET) : $(OBJS)
  9. $(CXX) $^ -o $(TARGET) -static-libgcc -static-libstdc++ -lcurldll -lpthread -lwsock32 -lws2_32 -lregex
  10. .cpp.o:
  11. $(CXX) $(CFLAGS) -c -o $@ $<
  12. .c.o:
  13. $(CC) $(CFLAGS) -c -o $@ $<
  14. .PHONY: depend
  15. depend:
  16. $(CXX) -MM $(CFLAGS) $(SOURCES) > dependencies
  17. .PHONY: clean
  18. clean :
  19. rm -f $(OBJS) $(TARGET)
  20. include dependencies