# -*- Makefile -*- # Author: Christof Meerwald, http://cmeerw.org # http://JabXPCOM.sunsite.dk # PLATFORM:=win32 SUFFIX_OBJ:=.obj SUFFIX_PICOBJ:=.obj SUFFIX_EXE:=.exe NAME_SO=$(1).dll # should point to mozilla/dist containing at least a standalone XPCOM build XPCOM_DIR:=g:/usr/local/xpcom # where you have unpacked and compiled the jabberoo library JABBEROO_DIR:=../jabberoo # uncomment to use an already installed libsigc++, otherwise the # libsigc++ included with jabberoo will be used #SIGC_DIR:=g:/usr # the compiler to use CXX:=cl /TP CFLAGS_COMPILER:=-MT -GX -D_MT -Ic:/util/STLport-4.5/stlport CFLAGS_CONFIG:=-O CFLAGS_XPCOM:=-D__i386__ -DXP_PC -DXP_WIN -DXP_WIN32 LDFLAGS:= COMMONLIBS:=ws2_32 kernel32 user32 RULE_OBJ=$(CXX) -c -Fo'$(2)' $(CFLAGS) '$(1)' RULE_PICOBJ=$(RULE_OBJ) RULE_SO=link /nologo /machine:I386 /dll \ /libpath:"c:/util/STLport-4.5/lib" \ /out:"$(2)" $(foreach file,$(1),"$(file)") \ $(foreach lib,$(3) $(COMMONLIBS),'$(lib).lib')