home *** CD-ROM | disk | FTP | other *** search
/ pc.louisiana.edu/pub/unix/ / Louisiana_UNIX.tar / Louisiana_UNIX / xspread3.0.zoo / Imakefile < prev    next >
Makefile  |  1994-08-18  |  3KB  |  89 lines

  1. /*
  2.  * Copyright (C) 1992  Board of Regents of the University of Wisconsin
  3.  * on behalf of the Department of Electrical Engineering and Computer
  4.  * Science, University of Wisconsin-Milwaukee, Milwaukee, WI 53201.
  5.  *
  6.  * This program is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; either version 2 of the License, or
  9.  * (at your option) any later version.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program; if not, write to the Free Software
  18.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  *
  20.  * The programs in this directory were developed by software engineering 
  21.  * teams as part of the course "Introduction to Software Engineering" 
  22.  * under the supervision of Professor G. Davida.
  23.  * This is a modification of a program written or modified by
  24.  * others.  The original copyrights, as per GNU General Public License,
  25.  * may still be applicable.  The UWM copyright is applicable only
  26.  * the those parts generated at UWM.
  27.  *
  28.  * Please send all changes, enhancements, and other comments about this
  29.  * software to
  30.  *             soft-eng@cs.uwm.edu
  31.  *
  32.  * No Warranty, expressed or implied, comes with this software.
  33.  * This software is intended to be used by not-for-profit
  34.  * organizations or by individuals for personal HOME use. 
  35.  * This software, or any of its parts, may not be used by for-profit
  36.  * organization, regardless of application or intended product or
  37.  * customer, without the permission of the Board of Regents of the 
  38.  * University  of Wisconsin is strictly forbidden. 
  39.  *
  40.  * Contact:    soft-eng@cs.uwm.edu
  41.  *            or
  42.  *        
  43.  *        Software Engineering Coordinator
  44.  *        Computer Science
  45.  *            Department of EECS
  46.  *        University of Wisconsin - Milwaukee
  47.  *        Milwaukee, WI  53201
  48.  *        414-229-4677
  49.  *
  50.  *        HISTORY,CLAIMS and CONTRIBUTIONS
  51.  */
  52.  
  53. #  I use the latest gcc to find bugs..
  54. #CC=gcc2.3.3
  55. CC=gcc
  56.  
  57. # All of the source files
  58. # psc.c - Convert ascii input to SC/XSpread format.
  59.  
  60. SRCS = cmds.c crypt.c format.c gram.c graphic_main.c help.c interp.c lex.c \
  61.        matrix.c plot_XY.c plot_bar.c plot_line.c plot_pie.c plot_stk_bar.c \
  62.        sc.c range.c screen.c scXstuff.c utils.c vi.c vmtbl.c xmalloc.c \
  63.        version.c
  64.  
  65. OBJS = cmds.o crypt.o format.o gram.o graphic_main.o help.o interp.o lex.o \
  66.        matrix.o plot_XY.o plot_bar.o plot_line.o plot_pie.o plot_stk_bar.o \
  67.        sc.o range.o screen.o scXstuff.o utils.o vi.o vmtbl.o xmalloc.o \
  68.        version.o
  69.  
  70. HDRS = config.h experres.h graphic_gvar.h pattern.h plot.h sc.h scXstuff.h \
  71.        statres.h y.tab.h
  72.  
  73. # For OSF(DEC Alpha things) add -ldnet_stub
  74. EXTRA_LIBRARIES = $(XLIB) -lm 
  75. # NOPE - won't work: DEPEND=$(HDRS)
  76.  
  77. ComplexProgramTarget(xspread)
  78. SpecialObjectRule($(OBJS).o, $(HDRS), $(LOCAL_DEFINES))
  79. InstallProgram(xspread,$(BINDIR))
  80. InstallManPage(xspread,$(MANDIR))
  81.  
  82. gram.o: sc.h y.tab.h gram.c
  83.     $(CC) ${CFLAGS} -c gram.c
  84.     sed<gram.y >experres.h -f eres.sed;sed < gram.y > statres.h -f sres.sed
  85.  
  86. gram.c: gram.y
  87.     $(YACC) -d gram.y; mv y.tab.c gram.c
  88.  
  89.