home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Internet / WWW / analog / Source / Makefile < prev    next >
Encoding:
Makefile  |  1996-02-11  |  1.3 KB  |  38 lines

  1. # Makefile for analog 1.9beta
  2. # Please read Readme.html, or http://www.statslab.cam.ac.uk/~sret1/analog/
  3. CC = cc           # which compiler to use. NB Different compilers need
  4.                    # different CFLAGS, e.g., -O instead of -O2.
  5. CFLAGS = -arch m68k -arch i386 -arch hppa -arch sparc -O2       # options, e.g. for optimisation or ANSI compilation.
  6. LIBS = -lm         # extra libraries needed
  7. PAGER = less       # Your favourite pager program, e.g. more
  8.  
  9. PROGRAM = analog
  10. SOURCES = alias.c analog.c formgen.c hash.c init.c output.c sscanf.c utils.c
  11. OBJS = $(SOURCES:.c=.o)
  12. HEADERS = analhead.h analhea2.h
  13.  
  14. # Form interface options:
  15. FORMPROG = analform.cgi     # The program that processes the data from the form
  16. FORMSRC = analform.c        # The source code for that program
  17. FORMHTML = analogform.html  # Where the form itself will go
  18. FORMOPTS =                  # Extra analog options when constructing the form
  19.  
  20. $(PROGRAM): $(OBJS) $(HEADERS) Makefile
  21.     $(CC) $(CFLAGS) $(OBJS) -o $(PROGRAM) $(LIBS)
  22.  
  23. $(OBJS): $(HEADERS) Makefile
  24.     $(CC) $(CFLAGS) -c $*.c
  25.  
  26. $(FORMPROG): $(FORMSRC) Makefile
  27.     $(CC) $(CFLAGS) $(FORMSRC) -o $(FORMPROG)
  28.  
  29. form: $(PROGRAM) $(FORMPROG)
  30.     $(PROGRAM) -form $(FORMOPTS) +O$(FORMHTML)
  31.  
  32. force:
  33.     touch $(SOURCES)
  34.     make $(PROGRAM) 'CFLAGS=$(CFLAGS)' 'LIBS=$(LIBS)' CC=$(CC)
  35.  
  36. lint:
  37.     lint $(SOURCES) $(LIBS) | $(PAGER)
  38.