ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/FeepingCreaturism/GNUmakefile
Revision: 196
Committed: 2004-08-27T19:31:26-07:00 (20 years, 9 months ago) by Douglas Thrift
File size: 949 byte(s)
Log Message:
Meep!

File Contents

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

Properties

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