## $OpenXM: OpenXM/src/oxc/Makefile.in,v 1.9 2016/09/22 17:00:14 ohara Exp $

OpenXM_HOME=../..
libdir     = ${OpenXM_HOME}/lib
CC         = gcc
CFLAGS     = -g -O2 -g -Wall -O2 -finline-functions -I${OpenXM_HOME}/src/ox_toolkit -I${OpenXM_HOME}/include
LIBS       =  -L${libdir} -lox -lmpfr -lgmp -lgc
INSTALL    = /usr/bin/install -c
INSTALL_PROGRAM= ${INSTALL}

all: oxc

oxc: oxc.o sm.o sm_ext.o
	${CC} -o oxc oxc.o sm.o sm_ext.o ${LIBS}

sm.o sm_ext.o : sm.h

install: oxc
	${INSTALL_PROGRAM} oxc ${OpenXM_HOME}/bin

install-for-debug: oxc
	ln -sf `pwd`/oxc ${OpenXM_HOME}/bin

clean:
	-rm -f *.o *~ oxc

distclean: clean
	-rm -f .configure_done config.cache config.log config.status Makefile
