home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / SNNSV32.ZIP / SNNSv3.2 / tools / sources / Makefile < prev    next >
Encoding:
Makefile  |  1994-04-25  |  3.1 KB  |  132 lines

  1. #*****************************************************************************
  2. #  FILE     : Makefile
  3. #  SHORTNAME: Makefile
  4.  
  5. #  PURPOSE  : Makefile for SNNSv3.2 kernel, tools, or user interface
  6.  
  7. #  AUTHOR   : Markus Huettel Guenter Mamier Ralf Huebner
  8. #  DATE     : 17.12.1993
  9.  
  10. #                     (c) 1991 - 94 by SNNS-Group
  11. #       Institute for Parallel and Distributed High Performance Systems
  12. #                      University of Stuttgart, FRG
  13. #
  14. #*****************************************************************************
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21. # Created by huebner at Mon Apr 25 12:48:36 MET DST 1994
  22.  
  23. # -- SNNS  Installation  Directories  &  Libraries --
  24. SNNSDIR = /usr/local/bv/SNNS/SNNSv3.2
  25. MACHINE = sun4
  26. MACHINENAME= sun_os4x
  27. COMPILER = cc
  28. CCFLAGS = -O
  29. FPOPTIONS = 
  30. RLIB = ranlib
  31. XDIR = /usr/local/X11R5/lib
  32. XH = /usr/local/X11R5/include
  33. LDOPTIONS = -L$(XDIR) -lXaw -lXmu -lXt -lXext -lX11 -lm -ll
  34. LDOPTIONS = -L$(XDIR) -lXaw -lXmu -lXt -lXext -lX11 -lm -ll
  35. TOOLSBINDIR    = $(SNNSDIR)/tools/bin/$(MACHINENAME)
  36. KERNELLIBDIR    = $(SNNSDIR)/kernel/bin/$(MACHINENAME)
  37. KERNELSOURCES    = $(SNNSDIR)/kernel/sources
  38.  
  39. # -- C-Compiler Configuration --
  40.  
  41. CC              = $(COMPILER)
  42. CPPFLAGS        = -I$(KERNELSOURCES)
  43. CFLAGS          = $(CDEBUG) $(CCFLAGS) $(FPOPTIONS) $(CPPFLAGS)
  44. CDEPFLG         = -MM
  45.  
  46. # -- Archive Configuration --
  47.  
  48. CP        = cp
  49. PATHDEL        = /
  50. AR              = ar
  51. ARFLAGS     = rc
  52. RANLIB          = $(RLIB)
  53.  
  54. # -- Libraries --
  55.  
  56. LIBKERNEL    = $(KERNELLIBDIR)/libkernel.a $(KERNELLIBDIR)/libfunc.a
  57.  
  58. # -- Source files --
  59.  
  60. USE_LIB_SOURCE_C   = netlearn.c \
  61.                      bignet.c \
  62.                      netperf.c \
  63.                      snnsbat.c \
  64.                      feedback-gennet.c \
  65.                      convert2snns.c
  66. USE_LIB_SOURCE_H   = snnsbat.h
  67. USE_LIB_SOURCE     = $(USE_LIB_SOURCE_C) \
  68.                      $(USE_LIB_SOURCE_H)
  69.  
  70. NO_LIB_SOURCE_C    = analyze.c \
  71.                      pat_sel.c \
  72.                      mkhead.c \
  73.                      mkout.c \
  74.                      mkpat.c
  75. NO_LIB_SOURCE      = $(NO_LIB_SOURCE_C)
  76.  
  77. SOURCES            = $(USE_LIB_SOURCE) \
  78.                      $(NO_LIB_SOURCE)
  79.  
  80. # -- Modul files --
  81.  
  82. MODULES            = $(USE_LIB_SOURCE_C) \
  83.                      $(NO_LIB_SOURCE_C)
  84.  
  85. # -- Object files --
  86.  
  87. USE_LIB_OBJECTS    = $(USE_LIB_SOURCE_C:.c=.o)
  88. NO_LIB_OBJECTS     = $(NO_LIB_SOURCE_C:.c=.o)
  89.  
  90. # -- Programs  --
  91.  
  92. USE_LIB_PROGS      = $(USE_LIB_SOURCE_C:.c=)
  93. NO_LIB_PROGS       = $(NO_LIB_SOURCE_C:.c=)
  94.  
  95. # -- Rules --
  96.  
  97. .KEEP_STATE:
  98.  
  99. default: $(NO_LIB_PROGS) $(USE_LIB_PROGS)
  100.  
  101. all: $(NO_LIB_PROGS) $(USE_LIB_PROGS)
  102.  
  103. $(NO_LIB_PROGS): $(NO_LIB_OBJECTS)
  104.     $(CC) $@.o -lm -o $@
  105.  
  106. $(USE_LIB_PROGS): $(USE_LIB_OBJECTS) $(LIBKERNEL)
  107.     $(CC) $@.o $(LIBKERNEL) -lm -ll -o $@
  108.  
  109. install: $(NO_LIB_PROGS) $(USE_LIB_PROGS)
  110.     -strip $(NO_LIB_PROGS)
  111.     $(CP) $(NO_LIB_PROGS) $(TOOLSBINDIR)
  112.     -strip $(USE_LIB_PROGS)
  113.     $(CP) $(USE_LIB_PROGS) $(TOOLSBINDIR)
  114.  
  115. list:
  116.     cat $(SOURCES) > toolssrc.all
  117.  
  118. clean:
  119.     /bin/rm -f $(USE_LIB_OBJECTS)
  120.     /bin/rm -f $(NO_LIB_OBJECTS)
  121.  
  122. tarfile:
  123.     tar cvf tools.tar $(SOURCES) Makefile*
  124.     compress tools.tar
  125.  
  126. depend:
  127.     $(CC) $(CDEPFLG) $(CPPFLAGS) $(MODULES) > tools.ddt
  128.  
  129. # -- Dependencies --
  130.  
  131. include tools.ddt
  132.