home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gnuplapi.zip / gnuplot-api-os2 / build / Makefile.os2-dll < prev    next >
Encoding:
Makefile  |  2001-03-07  |  1.2 KB  |  44 lines

  1. SHELL = sh
  2. _O = .obj
  3. _A = .lib
  4. AR = emxomfar
  5.  
  6. GNUPLOT_OBJS = bitmap$(_O) term$(_O) util$(_O) version$(_O) stdfn$(_O) color-short$(_O)
  7. GNUPLOT_NAME = gnpltdrw
  8.  
  9. GNUPLOT_DEP = gnuplot.def gnuplot-small$(_A) shim_gnuplot$(_O)
  10.  
  11. $(GNUPLOT_NAME).dll: $(GNUPLOT_DEP)
  12.     gcc -s -O2 -Zdll -Zomf -Zmt -Zcrtdll $(GNUPLOT_DEP) -o $@ -lvesa -ljmgraph -lgd -lpng_import -lz_import  || rm $@
  13.  
  14. # In fact only get_term_ftable() is used out of this list...
  15. gnuplot.def:
  16.     echo > $@ \
  17. "LIBRARY '$(GNUPLOT_NAME)' INITINSTANCE TERMINSTANCE\n" \
  18. "DESCRIPTION '@#comp.graphics.gnuplot:3.7.0.9+pm3d#@The drawing subsystem of gnuplot'" \n\
  19. "CODE LOADONCALL" \n\
  20. "DATA LOADONCALL NONSHARED MULTIPLE" \n\
  21. "EXPORTS" \n\
  22. " term_start_multiplot" \n\
  23. " change_term" \n\
  24. " term_end_plot" \n\
  25. " term_set_output" \n\
  26. " term_start_plot" \n\
  27. " term_end_multiplot" \n\
  28. " term_init" \n\
  29. " get_term_ftable" \n\
  30. " list_terms"
  31.  
  32. gnuplot_s$(_A): gnuplot.def
  33.     emximp -o $@ gnuplot.def
  34.  
  35. gnuplot-small$(_A): $(GNUPLOT_OBJS)
  36.     $(AR) cr $@ $(GNUPLOT_OBJS)
  37.  
  38. shim_gnuplot$(_O): shim_gnuplot.c
  39.     gcc -I../src/graph -O2 -Zomf -c shim_gnuplot.c
  40.  
  41. color-small$(_O): color-small.c
  42.     gcc -I../src/graph -O2 -Zomf -c color-small.c
  43.  
  44.