home *** CD-ROM | disk | FTP | other *** search
/ Education Sampler 1992 [NeXTSTEP] / Education_1992_Sampler.iso / Programming / Source / HippoDraw / hippo / make.sun4 < prev    next >
Encoding:
Text File  |  1992-04-28  |  900 b   |  43 lines

  1. #
  2. # define macros which work on Sun4
  3.  
  4. .SUFFIXES : .cc
  5.  
  6. CC=gcc -I/usr/local/lib/gcc-include 
  7. CPLUSPLUS=g++ -I/usr/local/lib/g++-include
  8.  
  9. # directory in which libraries are built (define it here if different
  10. #  architecture means different directory), eg.
  11. #LIB_DIR = /u/eb/rensing/lib/sun4
  12.  
  13. LIB_LIST = hippoXIV hippoX11
  14. DEBUGLIB_LIST = hippoX11.debug hippoXIV.debug
  15. UTIL_LIB=hippoX11
  16.  
  17. LIB_INSTALLDIR = /usr/local/lib
  18.  
  19. _CFLAGS =  -Wall -Dsun4
  20. CFLAGS = -O $(_CFLAGS)
  21. CFLAGS_DEB = -g -DDEBUG $(_CFLAGS)
  22. CFLAGS_PROF = -pg -DPROFILE $(_CFLAGS)
  23. LDFLAGS = -L$(LIB_DIR) -l$(UTIL_LIB) -lm
  24.  
  25. # LIBS for making hb2hippo...
  26. # hippo is picked up from LDFLAGS
  27. # gcc-gnulib is for C code compiled with gcc
  28. HB2HADD = -lpacklib /usr/local/lib/gcc-gnulib
  29.  
  30. MAKECOM = $(MAKE) -$(MAKEFLAGS)
  31.  
  32.  
  33. # Rules
  34.  
  35. .cc.a :
  36.     $(CPLUSPLUS) $(CFLAGS) -c -o $% $<
  37.     $(AR) $(ARFLAGS) $@ $%
  38.     $(RM) $(RMFLAGS) $%
  39.  
  40. RANLIB = ranlib
  41. CP = cp
  42. MV = mv
  43.