Loading ...
Sorry, an error occurred while loading the content.

diffs for "Makefile_api" to create sharedlib on MacOS X

Expand Messages
  • Stephen C. Grubb
    I received this from Dieter recently --Steve ploticus is a very nice tool. I have made changes on Makefile_api for create sharedlib on MacOS X. Tested
    Message 1 of 1 , Aug 28, 2003
    View Source
    • 0 Attachment
      I received this from Dieter recently --Steve


      "ploticus" is a very nice tool. I have made changes on "Makefile_api"
      for create sharedlib on MacOS X. Tested using "api_examp.c" from
      "pltestsuite" (see below).

      Dieter

      ========== ========== ========== ========== ========== ==========

      Also included by "Makefile_api.diff" (test below):

      *** Makefile_api.bak Sun Aug 24 13:12:51 2003
      --- Makefile_api Sun Aug 24 13:09:28 2003
      ***************
      *** 24,29 ****
      --- 24,30 ----
      RMCOM = rm -f
      XOBJ = x11.o interact.o
      ZFLAG = -DWZ
      + LIBEXT = a


      ######## Step 1. What's your OS platform?
      ***************
      *** 36,43 ****
      # XINCLUDEDIR = -I/usr/openwin/include

      #### For Max OS X.. gcc gives some grumbling about _setsid but seems
      to be ok..
      ! CC = cc
      XINCLUDEDIR = -I/usr/X11R6/include

      #### For Cygwin uncomment the following..
      # PLATFORM = WIN32
      --- 37,46 ----
      # XINCLUDEDIR = -I/usr/openwin/include

      #### For Max OS X.. gcc gives some grumbling about _setsid but seems
      to be ok..
      ! CC = cc -fno-common
      XINCLUDEDIR = -I/usr/X11R6/include
      + ARCOM = gcc -dynamiclib -flat_namespace -undefined suppress -o
      + LIBEXT = dylib

      #### For Cygwin uncomment the following..
      # PLATFORM = WIN32
      ***************
      *** 177,191 ****
      $(LOCALEOBJ)

      libploticus: $(OBJ) $(GDOBJ) $(XOBJ)
      ! $(RMCOM) libploticus.a
      ! $(ARCOM) libploticus.a $(OBJ) $(GDOBJ) $(XOBJ)


      install: libploticus
      ! mv libploticus.a $(LIBDIR)

      api_test: api_test.o
      ! cc api_test.o libploticus.a -lm -o api_test
      # some additional libraries likely will be required here..

      clean:
      --- 180,194 ----
      $(LOCALEOBJ)

      libploticus: $(OBJ) $(GDOBJ) $(XOBJ)
      ! $(RMCOM) libploticus.$(LIBEXT)
      ! $(ARCOM) libploticus.$(LIBEXT) $(OBJ) $(GDOBJ) $(XOBJ)


      install: libploticus
      ! mv libploticus.$(LIBEXT) $(LIBDIR)

      api_test: api_test.o
      ! cc api_test.o libploticus.$(LIBEXT) -lm -o api_test
      # some additional libraries likely will be required here..

      clean:

      ========== ========== ========== ========== ========== ==========



      Stephen C. Grubb scg@...
      Scientific Software Engineer, The Jackson Laboratory
      600 Main Street Bar Harbor, Maine 04609 USA

      ---------- Forwarded message ----------
      Date: Sun, 24 Aug 2003 13:23:35 +0200
      From: Dieter Fiebelkorn <dieter.k@...>
      To: scg@...
      Subject: ploticus: Changes on "Makefile_api" for create sharedlib on MacOS X



      Stephen C. Grubb scg@...
      Scientific Software Engineer, The Jackson Laboratory
      600 Main Street Bar Harbor, Maine 04609 USA

      ---------- Forwarded message ----------
      Date: Sun, 24 Aug 2003 13:23:35 +0200
      From: Dieter Fiebelkorn <dieter.k@...>
      To: scg@...
      Subject: ploticus: Changes on "Makefile_api" for create sharedlib on MacOS X



      Stephen C. Grubb scg@...
      Scientific Software Engineer, The Jackson Laboratory
      600 Main Street Bar Harbor, Maine 04609 USA

      ---------- Forwarded message ----------
      Date: Sun, 24 Aug 2003 13:23:35 +0200
      From: Dieter Fiebelkorn <dieter.k@...>
      To: scg@...
      Subject: ploticus: Changes on "Makefile_api" for create sharedlib on MacOS X



      Stephen C. Grubb scg@...
      Scientific Software Engineer, The Jackson Laboratory
      600 Main Street Bar Harbor, Maine 04609 USA

      ---------- Forwarded message ----------
      Date: Sun, 24 Aug 2003 13:23:35 +0200
      From: Dieter Fiebelkorn <dieter.k@...>
      To: scg@...
      Subject: ploticus: Changes on "Makefile_api" for create sharedlib on MacOS X

      On "pltestsuite" (works well):

      [aragorn:~/Desktop/plsrc211/pltestsuite] dieter% cc api_examp.c
      -lploticus -lpng -lz -lm -o api_examp
      [aragorn:~/Desktop/plsrc211/pltestsuite] dieter% ./api_examp

      Version: pl 2.11
      Executing getdata
      filling data set# 0
      getdata has read 2 records; there are 3 fields per record.
      // proc getdata has read & parsed these data:
      [A][1][2]
      [B][3][4]
      (endproc)
      Executing areadef
      areadef: lowerleft: 1,1 upperright: 3,4
      areadef: xrange is 0 to 10. yrange is 0 to 10.
      Done with page. Writing out result file. Computed bounding box is:
      0.69 , 0.79 to 3.11 , 4.10
      [aragorn:~/Desktop/plsrc211/pltestsuite] dieter% ls -l test1.png
      -rw-r--r-- 1 dieter staff 385 Aug 24 13:15 test1.png
      [aragorn:~/Desktop/plsrc211/pltestsuite] dieter% file test1.png
      test1.png: PNG image data, 282 x 370, 1-bit colormap, non-interlaced

      ========== ========== ========== ========== ========== ==========
    Your message has been successfully submitted and would be delivered to recipients shortly.