You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
2.4 KiB

  1. # $Id: Makefile,v 1.12 1999/08/31 19:10:05 fabio Exp fabio $
  2. #
  3. # nanotrav: simple FSM traversal program
  4. #---------------------------------------------------------------------------
  5. .SUFFIXES: .o .c .u
  6. CC = gcc
  7. #CC = cc
  8. RANLIB = ranlib
  9. #RANLIB = :
  10. PURE =
  11. EXE =
  12. #EXE = .exe
  13. TARGET = nanotrav$(EXE)
  14. TARGETu = nanotrav-u
  15. WHERE = ..
  16. INCLUDE = $(WHERE)/include
  17. LIBS = $(WHERE)/dddmp/libdddmp.a $(WHERE)/cudd/libcudd.a \
  18. $(WHERE)/mtr/libmtr.a $(WHERE)/st/libst.a $(WHERE)/util/libutil.a \
  19. $(WHERE)/epd/libepd.a
  20. MNEMLIB =
  21. #MNEMLIB = $(WHERE)/mnemosyne/libmnem.a
  22. BLIBS = -kL$(WHERE)/dddmp -kldddmp -kL$(WHERE)/cudd -klcudd -kL$(WHERE)/mtr \
  23. -klmtr -kL$(WHERE)/st -klst -kL$(WHERE)/util -klutil \
  24. -kL$(WHERE)/epd -klepd
  25. LINTLIBS = $(WHERE)/llib-ldddmp.a $(WHERE)/cudd/llib-lcudd.ln \
  26. $(WHERE)/mtr/llib-lmtr.ln $(WHERE)/st/llib-lst.ln \
  27. $(WHERE)/util/llib-lutil.ln $(WHERE)/epd/llib-lepd.ln
  28. SRC = main.c bnet.c ntr.c ntrHeap.c ntrBddTest.c ntrMflow.c ntrZddTest.c \
  29. ntrShort.c chkMterm.c ucbqsort.c
  30. HDR = bnet.h ntr.h $(WHERE)/include/dddmp.h $(WHERE)/include/cudd.h \
  31. $(WHERE)/include/cuddInt.h
  32. OBJ = $(SRC:.c=.o)
  33. UBJ = $(SRC:.c=.u)
  34. MFLAG =
  35. #MFLAG = -DMNEMOSYNE
  36. ICFLAGS = -g -O6 -Wall
  37. #ICFLAGS = -g -Wall
  38. XCFLAGS = -DHAVE_IEEE_754 -DBSD
  39. #XCFLAGS = -xtaso -ieee_with_no_inexact -tune host
  40. CFLAGS = $(ICFLAGS) $(MFLAG) $(XCFLAGS)
  41. DDDEBUG =
  42. #DDDEBUG = -DDD_STATS -DDD_VERBOSE -DDD_CACHE_PROFILE -DDD_UNIQUE_PROFILE -DDD_DEBUG
  43. LDFLAGS =
  44. #LDFLAGS = -jmpopt
  45. #LDFLAGS = -non_shared -om -taso
  46. LINTFLAGS = -u -n -DDD_STATS -DDD_CACHE_PROFILE -DDD_VERBOSE -DDD_DEBUG -DDD_UNIQUE_PROFILE
  47. #------------------------------------------------------
  48. $(TARGET): $(SRC) $(OBJ) $(HDR) $(LIBS) $(MNEMLIB)
  49. $(PURE) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LIBS) $(MNEMLIB) -lm
  50. .c.o: $(HDR)
  51. $(CC) -c $< -I$(INCLUDE) $(CFLAGS) $(DDDEBUG)
  52. # if the header files change, recompile
  53. $(OBJ): $(HDR)
  54. $(UBJ): $(HDR)
  55. optimize_dec: $(TARGETu)
  56. # optimize (DECstations only: uses u-code)
  57. $(TARGETu): $(SRC) $(UBJ) $(HDR) $(LIBS:.a=.b)
  58. cc -O3 $(XCFLAGS) $(LDFLAGS) $(UBJ) -o $@ $(BLIBS) -lm
  59. .c.u: $(SRC) $(HDR)
  60. cc -j -I$(INCLUDE) $(XCFLAGS) $<
  61. lint: $(SRC) $(HDR) $(LINTLIBS)
  62. lint $(LINTFLAGS) -I$(INCLUDE) $(SRC) $(LINTLIBS)
  63. tags: $(SRC) $(HDR)
  64. ctags $(SRC) $(HDR)
  65. all: $(TARGET) $(TARGETu) lint tags
  66. pixie: $(TARGETu)
  67. pixie $(TARGETu)
  68. clean:
  69. rm -f *.o *.u mon.out gmon.out *.pixie *.Addrs *.Counts mnem.* \
  70. .pure core *.warnings
  71. distclean: clean
  72. rm -f $(TARGET) $(TARGETu) *.bak *~ .gdb_history *.qv *.qx