Makefile question

Mark Brethen mark.brethen at gmail.com
Fri Dec 4 19:15:48 PST 2015


I have source with no configure and this snippet pertaining to Mac in the makefile:

		ifeq "$(uname)" "Darwin"
			# (2) Mac OS X, using GCC as the C compiler
			export ARCHOS    = x86_LINUX
			export OCAMLDIR  = /usr/local/bin
			export OBJEXT    = o
			export CASE_FILE = case_ins_mac
			export GLOB      = glob_unix
			# Very simplistic arch test
			ifeq "$(shell uname -m)" "x86_64"
				export WEIDU_ARCH = amd64
				export ARCH_FILE = arch_osx
			else ifeq "$(shell uname -m)" "i386"
				export WEIDU_ARCH = x86
				export ARCH_FILE = arch_osx
			else
				export WEIDU_ARCH = mac # PPC
				export ARCH_FILE = arch_legacy_osx
			endif
			export WEIDU_OS = osx
			export USEOPT = .opt
			PROJECT_CMODULES = nix
			export TKDIR = obj-tk

 
OCAMLDIR needs to be set, but what about the rest?



Mark






More information about the macports-dev mailing list