ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/SiteMapperOld/GNUmakefile
Revision: 240
Committed: 2004-09-11T20:54:23-07:00 (20 years, 9 months ago) by Douglas Thrift
File size: 701 byte(s)
Log Message:
Install target.

File Contents

# Content
1 # Site Mapper
2 #
3 # Douglas Thrift
4 #
5 # $Id$
6
7 cxxsrc = SiteMapper.cpp Page.cpp Matcher.cpp
8 cxxhdr = $(patsubst %.cpp, %.hpp, $(cxxsrc))
9 cxxobj = $(patsubst %.cpp, %.o, $(cxxsrc))
10 cxxdep = $(patsubst %.cpp, %.d, $(cxxsrc))
11 exe = SiteMapper
12
13 CXX := g++
14 CXXFLAGS := -g -O2
15 CPPFLAGS := -I/usr/local/include
16 LDFLAGS := -L/usr/local/lib
17 LDLIBS := -lxerces-c -lxalan-c -lpcre -pthread
18
19 all: $(exe)
20
21 $(exe): $(cxxobj)
22 $(CXX) $(LDFLAGS) $+ $(LOADLIBES) $(LDLIBS) -o $@
23
24 %.o: %.cpp
25 $(CXX) -MD $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $<
26
27 .PHONY: install clean
28
29 install: $(exe)
30 ln -f $(exe) $(HOME)/bin
31
32 clean:
33 -rm -f $(cxxobj) $(cxxdep) $(exe) core $(patsubst %, %.core, $(exe)) \
34 $(patsubst %, %.stackdump, $(exe))

Properties

Name Value
svn:eol-style native
svn:keywords Id