root/trunk/AISC/Makefile

Revision 8324, 3.3 KB (checked in by westram, 5 months ago)
  • clang-fix: explicitely pass language type to compiler when .c is compiled as c++
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1# INCLUDE und GLOBALS MAIN CC cflags werden von aussen uebergeben
2
3.SUFFIXES: .o .c .depend
4SOURCES = $(wildcard *.c)
5OBJECTS = $(subst .c,.o,$(SOURCES))
6
7BINARY=aisc
8
9$(MAIN): proto
10        $(MAKE) $(BINARY)
11
12$(BINARY): $(OBJECTS)
13        $(CPP) $(cflags) -o $@ $(OBJECTS)
14
15.c.o:
16        $(CPP) -x c++ $(cflags) -c $< $(AINCLUDES) $(POST_COMPILE)
17
18DEPENDS = $(OBJECTS:.o=.depend)
19depends: $(DEPENDS)
20        @cat $(DEPENDS) | grep -v '^#' >>Makefile
21        @rm $(DEPENDS)
22$(DEPENDS): depend.init
23depend.init:
24        $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies
25.c.depend:
26        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
27
28clean:
29        rm -f $(OBJECTS) $(BINARY)
30
31proto:
32        ../AISC_MKPTPS/aisc_mkpt -A -P -G -w aisc_proto.h *.c >aisc_proto.h.tmp
33        ../SOURCE_TOOLS/mv_if_diff aisc_proto.h.tmp aisc_proto.h
34
35# DO NOT DELETE THIS LINE -- make depend depends on it.
36
37# Do not add dependencies manually - use 'make depend' in $ARBHOME
38# For formatting issues see SOURCE_TOOLS/fix_depends.pl
39
40aisc.o: aisc_def.h
41aisc.o: aisc_inline.h
42aisc.o: aisc_interpreter.h
43aisc.o: aisc_location.h
44aisc.o: aisc_parser.h
45aisc.o: aisc_proto.h
46aisc.o: aisc_token.h
47aisc.o: $(ARBHOME)/INCLUDE/arb_assert.h
48aisc.o: $(ARBHOME)/INCLUDE/arbtools.h
49aisc.o: $(ARBHOME)/INCLUDE/attributes.h
50aisc.o: $(ARBHOME)/INCLUDE/dupstr.h
51aisc.o: $(ARBHOME)/INCLUDE/test_global.h
52
53aisc_commands.o: aisc_def.h
54aisc_commands.o: aisc_eval.h
55aisc_commands.o: aisc_inline.h
56aisc_commands.o: aisc_interpreter.h
57aisc_commands.o: aisc_location.h
58aisc_commands.o: aisc_parser.h
59aisc_commands.o: aisc_proto.h
60aisc_commands.o: aisc_token.h
61aisc_commands.o: $(ARBHOME)/INCLUDE/arb_assert.h
62aisc_commands.o: $(ARBHOME)/INCLUDE/arbtools.h
63aisc_commands.o: $(ARBHOME)/INCLUDE/attributes.h
64aisc_commands.o: $(ARBHOME)/INCLUDE/dupstr.h
65aisc_commands.o: $(ARBHOME)/INCLUDE/test_global.h
66
67aisc_eval.o: aisc_def.h
68aisc_eval.o: aisc_eval.h
69aisc_eval.o: aisc_inline.h
70aisc_eval.o: aisc_location.h
71aisc_eval.o: aisc_proto.h
72aisc_eval.o: $(ARBHOME)/INCLUDE/arb_assert.h
73aisc_eval.o: $(ARBHOME)/INCLUDE/arbtools.h
74aisc_eval.o: $(ARBHOME)/INCLUDE/attributes.h
75aisc_eval.o: $(ARBHOME)/INCLUDE/dupstr.h
76aisc_eval.o: $(ARBHOME)/INCLUDE/test_global.h
77
78aisc_mix.o: aisc_def.h
79aisc_mix.o: aisc_inline.h
80aisc_mix.o: aisc_interpreter.h
81aisc_mix.o: aisc_location.h
82aisc_mix.o: aisc_parser.h
83aisc_mix.o: aisc_proto.h
84aisc_mix.o: aisc_token.h
85aisc_mix.o: $(ARBHOME)/INCLUDE/arb_assert.h
86aisc_mix.o: $(ARBHOME)/INCLUDE/arbtools.h
87aisc_mix.o: $(ARBHOME)/INCLUDE/attributes.h
88aisc_mix.o: $(ARBHOME)/INCLUDE/dupstr.h
89aisc_mix.o: $(ARBHOME)/INCLUDE/test_global.h
90
91aisc_parser.o: aisc_def.h
92aisc_parser.o: aisc_inline.h
93aisc_parser.o: aisc_location.h
94aisc_parser.o: aisc_parser.h
95aisc_parser.o: aisc_token.h
96aisc_parser.o: $(ARBHOME)/INCLUDE/arb_assert.h
97aisc_parser.o: $(ARBHOME)/INCLUDE/arbtools.h
98aisc_parser.o: $(ARBHOME)/INCLUDE/attributes.h
99aisc_parser.o: $(ARBHOME)/INCLUDE/dupstr.h
100aisc_parser.o: $(ARBHOME)/INCLUDE/test_global.h
101
102aisc_var_ref.o: aisc_def.h
103aisc_var_ref.o: aisc_inline.h
104aisc_var_ref.o: aisc_interpreter.h
105aisc_var_ref.o: aisc_location.h
106aisc_var_ref.o: aisc_parser.h
107aisc_var_ref.o: aisc_proto.h
108aisc_var_ref.o: aisc_token.h
109aisc_var_ref.o: $(ARBHOME)/INCLUDE/arb_assert.h
110aisc_var_ref.o: $(ARBHOME)/INCLUDE/arbtools.h
111aisc_var_ref.o: $(ARBHOME)/INCLUDE/attributes.h
112aisc_var_ref.o: $(ARBHOME)/INCLUDE/dupstr.h
113aisc_var_ref.o: $(ARBHOME)/INCLUDE/test_global.h
Note: See TracBrowser for help on using the browser.