home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / D / SVGALIB / SVGALIB1.TAR / svgalib / makeshared < prev    next >
Encoding:
Text File  |  1995-02-21  |  1.1 KB  |  35 lines

  1. # This requires the DLL tools to be installed, and gcc >= 2.5.8.
  2. # Shared image and stubs are placed in sharedlib/ directory. Do make install
  3. # to install them.
  4.  
  5. export VERSION='1.2.4'
  6. export PATH=/usr/dll/bin:$PATH
  7.  
  8. make installheaders
  9. echo If there might be static library object files lying around, stop this.
  10. export JUMP_DIR=`pwd`/jump/
  11. export JUMP_LIB=libvga
  12. export DLLFLAGS=-B/usr/dll/jump/    # used by makefiles
  13. cd src
  14. make libvga.a || exit
  15. cd ../gl
  16. make libvgagl.a || exit
  17. cd ..
  18. mv -f src/libvga.a .    # Stupid mkstubs syntax makes this necessary
  19. mv -f gl/libvgagl.a .
  20. mkstubs -a 0x63b00000 -l libvga -v $VERSION -j 0x00001000 -g 4096 \
  21.     -- libvga
  22. mkstubs -a 0x63b00000 -l libvga -v $VERSION -j 0x00001000 -g 4096 \
  23.     -- libvgagl
  24. mkimage -a 0x63b00000 -l libvga -v $VERSION -j 0x00001000 -g 4096 \
  25.     -- libvga.a libvgagl.a `gcc --print-libgcc-file-name` -lc
  26. rm -f libvga.a
  27. rm -f libvgagl.a
  28. strip libvga.so.$VERSION
  29. mv -f libvga.so.$VERSION sharedlib/libvga.so.$VERSION
  30. mv -f libvga.sa sharedlib/libvga.sa
  31. mv -f libvgagl.sa sharedlib/libvgagl.sa
  32.  
  33. echo Shared library files are now in sharedlib/. Be sure to do a make clean
  34. echo everywhere before building static libraries.
  35.