source: tags/1.3.2/examples/showdata/Makefile @ 3823

Last change on this file since 3823 was 3471, checked in by ldelgass, 11 years ago

Makefile fixes: make 'install' target always depend on 'all' target. This
ensures that an up to date build exists before installing, and also permits
the use of "make install" in place of "make all install" or "make all; make install". It doesn't affect the existing build scripts. Likewise, make 'distclean'
always depend on 'clean'. Remove empty contour objects example, as there is no
corresponding object class. Also declare all the standard targets 'all, install,
etc' in the .PHONY section for performance.

File size: 426 bytes
Line 
1FC              = gfortran
2FCFLAGS         =
3FCDEBUGFLAGS    = -Wall -g
4INCLUDES        = -I/apps/rappture/dev/include
5LIBS            = -L/apps/rappture/dev/lib -lrappture -lexpat -lz -lm
6
7FC_SWITCHES     = $(FCFLAGS) $(FCDEBUGFLAGS) $(INCLUDES)
8
9.PHONY: all install clean distclean
10
11all: showdata
12
13showdata: showdata.f
14        $(FC) $(FC_SWITCHES) $< -o $@ $(LIBS)
15
16install: all
17
18clean:
19        $(RM) showdata run*.xml
20
21distclean: clean
22
Note: See TracBrowser for help on using the repository browser.