Annotation of OpenXM/src/ox_python/Makefile.mac, Revision 1.1
1.1 ! takayama 1: ## Makefile for MacOS with home brew.
! 2: ## python-config outputs both -arch x86_64 and -arch i386
! 3: ## Remove -arch i386 by hand.
! 4: prefix = /usr/local
! 5: CFLAGS = -Wno-attributes -I../../include -I /usr/local/include
! 6: LIBS = -L../../lib -L/usr/local/lib -lox -lmpfr -lgmp -lgc
! 7: LN_S = ln -s
! 8: TARGET = ox_python
! 9: CC = gcc
! 10: # output of python-config --cflags
! 11: PYTHON_CONFIG = -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE
! 12: # output of python-config --ldflags
! 13: MY_LD = -L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -lpython2.7 -ldl -framework CoreFoundation
! 14:
! 15: all: ${TARGET}
! 16:
! 17: ox_python: ox_python.o mysig.o
! 18: ${CC} ${CFLAGS} ${PYTHON_CONFIG} -o ox_python ox_python.o mysig.o ${MY_LD} ${LIBS}
! 19:
! 20: .c.o: ox_python.h mysig.h
! 21: ${CC} ${CFLAGS} ${PYTHON_CONFIG} -c -g $<
! 22:
! 23: clean:
! 24: rm -f *.o *~ ox_python
! 25: distclean: clean
! 26: rm -f .configure_done
! 27:
! 28: # $OpenXM$
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>