root/trunk/EBaporate/makefile

Revision 449, 1.0 kB (checked in by hazelsct, 6 years ago)

Separated shorts.c into new file, documented it. Other doc changes.

  • Property svn:keywords set to Author Date Id Revision
Line 
1#The makefile for EBaporate, this controls the building of all of the binaries.
2
3all: ebsurfweb ebaporate README.pdf
4
5#The original web CGI interface, which gets input from the environment variable
6#QUERY_STRING and outputs HTML to stdout.
7ebsurfweb: ebsurfweb.o ebsurf.o shorts.o
8        $(CC) $^ -lm -o $@
9
10#This new program takes an image and calculates the total evaporation rate.
11ebaporate: ebaporate.o
12        $(CC) $^ -lm -o $@
13
14#A couple of dependency declarations
15ebsurf.o: ebsurf.c ebsurf.h
16shorts.o: shorts.c ebsurf.h
17ebsurfweb.o: ebsurfweb.c ebsurf.h
18
19CXREF_SOURCES = ebsurfweb.c ebsurf.c ebsurf.h shorts.c ebaporate.c
20
21cxref-tex: $(CXREF_SOURCES) README.tex
22        cxref -latex2e $(CXREF_SOURCES)
23        rm -f cxref.tex
24        cxref -latex2e -NREADME $(CXREF_SOURCES)
25        touch $@
26
27README.pdf: README.tex cxref-tex
28        pdflatex $<
29        pdflatex $<
30
31clean:
32        rm -f ebsurfweb ebaporate *.o *.c.tex *.h.tex cxref-tex \
33        cxref.sty fonts.sty page.sty README.aux README.log *~ \
34        flux*.ps gen*.ps his*.ps last*.ps surf*.ps temp*.ps
Note: See TracBrowser for help on using the browser.