ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/zoe/trunk/GNUmakefile
Revision: 57
Committed: 2004-09-05T19:22:32-07:00 (20 years, 9 months ago) by douglas
File size: 1457 byte(s)
Log Message:
Menes wants these now.

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

Properties

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