home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / calculat / meval113.zip / SRC / MAKEFILE.UNX < prev    next >
Text File  |  1993-04-10  |  990b  |  41 lines

  1. #
  2. # Unix Makefile for Eval
  3. #
  4. # Note that some compilers may run out of string space when compiling
  5. # help.c.  You'll have to figure out what options increase the string
  6. # space and compile help.c yourself if this happens.  For example, the
  7. # MIPS ucode C compiler requires this command line:
  8. #
  9. # cc -c -Wf,-XNl8192 help.c
  10. #
  11. # in order to get the string space high enough.  I haven't had any
  12. # trouble with any of the other source modules.
  13. #
  14. CCFLAGS=-c
  15. #
  16. # On some systems, you can use LIBC=-lc_s to make the program smaller by
  17. # linking to a shared library.
  18. #
  19. LIBC=-lc
  20. LIBM=-lm
  21. EXE=
  22. OBJ=.o
  23. HEADER=eval.h
  24. OBJFILES=eval$(OBJ) funcs$(OBJ) parse$(OBJ) estack$(OBJ) base$(OBJ) \
  25.      bitwise$(OBJ) etable$(OBJ) help$(OBJ) emath$(OBJ)
  26.  
  27. .c$(OBJ):
  28.     $(CC) $(CCFLAGS) $*.c
  29.  
  30. $(OBJFILES):  $(HEADER)
  31.  
  32. Eval$(EXE):  $(OBJFILES)
  33.     $(CC) -o Eval $(OBJFILES) $(LIBM) $(LIBC)
  34.     chmod 755 Eval
  35.  
  36. eval:    Eval$(EXE)
  37.     echo "Eval is made."
  38.  
  39. all:    Eval$(EXE)
  40.     echo "Eval is made."
  41.