diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2011-01-26 12:25:36 +0000 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2011-01-26 12:25:36 +0000 |
commit | 89e0946f039b7f25dcde0726ac10124fd02d97bf (patch) | |
tree | 2ba14ff459b186fcc7eb70fe424b8876a49cab69 /gs/base/ijs.mak | |
parent | ba2d90109ad06a7d85bb45abb688975a28bd3b06 (diff) |
Allow IJS code to be linked as a library instead of using our distributed source.
This will permit distributions which include a separately built libijs to link the
the system's libijs.
Bug 691904
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12063 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/base/ijs.mak')
-rw-r--r-- | gs/base/ijs.mak | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/gs/base/ijs.mak b/gs/base/ijs.mak index 6e8ac75e6..537e404de 100644 --- a/gs/base/ijs.mak +++ b/gs/base/ijs.mak @@ -18,6 +18,8 @@ # in spawning the server. currently # 'unix' and 'win' are supported. # BINDIR - where to put the executible examples +# SHARE_IJS - 0 to compile the library, 1 to share +# IJS_NAME - if SHARE_IJS = 1, the name of the shared library # This partial makefile compiles the IJS client library for use in # Ghostscript. @@ -53,8 +55,17 @@ IJSDEP=$(AK) ijslib_=$(IJSOBJ)ijs.$(OBJ) $(IJSOBJ)ijs_server.$(OBJ) \ $(IJSOBJ)ijs_client.$(OBJ) $(IJSOBJ)ijs_exec_$(IJSEXECTYPE).$(OBJ) -$(IJSGEN)ijslib.dev : $(IJS_MAK) $(ECHOGS_XE) $(ijslib_) - $(SETMOD) $(IJSGEN)ijslib $(ijslib_) + +$(IJSGEN)ijslib_0.dev : $(TOP_MAKEFILES) $(IJS_MAK) $(ECHOGS_XE) $(ijslib_) + $(SETMOD) $(IJSGEN)ijslib_0 $(ijslib_) + +$(IJSGEN)ijslib_1.dev : $(TOP_MAKEFILES) $(IJS_MAK) $(ECHOGS_XE) + $(SETMOD) $(IJSGEN)ijslib_1 -lib $(IJS_NAME) + + +$(IJSGEN)ijslib.dev : $(TOP_MAKEFILES) $(IJS_MAK) $(IJSGEN)ijslib_$(SHARE_IJS).dev + $(CP_) $(IJSGEN)ijslib_$(SHARE_IJS).dev $(IJSGEN)ijslib.dev + ijs_h=$(IJSSRC)ijs.h |