Skip to content

Instantly share code, notes, and snippets.

@kmaglione

kmaglione/stdin.mk

Created Sep 24, 2011
Embed
What would you like to do?
ifeq "$(shell uname -s)" "Darwin"
PYTHON=python
ABI_ARCH = x86_64
ifeq "$(GECKO_MAJOR)" ""
GECKO_MAJOR = 9
endif
GECKO_MINOR = 0
ifeq "$(GECKO_MAJOR)" "9"
GECKO_SDK_PATH = $(HOME)/testing/xr
else
GECKO_SDK_PATH = $(HOME)/testing/xr$(GECKO_MAJOR)
#XPIDL = xpidl() { m=$1; f=${1%.idl}; f=${f%.h}; shift; $(GECKO_SDK_PATH)/bin/xpidl -m "$m" -o "$f" "$@"; }; xpidl
#IDL_H = $(XPIDL) header
XPIDL = $(PYTHON) $(HOME)/testing/xr/sdk/bin
endif
else
ABI_OS = WINNT
ABI_ARCH = x86
ABI_COMPILER = msvc
CXX = cl -Fo
LINK = link -dll -out:
MKDEP = true
ifeq "$(GECKO_MAJOR)" ""
GECKO_MAJOR = 9
endif
GECKO_MINOR = 0
ifeq "$(GECKO_MAJOR)" "9"
SDK = xrw
else
SDK = xr$(GECKO_MAJOR)w
XPIDL = xpidl() { m=$$1; shift; f=$${1%.idl}; f=$${f%.h}; shift; $(GECKO_SDK_PATH)/bin/xpidl -m "$$m" -o "$$f" "$$@"; }; xpidl
IDL_H = $(XPIDL) header
endif
GECKO_SDK_PATH = /e/testing/$(SDK)
LIB := e:\testing\$(SDK)\lib;$(LIB)
export LIB
EXCPPFLAGS = -O2 -DWIN32
GECKO_LDFLAGS = xpcomglue_s.lib \
xpcom.lib \
nspr4.lib \
mozalloc.lib \
xul.lib \
mozjs.lib \
$(NULL)
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.