Makefile.mingw 609 B

12345678910111213141516171819202122232425262728
  1. TARGET = proxy2ch.exe
  2. SOURCES = main.cpp BBS2chProxyConnection.cpp BBS2chProxyAuth.cpp DataStorage.cpp hmac.c stringEncodingConverter.c BBS2chProxyRawSocket.cpp BBS2chProxySecureSocket.cpp
  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 $<
  12. .c.o:
  13. $(CC) $(CFLAGS) -c $<
  14. .PHONY: depend
  15. depend:
  16. $(CXX) -MM $(CFLAGS) $(SOURCES) > dependencies
  17. .PHONY: clean
  18. clean :
  19. rm -f $(OBJS) $(TARGET)
  20. include dependencies