12345678910111213141516171819202122232425262728 |
- TARGET = proxy2ch.exe
- SOURCES = main.cpp BBS2chProxyConnection.cpp BBS2chProxyAuth.cpp DataStorage.cpp hmac.c stringEncodingConverter.c BBS2chProxyRawSocket.cpp BBS2chProxySecureSocket.cpp BBS2chProxyHttpHeaders.cpp
- OBJS = $(SOURCES:.cpp=.o)
- OBJS := $(OBJS:.c=.o)
- CFLAGS = -O2
- .PHONY: all
- all : $(TARGET)
- $(TARGET) : $(OBJS)
- $(CXX) $^ -o $(TARGET) -static-libgcc -static-libstdc++ -lcurldll -lpthread -lwsock32 -lws2_32 -lregex
- .cpp.o:
- $(CXX) $(CFLAGS) -c $<
- .c.o:
- $(CC) $(CFLAGS) -c $<
- .PHONY: depend
- depend:
- $(CXX) -MM $(CFLAGS) $(SOURCES) > dependencies
- .PHONY: clean
- clean :
- rm -f $(OBJS) $(TARGET)
- include dependencies
|