ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/zoe/trunk/GNUmakefile
Revision: 12
Committed: 2004-07-11T20:45:38-07:00 (20 years, 11 months ago) by douglas
File size: 1248 byte(s)
Log Message:
This might make more sense for a feed per buddy.

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 Buddy.cpp Rss.cpp Matcher.cpp \
9 $(menes)/menes-ext/allocator.cpp $(menes)/menes-ext/exception.cpp \
10 $(menes)/menes-opt/assert.cpp $(menes)/menes-opt/logging.cpp \
11 $(menes)/menes-app/entrypoint.cpp $(menes)/menes-app/threading.cpp \
12 $(menes)/menes-app/c++/fatality.cpp $(menes)/menes-app/arguments.cpp \
13 $(menes)/menes-ext/uuid.cpp $(wildcard $(foreach prj,api/devrandom \
14 api/mhash api/posix api/pthread api/proc api/libuuid ios net/oscar \
15 xml,$(menes)/menes-$(prj)/*.cpp))
16 cxxhdr = $(patsubst %.cpp, %.hpp, ${cxxsrc})
17 cxxobj = $(patsubst %.cpp, object/%.o, ${cxxsrc})
18 cxxdep = $(patsubst %.cpp, object/%.d, ${cxxsrc})
19 exe = zoe
20
21 ifeq (FreeBSD,$(shell uname))
22 CXX := g++34
23 endif
24 CXXFLAGS := -g -O0
25 CPPFLAGS += -DNFINLINE -DNPROFILE -I$(menes) -I/usr/local/include/apache2
26 LDFLAGS += -pthread
27 LDLIBS += -lmhash -lpcre -luuid
28
29 all: ${exe}
30
31 ${exe}: ${cxxobj}
32 $(CXX) $(LDFLAGS) $+ $(LOADLIBES) $(LDLIBS) -o $@
33
34 object/%.o: %.cpp
35 @mkdir -p $(@D)
36 $(CXX) -MP -MD $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $<
37
38 -include $(cxxdep)
39
40 clean:
41 -rm -rf object ${exe} core $(patsubst %, %.core, ${exe}) \
42 $(patsubst %, %.stackdump, ${exe})

Properties

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