1 | # for variables passed from parent makefile see ../SOURCE_TOOLS/parent_make.txt |
---|
2 | |
---|
3 | .SUFFIXES: .o .c .depend |
---|
4 | SOURCES = $(wildcard *.c) |
---|
5 | OBJECTS = $(subst .c,.o,$(SOURCES)) |
---|
6 | |
---|
7 | BINARY=aisc |
---|
8 | |
---|
9 | LOCAL_DEFINES=-DSIMPLE_ARB_ASSERT |
---|
10 | LOCAL_MAKEDEPENDFLAGS=$(MAKEDEPENDFLAGS) $(LOCAL_DEFINES) |
---|
11 | |
---|
12 | $(MAIN): proto |
---|
13 | $(MAKE) $(BINARY) |
---|
14 | |
---|
15 | $(BINARY): $(OBJECTS) |
---|
16 | $(LINK_EXECUTABLE) $@ $(OBJECTS) $(EXECLIBS) |
---|
17 | |
---|
18 | .c.o: |
---|
19 | $(A_CXX) -x c++ $(cflags) $(cxxflags) $(LOCAL_DEFINES) -c $< $(CXX_INCLUDES) $(POST_COMPILE) $< |
---|
20 | |
---|
21 | DEPENDS = $(OBJECTS:.o=.depend) |
---|
22 | depends: $(DEPENDS) |
---|
23 | @cat $(DEPENDS) | grep -v '^#' >>Makefile |
---|
24 | @rm $(DEPENDS) |
---|
25 | $(DEPENDS): depend.init |
---|
26 | depend.init: |
---|
27 | $(MAKEDEPEND) $(LOCAL_MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies |
---|
28 | .c.depend: |
---|
29 | $(MAKEDEPEND) -f- $(LOCAL_MAKEDEPENDFLAGS) $< 2>/dev/null >$@ |
---|
30 | |
---|
31 | clean: |
---|
32 | rm -f $(OBJECTS) $(BINARY) |
---|
33 | |
---|
34 | proto: |
---|
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 | |
---|
43 | aisc.o: aisc_def.h |
---|
44 | aisc.o: aisc_inline.h |
---|
45 | aisc.o: aisc_interpreter.h |
---|
46 | aisc.o: aisc_location.h |
---|
47 | aisc.o: aisc_parser.h |
---|
48 | aisc.o: aisc_proto.h |
---|
49 | aisc.o: aisc_token.h |
---|
50 | aisc.o: $(ARBHOME)/INCLUDE/arb_assert.h |
---|
51 | aisc.o: $(ARBHOME)/INCLUDE/arb_simple_assert.h |
---|
52 | aisc.o: $(ARBHOME)/INCLUDE/arbtools.h |
---|
53 | aisc.o: $(ARBHOME)/INCLUDE/attributes.h |
---|
54 | aisc.o: $(ARBHOME)/INCLUDE/cxxforward.h |
---|
55 | aisc.o: $(ARBHOME)/INCLUDE/dupstr.h |
---|
56 | aisc.o: $(ARBHOME)/INCLUDE/gccver.h |
---|
57 | aisc.o: $(ARBHOME)/INCLUDE/test_global.h |
---|
58 | |
---|
59 | aisc_commands.o: aisc_def.h |
---|
60 | aisc_commands.o: aisc_eval.h |
---|
61 | aisc_commands.o: aisc_inline.h |
---|
62 | aisc_commands.o: aisc_interpreter.h |
---|
63 | aisc_commands.o: aisc_location.h |
---|
64 | aisc_commands.o: aisc_parser.h |
---|
65 | aisc_commands.o: aisc_proto.h |
---|
66 | aisc_commands.o: aisc_token.h |
---|
67 | aisc_commands.o: $(ARBHOME)/INCLUDE/arb_assert.h |
---|
68 | aisc_commands.o: $(ARBHOME)/INCLUDE/arb_simple_assert.h |
---|
69 | aisc_commands.o: $(ARBHOME)/INCLUDE/arbtools.h |
---|
70 | aisc_commands.o: $(ARBHOME)/INCLUDE/attributes.h |
---|
71 | aisc_commands.o: $(ARBHOME)/INCLUDE/cxxforward.h |
---|
72 | aisc_commands.o: $(ARBHOME)/INCLUDE/dupstr.h |
---|
73 | aisc_commands.o: $(ARBHOME)/INCLUDE/gccver.h |
---|
74 | aisc_commands.o: $(ARBHOME)/INCLUDE/test_global.h |
---|
75 | |
---|
76 | aisc_eval.o: aisc_def.h |
---|
77 | aisc_eval.o: aisc_eval.h |
---|
78 | aisc_eval.o: aisc_inline.h |
---|
79 | aisc_eval.o: aisc_location.h |
---|
80 | aisc_eval.o: aisc_proto.h |
---|
81 | aisc_eval.o: $(ARBHOME)/INCLUDE/arb_assert.h |
---|
82 | aisc_eval.o: $(ARBHOME)/INCLUDE/arb_simple_assert.h |
---|
83 | aisc_eval.o: $(ARBHOME)/INCLUDE/arbtools.h |
---|
84 | aisc_eval.o: $(ARBHOME)/INCLUDE/attributes.h |
---|
85 | aisc_eval.o: $(ARBHOME)/INCLUDE/cxxforward.h |
---|
86 | aisc_eval.o: $(ARBHOME)/INCLUDE/dupstr.h |
---|
87 | aisc_eval.o: $(ARBHOME)/INCLUDE/gccver.h |
---|
88 | aisc_eval.o: $(ARBHOME)/INCLUDE/test_global.h |
---|
89 | |
---|
90 | aisc_mix.o: aisc_def.h |
---|
91 | aisc_mix.o: aisc_inline.h |
---|
92 | aisc_mix.o: aisc_interpreter.h |
---|
93 | aisc_mix.o: aisc_location.h |
---|
94 | aisc_mix.o: aisc_parser.h |
---|
95 | aisc_mix.o: aisc_proto.h |
---|
96 | aisc_mix.o: aisc_token.h |
---|
97 | aisc_mix.o: $(ARBHOME)/INCLUDE/arb_assert.h |
---|
98 | aisc_mix.o: $(ARBHOME)/INCLUDE/arb_simple_assert.h |
---|
99 | aisc_mix.o: $(ARBHOME)/INCLUDE/arbtools.h |
---|
100 | aisc_mix.o: $(ARBHOME)/INCLUDE/attributes.h |
---|
101 | aisc_mix.o: $(ARBHOME)/INCLUDE/cxxforward.h |
---|
102 | aisc_mix.o: $(ARBHOME)/INCLUDE/dupstr.h |
---|
103 | aisc_mix.o: $(ARBHOME)/INCLUDE/gccver.h |
---|
104 | aisc_mix.o: $(ARBHOME)/INCLUDE/test_global.h |
---|
105 | |
---|
106 | aisc_parser.o: aisc_def.h |
---|
107 | aisc_parser.o: aisc_inline.h |
---|
108 | aisc_parser.o: aisc_location.h |
---|
109 | aisc_parser.o: aisc_parser.h |
---|
110 | aisc_parser.o: aisc_token.h |
---|
111 | aisc_parser.o: $(ARBHOME)/INCLUDE/arb_assert.h |
---|
112 | aisc_parser.o: $(ARBHOME)/INCLUDE/arb_simple_assert.h |
---|
113 | aisc_parser.o: $(ARBHOME)/INCLUDE/arbtools.h |
---|
114 | aisc_parser.o: $(ARBHOME)/INCLUDE/attributes.h |
---|
115 | aisc_parser.o: $(ARBHOME)/INCLUDE/cxxforward.h |
---|
116 | aisc_parser.o: $(ARBHOME)/INCLUDE/dupstr.h |
---|
117 | aisc_parser.o: $(ARBHOME)/INCLUDE/gccver.h |
---|
118 | aisc_parser.o: $(ARBHOME)/INCLUDE/test_global.h |
---|
119 | |
---|
120 | aisc_var_ref.o: aisc_def.h |
---|
121 | aisc_var_ref.o: aisc_inline.h |
---|
122 | aisc_var_ref.o: aisc_interpreter.h |
---|
123 | aisc_var_ref.o: aisc_location.h |
---|
124 | aisc_var_ref.o: aisc_parser.h |
---|
125 | aisc_var_ref.o: aisc_proto.h |
---|
126 | aisc_var_ref.o: aisc_token.h |
---|
127 | aisc_var_ref.o: $(ARBHOME)/INCLUDE/arb_assert.h |
---|
128 | aisc_var_ref.o: $(ARBHOME)/INCLUDE/arb_simple_assert.h |
---|
129 | aisc_var_ref.o: $(ARBHOME)/INCLUDE/arbtools.h |
---|
130 | aisc_var_ref.o: $(ARBHOME)/INCLUDE/attributes.h |
---|
131 | aisc_var_ref.o: $(ARBHOME)/INCLUDE/cxxforward.h |
---|
132 | aisc_var_ref.o: $(ARBHOME)/INCLUDE/dupstr.h |
---|
133 | aisc_var_ref.o: $(ARBHOME)/INCLUDE/gccver.h |
---|
134 | aisc_var_ref.o: $(ARBHOME)/INCLUDE/test_global.h |
---|