ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/HostStatus/GNUmakefile
Revision: 901
Committed: 2007-04-29T02:28:47-07:00 (18 years, 1 month ago) by douglas
File size: 753 byte(s)
Log Message:
Wee!

File Contents

# Content
1 # Host Status
2 #
3 # Douglas Thrift
4 #
5 # $Id$
6
7 cxxsrc = HostStatus.cpp Host.cpp
8 cxxhdr = $(patsubst %.cpp, %.hpp, ${cxxsrc})
9 cxxobj = $(patsubst %.cpp, object/%.o, ${cxxsrc})
10 cxxdep = $(patsubst %.cpp, object/%.d, ${cxxsrc})
11 exe = hoststatus.cgi
12
13 ifeq ($(shell uname -r | grep -v ^4\\.),)
14 CXX := g++34
15 endif
16 CXXFLAGS := -g -O2
17 CPPFLAGS += -I$(HOME)/SourceForge.net/pstreams
18
19 all: ${exe}
20
21 ${exe}: ${cxxobj}
22 $(CXX) $(LDFLAGS) $+ $(LOADLIBES) $(LDIBS) -o $@
23
24 object/%.o: %.cpp
25 @mkdir -p $(@D)
26 $(CXX) -MP -MD $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $<
27
28 -include ${cxxdep}
29
30 install: ${exe}
31 install -pv ${exe} ~/DouglasThrift.net/WWW/data/topsecret/auth/${exe}
32
33 clean:
34 -rm -rf object ${exe} core $(patsubst %, %.core, ${exe}) \
35 $(patsubst %, %.stackdump, ${exe})

Properties

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