ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/zoe/trunk/GNUmakefile
Revision: 7
Committed: 2004-07-09T17:12:54-07:00 (20 years, 11 months ago) by douglas
File size: 1093 byte(s)
Log Message:
Cheese is good.

File Contents

# Content
1 # Zoe AIM Away Message RSS Feed Generator
2 #
3 # Seth King and Douglas Thrift
4 #
5 # $Id$
6
7 menes = ./menes
8 cxxsrc = Zoe.cpp Matcher.cpp $(menes)/menes-ext/allocator.cpp \
9 $(menes)/menes-ext/exception.cpp $(menes)/menes-opt/assert.cpp \
10 $(menes)/menes-opt/logging.cpp $(menes)/menes-app/entrypoint.cpp \
11 $(menes)/menes-app/threading.cpp $(menes)/menes-app/c++/fatality.cpp \
12 $(menes)/menes-app/arguments.cpp \
13 $(wildcard $(foreach prj,api/posix api/pthread api/proc ios xml,$(menes)/menes-$(prj)/*.cpp))
14 cxxhdr = $(patsubst %.cpp, %.hpp, ${cxxsrc})
15 cxxobj = $(patsubst %.cpp, object/%.o, ${cxxsrc})
16 cxxdep = $(patsubst %.cpp, object/%.d, ${cxxsrc})
17 exe = zoe
18
19 ifeq (FreeBSD,$(shell uname))
20 CXX := g++34
21 endif
22 CXXFLAGS := -g -O0
23 CPPFLAGS += -DNFINLINE -DNPROFILE -I$(menes)
24 LDLIBS += -lpcre -pthread
25
26 all: ${exe}
27
28 ${exe}: ${cxxobj}
29 $(CXX) $(LDFLAGS) $+ $(LOADLIBES) $(LDLIBS) -o $@
30
31 object/%.o: %.cpp
32 @mkdir -p $(@D)
33 $(CXX) -MP -MD $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $<
34
35 -include $(cxxdep)
36
37 clean:
38 -rm -rf object ${exe} core $(patsubst %, %.core, ${exe}) \
39 $(patsubst %, %.stackdump, ${exe})

Properties

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