source: branches/stable/AISC/Makefile

Last change on this file was 16223, checked in by westram, 7 years ago
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.3 KB
Line 
1# for variables passed from parent makefile see ../SOURCE_TOOLS/parent_make.txt
2
3.SUFFIXES: .o .c .depend
4SOURCES = $(wildcard *.c)
5OBJECTS = $(subst .c,.o,$(SOURCES))
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/test_global.h
58
59aisc_commands.o: aisc_def.h
60aisc_commands.o: aisc_eval.h
61aisc_commands.o: aisc_inline.h
62aisc_commands.o: aisc_interpreter.h
63aisc_commands.o: aisc_location.h
64aisc_commands.o: aisc_parser.h
65aisc_commands.o: aisc_proto.h
66aisc_commands.o: aisc_token.h
67aisc_commands.o: $(ARBHOME)/INCLUDE/arb_assert.h
68aisc_commands.o: $(ARBHOME)/INCLUDE/arb_simple_assert.h
69aisc_commands.o: $(ARBHOME)/INCLUDE/arbtools.h
70aisc_commands.o: $(ARBHOME)/INCLUDE/attributes.h
71aisc_commands.o: $(ARBHOME)/INCLUDE/cxxforward.h
72aisc_commands.o: $(ARBHOME)/INCLUDE/dupstr.h
73aisc_commands.o: $(ARBHOME)/INCLUDE/gccver.h
74aisc_commands.o: $(ARBHOME)/INCLUDE/test_global.h
75
76aisc_eval.o: aisc_def.h
77aisc_eval.o: aisc_eval.h
78aisc_eval.o: aisc_inline.h
79aisc_eval.o: aisc_location.h
80aisc_eval.o: aisc_proto.h
81aisc_eval.o: $(ARBHOME)/INCLUDE/arb_assert.h
82aisc_eval.o: $(ARBHOME)/INCLUDE/arb_simple_assert.h
83aisc_eval.o: $(ARBHOME)/INCLUDE/arbtools.h
84aisc_eval.o: $(ARBHOME)/INCLUDE/attributes.h
85aisc_eval.o: $(ARBHOME)/INCLUDE/cxxforward.h
86aisc_eval.o: $(ARBHOME)/INCLUDE/dupstr.h
87aisc_eval.o: $(ARBHOME)/INCLUDE/gccver.h
88aisc_eval.o: $(ARBHOME)/INCLUDE/test_global.h
89
90aisc_mix.o: aisc_def.h
91aisc_mix.o: aisc_inline.h
92aisc_mix.o: aisc_interpreter.h
93aisc_mix.o: aisc_location.h
94aisc_mix.o: aisc_parser.h
95aisc_mix.o: aisc_proto.h
96aisc_mix.o: aisc_token.h
97aisc_mix.o: $(ARBHOME)/INCLUDE/arb_assert.h
98aisc_mix.o: $(ARBHOME)/INCLUDE/arb_simple_assert.h
99aisc_mix.o: $(ARBHOME)/INCLUDE/arbtools.h
100aisc_mix.o: $(ARBHOME)/INCLUDE/attributes.h
101aisc_mix.o: $(ARBHOME)/INCLUDE/cxxforward.h
102aisc_mix.o: $(ARBHOME)/INCLUDE/dupstr.h
103aisc_mix.o: $(ARBHOME)/INCLUDE/gccver.h
104aisc_mix.o: $(ARBHOME)/INCLUDE/test_global.h
105
106aisc_parser.o: aisc_def.h
107aisc_parser.o: aisc_inline.h
108aisc_parser.o: aisc_location.h
109aisc_parser.o: aisc_parser.h
110aisc_parser.o: aisc_token.h
111aisc_parser.o: $(ARBHOME)/INCLUDE/arb_assert.h
112aisc_parser.o: $(ARBHOME)/INCLUDE/arb_simple_assert.h
113aisc_parser.o: $(ARBHOME)/INCLUDE/arbtools.h
114aisc_parser.o: $(ARBHOME)/INCLUDE/attributes.h
115aisc_parser.o: $(ARBHOME)/INCLUDE/cxxforward.h
116aisc_parser.o: $(ARBHOME)/INCLUDE/dupstr.h
117aisc_parser.o: $(ARBHOME)/INCLUDE/gccver.h
118aisc_parser.o: $(ARBHOME)/INCLUDE/test_global.h
119
120aisc_var_ref.o: aisc_def.h
121aisc_var_ref.o: aisc_inline.h
122aisc_var_ref.o: aisc_interpreter.h
123aisc_var_ref.o: aisc_location.h
124aisc_var_ref.o: aisc_parser.h
125aisc_var_ref.o: aisc_proto.h
126aisc_var_ref.o: aisc_token.h
127aisc_var_ref.o: $(ARBHOME)/INCLUDE/arb_assert.h
128aisc_var_ref.o: $(ARBHOME)/INCLUDE/arb_simple_assert.h
129aisc_var_ref.o: $(ARBHOME)/INCLUDE/arbtools.h
130aisc_var_ref.o: $(ARBHOME)/INCLUDE/attributes.h
131aisc_var_ref.o: $(ARBHOME)/INCLUDE/cxxforward.h
132aisc_var_ref.o: $(ARBHOME)/INCLUDE/dupstr.h
133aisc_var_ref.o: $(ARBHOME)/INCLUDE/gccver.h
134aisc_var_ref.o: $(ARBHOME)/INCLUDE/test_global.h
Note: See TracBrowser for help on using the repository browser.