home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / analg211.zip / Make.Risc < prev    next >
Text File  |  1997-03-14  |  2KB  |  53 lines

  1. # Please read Readme.html, or http://www.statslab.cam.ac.uk/~sret1/analog/
  2. CC = cc            # which compiler to use: eg cc, acc, gcc. NB Different
  3. #                    compilers need different CFLAGS, e.g., -O instead of -O2.
  4. CFLAGS =           # options, e.g. for optimisation or ANSI compilation.
  5. DEFS =             # any of -DNOPIPES -DNODNS -DNODIRENT
  6. OS = RISCOS        # Operating system: UNIX, DOS, WIN32, MAC, RISCOS or VMS
  7. LIBS = c:o.Stubs   # extra libraries needed; Solaris 2 (SunOS 5) needs
  8. #                    LIBS = -lnsl -lm and SCO Unix needs LIBS = -lsocket -lm
  9. #                    IRIX reportedly needs LIBS = -lc -lm
  10. PAGER = more       # Your favourite pager program, e.g. more
  11.  
  12. PROGRAM = analog
  13. SOURCES = alias.c analog.c formgen.c hash.c init.c init2.c macstuff.c \
  14.         output.c output2.c output3.c sscanf.c utils.c
  15. OBJS = alias.o analog.o formgen.o hash.o init.o init2.o macstuff.o \
  16.         output.o output2.o output3.o sscanf.o utils.o
  17. HEADERS = analhead.h analhea2.h
  18.  
  19. PROGRAM = analog
  20. SOURCES = alias.c analog.c formgen.c hash.c init.c init2.c macstuff.c \
  21.         output.c output2.c output3.c sscanf.c utils.c
  22. OBJS = alias.o analog.o formgen.o hash.o init.o init2.o macstuff.o \
  23.         output.o output2.o output3.o sscanf.o utils.o
  24. HEADERS = analhead.h analhea2.h
  25.  
  26. # Form interface options:
  27. FORMPROG = analform.cgi     # The program that processes the data from the formFORMSRC = analform.c        # The source code for that program
  28. FORMHTML = analogform.html  # Where the form itself will go
  29. FORMOPTS =                  # Extra analog options when constructing the form
  30.  
  31. all: $(PROGRAM)
  32.  
  33. $(PROGRAM): $(OBJS) $(HEADERS)
  34.         link -aif -o $(PROGRAM) $(OBJS) $(LIBS)
  35.         @echo '***'
  36.         @echo '***IMPORTANT: You must read the licence before using analog'
  37.         @echo '***'
  38.  
  39. .SUFFIXES: .o .c
  40. .c.o:;  $(CC) $(CFLAGS) -c -IC: $(DEFS) -D$(OS) -o $@ $<
  41.  
  42. $(FORMPROG): $(FORMSRC) Makefile
  43.         $(CC) $(CFLAGS) $(FORMSRC) -o $(FORMPROG)
  44.  
  45. $(FORMHTML): $(PROGRAM) Makefile
  46.         ./$(PROGRAM) -form $(FORMOPTS) +O$(FORMHTML)
  47.  
  48. form: $(FORMHTML) $(FORMPROG)
  49.  
  50. clean:
  51.         remove analog
  52.         wipe o.* ~v~c
  53.