source: branches/gcc/AISC/Makefile

Last change on this file was 19958, checked in by westram, 9 days ago
  • remove pre-C++11 code.
  • fix include of stringize.h + update depends.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.6 KB
Line 
1# for variables passed from parent makefile see ../SOURCE_TOOLS/parent_make.txt
2
3.SUFFIXES: .o .c .depend
4
5OBJECTS = $(subst .c,.o,$(wildcard *.c))
6
7BINARY=aisc
8
9LOCAL_DEFINES=-DSIMPLE_ARB_ASSERT
10LOCAL_MAKEDEPENDFLAGS=$(MAKEDEPENDFLAGS) $(LOCAL_DEFINES)
11
12$(MAIN): proto
13        $(MAKE) $(BINARY)
14
15$(BINARY): $(OBJECTS)
16        $(LINK_EXECUTABLE) $@ $(OBJECTS)
17
18.c.o:
19        $(A_CXX) -x c++ $(cflags) $(cxxflags) $(LOCAL_DEFINES) -c $< $(CXX_INCLUDES) $(POST_COMPILE) $<
20
21DEPENDS = $(OBJECTS:.o=.depend)
22depends: $(DEPENDS)
23        @cat $(DEPENDS) | grep -v '^#' >>Makefile
24        @rm $(DEPENDS)
25$(DEPENDS): depend.init
26depend.init:
27        $(MAKEDEPEND) $(LOCAL_MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies
28.c.depend:
29        $(MAKEDEPEND) -f- $(LOCAL_MAKEDEPENDFLAGS) $< 2>/dev/null >$@
30
31clean:
32        rm -f $(OBJECTS) $(BINARY)
33
34proto:
35        ((../AISC_MKPTPS/aisc_mkpt -P -G -w aisc_proto.h *.c >aisc_proto.h.tmp) 2>&1) | ../SOURCE_TOOLS/asan2msg.pl
36        ../SOURCE_TOOLS/mv_if_diff aisc_proto.h.tmp aisc_proto.h
37
38# DO NOT DELETE THIS LINE -- make depend depends on it.
39
40# Do not add dependencies manually - use 'make depend' in $ARBHOME
41# For formatting issues see SOURCE_TOOLS/fix_depends.pl (from main)
42
43aisc.o: aisc_def.h
44aisc.o: aisc_inline.h
45aisc.o: aisc_interpreter.h
46aisc.o: aisc_location.h
47aisc.o: aisc_parser.h
48aisc.o: aisc_proto.h
49aisc.o: aisc_token.h
50aisc.o: $(ARBHOME)/INCLUDE/arb_assert.h
51aisc.o: $(ARBHOME)/INCLUDE/arb_simple_assert.h
52aisc.o: $(ARBHOME)/INCLUDE/arbtools.h
53aisc.o: $(ARBHOME)/INCLUDE/attributes.h
54aisc.o: $(ARBHOME)/INCLUDE/cxxforward.h
55aisc.o: $(ARBHOME)/INCLUDE/dupstr.h
56aisc.o: $(ARBHOME)/INCLUDE/gccver.h
57aisc.o: $(ARBHOME)/INCLUDE/stringize.h
58aisc.o: $(ARBHOME)/INCLUDE/test_global.h
59
60aisc_commands.o: aisc_def.h
61aisc_commands.o: aisc_eval.h
62aisc_commands.o: aisc_inline.h
63aisc_commands.o: aisc_interpreter.h
64aisc_commands.o: aisc_location.h
65aisc_commands.o: aisc_parser.h
66aisc_commands.o: aisc_proto.h
67aisc_commands.o: aisc_token.h
68aisc_commands.o: $(ARBHOME)/INCLUDE/arb_assert.h
69aisc_commands.o: $(ARBHOME)/INCLUDE/arb_simple_assert.h
70aisc_commands.o: $(ARBHOME)/INCLUDE/arbtools.h
71aisc_commands.o: $(ARBHOME)/INCLUDE/attributes.h
72aisc_commands.o: $(ARBHOME)/INCLUDE/cxxforward.h
73aisc_commands.o: $(ARBHOME)/INCLUDE/dupstr.h
74aisc_commands.o: $(ARBHOME)/INCLUDE/gccver.h
75aisc_commands.o: $(ARBHOME)/INCLUDE/stringize.h
76aisc_commands.o: $(ARBHOME)/INCLUDE/test_global.h
77
78aisc_eval.o: aisc_def.h
79aisc_eval.o: aisc_eval.h
80aisc_eval.o: aisc_inline.h
81aisc_eval.o: aisc_location.h
82aisc_eval.o: aisc_proto.h
83aisc_eval.o: $(ARBHOME)/INCLUDE/arb_assert.h
84aisc_eval.o: $(ARBHOME)/INCLUDE/arb_simple_assert.h
85aisc_eval.o: $(ARBHOME)/INCLUDE/arbtools.h
86aisc_eval.o: $(ARBHOME)/INCLUDE/attributes.h
87aisc_eval.o: $(ARBHOME)/INCLUDE/cxxforward.h
88aisc_eval.o: $(ARBHOME)/INCLUDE/dupstr.h
89aisc_eval.o: $(ARBHOME)/INCLUDE/gccver.h
90aisc_eval.o: $(ARBHOME)/INCLUDE/stringize.h
91aisc_eval.o: $(ARBHOME)/INCLUDE/test_global.h
92
93aisc_mix.o: aisc_def.h
94aisc_mix.o: aisc_inline.h
95aisc_mix.o: aisc_interpreter.h
96aisc_mix.o: aisc_location.h
97aisc_mix.o: aisc_parser.h
98aisc_mix.o: aisc_proto.h
99aisc_mix.o: aisc_token.h
100aisc_mix.o: $(ARBHOME)/INCLUDE/arb_assert.h
101aisc_mix.o: $(ARBHOME)/INCLUDE/arb_simple_assert.h
102aisc_mix.o: $(ARBHOME)/INCLUDE/arbtools.h
103aisc_mix.o: $(ARBHOME)/INCLUDE/attributes.h
104aisc_mix.o: $(ARBHOME)/INCLUDE/cxxforward.h
105aisc_mix.o: $(ARBHOME)/INCLUDE/dupstr.h
106aisc_mix.o: $(ARBHOME)/INCLUDE/gccver.h
107aisc_mix.o: $(ARBHOME)/INCLUDE/stringize.h
108aisc_mix.o: $(ARBHOME)/INCLUDE/test_global.h
109
110aisc_parser.o: aisc_def.h
111aisc_parser.o: aisc_inline.h
112aisc_parser.o: aisc_location.h
113aisc_parser.o: aisc_parser.h
114aisc_parser.o: aisc_token.h
115aisc_parser.o: $(ARBHOME)/INCLUDE/arb_assert.h
116aisc_parser.o: $(ARBHOME)/INCLUDE/arb_simple_assert.h
117aisc_parser.o: $(ARBHOME)/INCLUDE/arbtools.h
118aisc_parser.o: $(ARBHOME)/INCLUDE/attributes.h
119aisc_parser.o: $(ARBHOME)/INCLUDE/cxxforward.h
120aisc_parser.o: $(ARBHOME)/INCLUDE/dupstr.h
121aisc_parser.o: $(ARBHOME)/INCLUDE/gccver.h
122aisc_parser.o: $(ARBHOME)/INCLUDE/stringize.h
123aisc_parser.o: $(ARBHOME)/INCLUDE/test_global.h
124
125aisc_var_ref.o: aisc_def.h
126aisc_var_ref.o: aisc_inline.h
127aisc_var_ref.o: aisc_interpreter.h
128aisc_var_ref.o: aisc_location.h
129aisc_var_ref.o: aisc_parser.h
130aisc_var_ref.o: aisc_proto.h
131aisc_var_ref.o: aisc_token.h
132aisc_var_ref.o: $(ARBHOME)/INCLUDE/arb_assert.h
133aisc_var_ref.o: $(ARBHOME)/INCLUDE/arb_simple_assert.h
134aisc_var_ref.o: $(ARBHOME)/INCLUDE/arbtools.h
135aisc_var_ref.o: $(ARBHOME)/INCLUDE/attributes.h
136aisc_var_ref.o: $(ARBHOME)/INCLUDE/cxxforward.h
137aisc_var_ref.o: $(ARBHOME)/INCLUDE/dupstr.h
138aisc_var_ref.o: $(ARBHOME)/INCLUDE/gccver.h
139aisc_var_ref.o: $(ARBHOME)/INCLUDE/stringize.h
140aisc_var_ref.o: $(ARBHOME)/INCLUDE/test_global.h
Note: See TracBrowser for help on using the repository browser.