home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / analg211.zip / Makefile < prev    next >
Makefile  |  1997-09-07  |  2KB  |  50 lines

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