home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / DCLAP 6d / dclap6d / Dmake / unix / unix-sol2-suncc / makecopy next >
Encoding:
Text File  |  1996-07-05  |  2.4 KB  |  96 lines  |  [TEXT/R*ch]

  1. #    makefile for dclap C++ library routines
  2. #
  3. ## Gnu gcc/g+ has been tested...
  4. ## this one is for Sun Solaris w/ Sun cc and CC 
  5. #
  6. # dgg note -- for motif link to work, remember to set 
  7. #  setenv LD_LIBRARY_PATH /usr/lib:/usr/openwin/lib
  8.  
  9. # default flags for compiling and loading
  10.  
  11. #------------------------ local setup ---------------
  12. #SUFFIXLCL = $(LCL)
  13. SUFFIXLCL = sol
  14. CPFLAGS1 = -c -g  #- O 
  15. CFLAGS1 = -c -g -DDCLAP #-O 
  16. LDFLAGS1 = -O
  17. CC = cc
  18. CPP = CC
  19. RAN = echo #ranlib
  20. AR=ar
  21. # get rid of debug symbols
  22. STRIP=strip
  23.  
  24. # solaris needs /usr/ccs/lib/libgen.a for regcmp/regex weird call from Xlib
  25. ## but damn libXm isn't finding libgen funcs ???????
  26. OTHERLIBS = # -lgen  # -lm # -L/usr/ccs/lib -lgen
  27.  
  28. OURLIBS = -lgen -lvibrant -ldclap -ldrich -lncbi 
  29. ## SRV4 libs == Solaris libs
  30. NETLIBS = -ldnet  -lsocket -lnsl
  31. ##NETLIBS = -ldnet  
  32.  
  33.  
  34. # try static linked x libs
  35. # note: !static == shared motif libs == runs on Solaris2 & SunOs
  36. #       -static == static libs == fails on Solaris2 (some non-shared stdlib problem)
  37. VIBLIBS =  -lXm  -lXt -lX11  #-lXmu
  38. #VIBLIBS = -B static -lXm -lXt -lX11 # -lXmu 
  39. VIBFLAG = -I/opt/IXIX11R5/include -I/opt/SUNWmotif/share/include -DWIN_MOTIF 
  40.  
  41. #------------------------ end local setup ---------------
  42.  
  43.  
  44. SUFFIXENV = unx
  45. LIBNCBI = libncbi.a
  46. LIBVIB = libvibrant.a
  47. LIBDNET =  libdnet.a
  48. LIBDCLAP = libdclap.a
  49. LIBDRICH = libdrich.a
  50.  
  51. INCPATH = ../include
  52. LIBPATH = ../lib   #-L/usr/ccs/lib 
  53. CFLAGS = $(CFLAGS1) -I$(INCPATH) $(VIBFLAG)
  54. CPFLAGS = $(CPFLAGS1) -I$(INCPATH) $(VIBFLAG)
  55. LDFLAGS = $(LDFLAGS1) -I$(INCPATH) -L$(LIBPATH) $(VIBFLAG)
  56.  
  57.  
  58. ## All things to make
  59. ##
  60. all :  copy
  61.  
  62.  
  63. ## get all the source files
  64. ##
  65.  
  66. copy :
  67.     - mkdir ../include
  68.     - mkdir ../lib
  69.     - chmod +w ../include/*
  70.     - chmod +w *
  71.     cp ../corelib/*.h ../include
  72.     cp ../corelib/ncbilcl.$(SUFFIXLCL) ../include/ncbilcl.h
  73.     cp ../corelib/*.c .
  74.     - chmod +w *.c
  75. #    cp ../corelib/ncbimain.$(SUFFIXENV) ncbimain.c
  76. #    cp ../corelib/ncbienv.$(SUFFIXENV) ncbienv.c
  77.     cp ../vibrant/*.h ../include
  78.     cp ../vibrant/*.c .
  79.     cp ../DClap/*.h ../include
  80.     cp ../DNet/*.h ../include
  81.     cp ../Drtf/*.h ../include
  82.     cp ../DBio/*.h ../include
  83.     cp ../network/nsclilib/*.h ../include
  84.     cp ../DClap/*.cpp ../DClap/*.c .
  85.     cp ../DNet/*.cpp ../DNet/*.c .
  86.     cp ../Drtf/*.cpp ../Drtf/*.c .
  87.     cp ../DBio/*.cpp ../DBio/*.c .
  88.     cp ../DApp/*.* .
  89.     echo "Renaming build/*.cpp files to build/*.cc for silly g++"
  90. # cp ./rename .
  91.     ./rename .cpp .cc
  92.     chmod +w ../include/*
  93.     chmod +w *
  94.  
  95.  
  96.