ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/FeepingCreaturism/GNUmakefile
Revision: 203
Committed: 2004-09-01T02:10:19-07:00 (20 years, 9 months ago) by Douglas Thrift
File size: 963 byte(s)
Log Message:
What now?

File Contents

# Content
1 # Feeping Creaturism
2 #
3 # Douglas Thrift
4 #
5 # $Id$
6
7 menes = menes
8 pstreams = $(HOME)/SourceForge.net/pstreams
9 cxxsrc = FeepingCreaturism.cpp Jargon.cpp Environment.cpp Matcher.cpp \
10 $(menes)/menes-app/configuration.cpp $(menes)/menes-ext/allocator.cpp \
11 $(menes)/menes-ext/exception.cpp $(menes)/menes-opt/assert.cpp \
12 $(wildcard $(foreach prj, api/execinfo api/posix ios xml, \
13 $(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 = jargon.cgi
18
19 CXX := g++34
20 CXXFLAGS := -g -O0
21 CPPFLAGS += -DNFINLINE -DNPROFILE -I$(menes) -I$(pstreams)
22 LDLIBS += -lpcre -lexecinfo
23
24 all: ${exe}
25
26 ${exe}: ${cxxobj}
27 $(CXX) $(LDFLAGS) $+ $(LOADLIBES) $(LDLIBS) -o $@
28
29 object/%.o: %.cpp
30 @mkdir -p $(@D)
31 $(CXX) -MP -MD $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $<
32
33 -include $(cxxdep)
34
35 clean:
36 -rm -rf object ${exe} core *.core $(patsubst %, %.stackdump, ${exe})

Properties

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