home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / apps / math / lpsolves / makefile.st < prev    next >
Makefile  |  1992-08-11  |  1KB  |  66 lines

  1. MYSOURCES= main.c solve.c read.c write.c tran.c dual.c
  2. YSOURCE= ytab.c
  3. YOBJECT= ${YSOURCE:.c=.o}
  4. LSOURCE= lexyyx.c
  5. OBJECTS= ${MYSOURCES:.c=.o} ${YOBJECT}
  6. INCLUDES= globals.h defines.h proto.h
  7. TARGET= lp_solve
  8. MANPAGE= ${TARGET}.1
  9.  
  10. # -ll and -lm seems to be enough on most machines.
  11. #LIBS= -ll -lm
  12. LIBS= -lpml
  13.  
  14. # change this when you like. They are only used with make install.
  15. INSTALLDIR=/usr/local/bin
  16. MANDIR=/usr/local/man/man1
  17.  
  18. # for performance reasons be sure to add all possible floating point support
  19. # This is ANSI C code following POSIX standards, be sure to tell your compiler
  20. # when necessary.
  21. # default
  22. CFLAGS= -O
  23. #Apollo 68040 based: 425[est], DN5500
  24. #CFLAGS= -O -Acpu,mathlib
  25. #Apollo 680[23]0 based: DN[234]XXX
  26. #CFLAGS= -O -Acpu,mathchip
  27. # debugging
  28. #CFLAGS= -g
  29.  
  30. # choose a C compiler. On Sun, you probably want to use gcc
  31. CC= gcc
  32.  
  33. ${TARGET} : ${OBJECTS} 
  34.     ${CC} -o ${TARGET} ${CFLAGS} ${OBJECTS} ${LIBS}
  35.  
  36. ${OBJECTS} : ${INCLUDES}
  37.  
  38. main.o : patchlev.h
  39.  
  40.  
  41. #${LSOURCE} : lex.l
  42. #    lex lex.l
  43.  
  44. #${YSOURCE} : lp.y
  45. #    yacc lp.y
  46.  
  47. #${YOBJECT} : ${LSOURCE}
  48.  
  49. install:
  50.     cp ${TARGET} ${INSTALLDIR}
  51.     cp ${MANPAGE} ${MANDIR}
  52.  
  53. clean:
  54.     /bin/rm -f ${OBJECTS} ${TARGET} TAGS ${LSOURCE}  ${YSOURCE}
  55.  
  56. # the following definitions can be practical if you have the tools
  57.  
  58. TAGS:
  59.     etags *.[chly]
  60.  
  61. proto.h:
  62.     mkproto ${MYSOURCES} > proto.h
  63.  
  64. ${TARGET}.man: ${MANPAGE}
  65.     nroff -man ${MANPAGE} > ${TARGET}.man
  66.