home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume24 / chemtab / part02 / Makefile < prev    next >
Makefile  |  1991-03-12  |  2KB  |  86 lines

  1. CC            = cc
  2. CFLAGS        = -g -DReGIS
  3. # Define ReGIS if you want to program to prompt the user to answer y/n
  4. # to the question of if they have a ReGIS compatible terminal
  5. DEST          = chemtab
  6. EXTHDRS          = /usr/include/curses.h \
  7.         /usr/include/math.h \
  8.         /usr/include/sgtty.h \
  9.         /usr/include/signal.h \
  10.         /usr/include/stdio.h \
  11.         /usr/include/sys/ioctl.h \
  12.         /usr/include/sys/ttychars.h \
  13.         /usr/include/sys/ttydev.h \
  14.         /usr/include/sys/ttyio.h \
  15.         /usr/include/time.h
  16. HDRS          = element.h \
  17.         graph.h \
  18.         tune.h \
  19.         undefs.h \
  20.         variables.h \
  21.         windows.h
  22. LDFLAGS          = $(CFLAGS)
  23. LIBS          = -lcurses -ltermcap graphlib.a
  24. LINKER          = cc
  25. MAKEFILE      = Makefile
  26. OBJS          = cleanup.o \
  27.         dogph.o \
  28.         doregisgph.o \
  29.         element.o \
  30.         element2.o \
  31.         esort.o \
  32.         looke.o \
  33.         main.o \
  34.         ptabl.o \
  35.         schar.o \
  36.         scrmisc.o \
  37.         vdata.o
  38. PRINT          = lpr
  39. PROGRAM          = chemtab
  40. SRCS          = cleanup.c \
  41.         dogph.c \
  42.         doregisgph.c \
  43.         element.c \
  44.         element2.c \
  45.         esort.c \
  46.         graphlib.c \
  47.         looke.c \
  48.         main.c \
  49.         ptabl.c \
  50.         schar.c \
  51.         scrmisc.c \
  52.         vdata.c
  53.  
  54. all:        grlib $(PROGRAM)
  55.  
  56. grlib:        graphlib.o
  57.         ar cr graphlib.a graphlib.o
  58.         ranlib graphlib.a
  59.  
  60. $(PROGRAM):     $(OBJS) graphlib.a
  61.         @echo -n "Loading $(PROGRAM) ... "
  62.         @$(LINKER) $(LDFLAGS) $(OBJS) -o $(PROGRAM) $(LIBS)
  63.         @echo "done"
  64.  
  65. clean:;        @rm -f $(OBJS)
  66.  
  67. depend:;    @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
  68.  
  69. index:;        @ctags -wx $(HDRS) $(SRCS)
  70.  
  71. install:    $(PROGRAM)
  72.         @echo Installing $(PROGRAM) in $(DEST)
  73.         @install -m 4755 $(PROGRAM) $(DEST)
  74.  
  75. print:;        @$(PRINT) $(HDRS) $(SRCS)
  76.  
  77. program:        $(PROGRAM)
  78.  
  79. tags:           $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
  80.  
  81. update:        $(DEST)/$(PROGRAM)
  82.  
  83. $(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
  84.         @make -f $(MAKEFILE) DEST=$(DEST) 
  85. ###
  86.