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

  1. #
  2. #  Make file for hippo:
  3. #  Machine dependent stuff for a NeXT
  4.  
  5. # directory in which libraries are built (define it here if different
  6. #  architecture means different directory)
  7. #LIB_DIR = /u/eb/rensing/lib/next
  8. LIB_INSTALLDIR = /usr/local/dev/lib
  9. INC_INSTALLDIR = /usr/local/include
  10.  
  11. # list of interesting libraries for Next
  12. LIB_LIST = hippoNext
  13. DEBUGLIB_LIST = hippoNext.debug
  14. UTIL_LIB=hippoNext
  15.  
  16. CFLAGS = -O -g -Wall -DNeXT
  17. CFLAGS_DEB = -g -Wall -DNeXT -DDEBUG
  18. CFLAGS_PROF = -O -pg -Wall -DNeXT
  19. FFLAGS = -f
  20. LDFLAGS = -L$(LIB_DIR) -l$(UTIL_LIB)
  21.  
  22. # LIBS for making hb2hippo...
  23. # Note: -lzebra must appear twice
  24. # hippo is picked up from LDFLAGS
  25. HB2HADD = getarg.o -lhbook4 -lzebra -lkerngen -lzebra -lkernnum -lf77
  26. hb2hippo :: getarg.c
  27.     $(CC) $(CFLAGS) -c getarg.c
  28.  
  29.  
  30. MAKECOM = $(MAKE) -$(MAKEFLAGS) -f $(MAKEFILE)
  31.  
  32. # Rules
  33.  
  34. .c.a :
  35.     $(CC) -c $(CFLAGS) $<
  36.     $(AR) $(ARFLAGS) $@ $*.o
  37.     $(RM) -f $*.o
  38. .f.a :
  39.     $(FC) -c $(FFLAGS) $<
  40.     $(AR) $(ARFLAGS) $@ $*.o
  41.     $(RM) -f $*.o
  42.  
  43. .psw.c .psw.h:
  44.     $(PSWRAP) $(PSWFLAGS) -a -h $*.h -o $*.c $*.psw
  45.