~ubuntu-branches/ubuntu/maverick/aspectc++/maverick

« back to all changes in this revision

Viewing changes to Ag++/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-04-10 17:40:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080410174052-xdnsm7oi8hauyyf1
Tags: 1.0pre4~svn.20080409+dfsg-3
Fix another missing include, this time in Ag++/StdSystem.cc

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
#CXX  := /usr/bin/g++-3.3
20
20
#CXX := ag++  -p. -p../aspects --Xcompiler
 
21
#CXX := ag++ -v3 -p. --Xcompiler
21
22
 
22
23
# compiler settings
23
24
ifeq ($(_TARGET),win32)
38
39
LDFLAGS += -Wl,-Bdynamic
39
40
endif
40
41
 
 
42
else
 
43
        LDFLAGS += -L$(PUMA)/lib/$(TARGET) -lPuma
41
44
endif
42
45
 
43
46
ifneq ($(PROFILING),)
49
52
# *       S O U R C E S        *
50
53
# ******************************
51
54
 
52
 
BINDIR := bin/$(TARGET)
 
55
BINBASE := bin
 
56
BINDIR := $(BINBASE)/$(TARGET)
53
57
PROG := $(BINDIR)/ag++$(EXT)
54
58
 
55
59
CCSOURCES := $(wildcard *.cc) 
56
60
 
57
 
OBJECTDIR := ObjFiles/$(TARGET)
 
61
OBJECTBASE := ObjFiles
 
62
OBJECTDIR := $(OBJECTBASE)/$(TARGET)
58
63
OBJECTS := $(addprefix $(OBJECTDIR)/,$(CCSOURCES:%.cc=%.o))
59
64
 
60
 
DEPDIR := DepFiles/$(TARGET)
 
65
DEPBASE := DepFiles
 
66
DEPDIR := $(DEPBASE)/$(TARGET)
61
67
DEPS := $(addprefix $(DEPDIR)/,$(CCSOURCES:%.cc=%.d))
62
68
 
63
69
ifeq ($(_TARGET),win32)
85
91
        @echo "  Linker   = $(CXX) $(CXXFLAGS) <objects> $(LDFLAGS)"
86
92
        @echo "---"
87
93
 
 
94
help: showtarget
 
95
        @echo 
 
96
        @echo 
 
97
        @echo "Make:" 
 
98
        @echo "  help:          show this help"
 
99
        @echo "  all (default): compile, link and copy"
 
100
        @echo "  copy:          copy executable into AspectC++ bin folder"
 
101
        @echo "  test :         run tests"
 
102
        @echo "  test_<XX>:     run test number <XX>"
 
103
        @echo "  clean:         remove intermediate files of current TARGET"
 
104
        @echo "  distclean:     clean all generated files and directories"
 
105
        @echo "---"
 
106
 
88
107
clean: 
89
108
        @echo -n "CLEAN    "
90
 
        rm -rf $(PROG) core core.* *~ $(DIRS)
91
 
 
92
 
cleanalltarget:
93
 
        rm -rf $(DIRS)
94
 
 
 
109
        rm -rf $(PROG) core core.*  $(DIRS)
 
110
 
 
111
distclean:
 
112
        rm -rf $(DEPBASE) $(OBJECTBASE) $(BINBASE)
 
113
 
95
114
 
96
115
test:   all
97
116
        @export TARGET=$(TARGET);export _TARGET=$(_TARGET);export EXT=$(EXT);cd tests;./run_tests.sh
103
122
dirs:  $(DIRS)
104
123
 
105
124
 
106
 
.PHONY: all clean showtarget dirs 
 
125
.PHONY: all clean distclean showtarget dirs 
107
126
 
108
127
# ******************************
109
128
# *       R U L E S            *
144
163
        @mkdir -p $@
145
164
 
146
165
 
147
 
ifneq ($(MAKECMDGOALS),clean)
 
166
ifneq (,$(findstring clean,$(MAKECMDGOALS)))
 
167
ifneq (,$(findstring help,$(MAKECMDGOALS)))
148
168
-include $(DEPS)
149
169
endif
 
170
endif
150
171
 
151
172
.SUFFIXES: .cc .o .h .rc .mk $(SUFFIXES)
152
173