2012-01-22 01:30:41 +00:00
|
|
|
include ../config.mk
|
|
|
|
include ../config-mingw.mk
|
|
|
|
|
|
|
|
LIBRARY = pconsole.dll
|
|
|
|
OBJECTS = pconsole.o PConsoleDebugClient.o
|
|
|
|
LDFLAGS += -shared -static-libgcc -static-libstdc++
|
|
|
|
|
|
|
|
CXXFLAGS += \
|
|
|
|
-I../include \
|
|
|
|
-DUNICODE \
|
|
|
|
-D_UNICODE \
|
|
|
|
-D_WIN32_WINNT=0x0501 \
|
2012-01-27 18:08:21 +00:00
|
|
|
-DPCONSOLE \
|
2012-01-22 01:30:41 +00:00
|
|
|
-fno-exceptions \
|
|
|
|
-fno-rtti
|
|
|
|
|
|
|
|
$(LIBRARY) : $(OBJECTS)
|
|
|
|
@echo Linking $@
|
|
|
|
@$(CXX) $(LDFLAGS) -o $@ $^
|
|
|
|
|
|
|
|
.PHONY : clean
|
|
|
|
clean :
|
|
|
|
rm -f $(LIBRARY) *.o *.d
|
2012-02-10 10:09:38 +00:00
|
|
|
|
|
|
|
-include $(OBJECTS:.o=.d)
|