# -*- Makefile -*- # Author: Christof Meerwald, http://cmeerw.org # http://JabXPCOM.sunsite.dk # # Configuration Defaults PLATFORM?=posix SUFFIX_OBJ?=.o SUFFIX_PICOBJ?=.lo SUFFIX_EXE?= NAME_SO?=lib$(1).so # should point to mozilla/dist containing at least a standalone XPCOM build XPCOM_DIR?=/usr/local/xpcom XPCOM_BIN?=$(XPCOM_DIR)/bin XPCOM_IDL?=$(XPCOM_DIR)/idl XPCOM_INCLUDE?=$(XPCOM_DIR)/include XPCOM_LIBRARY?=xpcom # where you have unpacked and compiled the jabberoo library ifndef JABBEROO_SRC JABBEROO_DIR?=/usr else LIBJUDO_SRC?=$(JABBEROO_SRC)/libjudo endif # uncomment to use an already installed libsigc++, otherwise the # libsigc++ included with jabberoo will be used #SIGC_DIR?=/usr SIGC_LIBRARY?=sigc # uncomment if you have OpenSSL installed (>= 0.9.6) #OPENSSL_DIR?=/usr/local/ssl # uncomment if you have GnuTLS installed (>= 0.8.8) #GNUTLS_DIR?=/usr # the compiler to use CXX?=g++ CFLAGS_COMPILER?=-pthread CFLAGS_CONFIG?=-O2 RULE_OBJ?=$(CXX) -c $(CFLAGS) -o '$(2)' '$(1)' RULE_PICOBJ?=$(CXX) -c $(CFLAGS) -fPIC -o '$(2)' '$(1)' RULE_SO?=$(CXX) -shared -o '$(2)' $(foreach file,$(1),'$(file)') \ $(LDFLAGS) $(foreach dir,$(LIBPATH),-L'$(dir)') \ $(CFLAGS) $(foreach lib,$(3),-l'$(lib)')