ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/HostUpdate/GNUmakefile
Revision: 9
Committed: 2003-11-05T22:59:04-08:00 (21 years, 7 months ago) by Douglas Thrift
File size: 672 byte(s)
Log Message:
Added Host and stuff.

File Contents

# Content
1 # HostUpdate
2 #
3 # Douglas Thrift
4 #
5 # $Id$
6
7 CSRC = HostUpdate.cpp Host.cpp
8 HDRS = $(patsubst %.cpp, %.hpp, ${CSRC})
9 OBJS = $(patsubst %.cpp, %.o, ${CSRC})
10 EXEC = hostupdate
11
12 CXX ?= g++
13 CXXFLAGS ?= -g -O2
14 CPPFLAGS ?=
15 DEFS ?=
16 LDFLAGS ?=
17 LIBS += -lcgicc
18
19 all: ${EXEC}
20
21 ${EXEC}: ${OBJS}
22 ${CXX} ${LDFLAGS} ${OBJS} -o ${EXEC} ${LIBS}
23
24 %.o:%.cpp
25 ${CXX} ${CXXFLAGS} ${CPPFLAGS} $< -c ${DEFS}
26
27 depend: ${CSRC} ${HDRS}
28 ${CXX} -MM ${CSRC} ${CPPFLAGS} ${DEFS} > depend
29
30 ifeq (,$(filter depend, ${MAKECMDGOALS}))
31 ifneq (,$(wildcard depend))
32 include depend
33 endif
34 endif
35
36 clean:
37 -${RM} ${OBJS} ${EXEC} core $(patsubst %, %.core, ${EXEC}) \
38 $(patsubst %, %.stackdump, ${EXEC}) depend

Properties

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