source: trunk/examples/objects/dxWriter/Makefile.in @ 3471

Last change on this file since 3471 was 3471, checked in by ldelgass, 8 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: 1.1 KB
RevLine 
[1099]1
2bindir          = @bindir@
3datadir         = @datadir@
4datarootdir     = @datarootdir@
5exec_prefix     = @exec_prefix@
6includedir      = @includedir@
7libdir          = @libdir@
8mandir          = @mandir@
9prefix          = @prefix@
10srcdir          = @srcdir@
11
12INSTALL         = @INSTALL@
13MKDIR_P         = @MKDIR_P@
14
15CC              = @CC@
16CFLAGS          = @CFLAGS@
17CXX             = @CXX@
18CXXFLAGS        = @CFLAGS@
19DEFINES         = -g -Wall
[1100]20INCLUDES        = -I$(srcdir)/../../../src/core \
[1099]21                  -I$(includedir)
22LIBS            = \
[1100]23                -L../../../src/core -lrappture \
[2071]24                -L$(libdir) -lexpat -lz -lm
[1099]25VPATH           = $(srcdir)
26
27CXX_SWITCHES    = $(CXXFLAGS) $(INCLUDES) $(DEFINES)   
28CC_SWITCHES     = $(CFLAGS) $(INCLUDES) $(DEFINES)     
29
30FILES           = \
31                $(srcdir)/dxWrite.cc \
32                Makefile
33
34destdir         = $(prefix)/examples/objects/dxWriter
35
36
37PROGS           = \
38                dxwrite
39
[3471]40.PHONY: all install clean distclean
41
[1099]42all: $(PROGS)
43
44dxwrite: $(srcdir)/dxWrite.cc
45        $(CXX) $(CXX_SWITCHES) -o $@ $< $(LIBS)
46
[3471]47install: all
[1944]48        $(MKDIR_P) -m 0755 $(destdir)
[1099]49        for i in $(FILES) ; do \
[1944]50          $(INSTALL) -m 0444  $$i $(destdir) ; \
[1099]51        done
52        for i in $(PROGS) ; do \
[1944]53          $(INSTALL) -m 0555 $$i $(destdir) ; \
[1099]54        done
55
56clean:
57        $(RM) $(PROGS) myDXFile.dx
58
59distclean: clean
60        $(RM) Makefile *~
Note: See TracBrowser for help on using the repository browser.