source: branches/port5/AISC/Makefile

Last change on this file was 8525, checked in by westram, 13 years ago

(partial) merge from trunk [8322] [8324] [8325] [8326] [8327]

  • clang-enable
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
1# INCLUDE und GLOBALS MAIN CC cflags werden von aussen uebergeben
2
3.SUFFIXES: .o .c .depend
4OBJECTS = aisc.o aisc_commands.o aisc_var_ref.o aisc_mix.o
5
6BINARY=aisc
7
8$(MAIN): $(BINARY)
9
10$(BINARY):      $(OBJECTS)
11        $(CPP) $(cflags) -o $@ $(OBJECTS)
12
13.c.o:
14        $(CPP) -x c++ $(cflags) -c $< $(AINCLUDES)
15
16DEPENDS = $(OBJECTS:.o=.depend)
17depends: $(DEPENDS)
18        @cat $(DEPENDS) | grep -v '^#' >>Makefile
19        @rm $(DEPENDS)
20$(DEPENDS): depend.init
21depend.init:
22        $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies
23.c.depend:
24        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
25
26clean:
27        rm -f $(OBJECTS) $(BINARY)
28
29proto:
30        ../AISC_MKPTPS/aisc_mkpt -C -G -w aisc_proto.h *.c >aisc_proto.h.tmp
31        ../SOURCE_TOOLS/mv_if_diff aisc_proto.h.tmp aisc_proto.h
32
33# DO NOT DELETE THIS LINE -- make depend depends on it.
34
35# Do not add dependencies manually - use 'make depend' in $ARBHOME
36# For formatting issues see SOURCE_TOOLS/fix_depends.pl
37
38aisc.o: aisc.h
39aisc.o: aisc_proto.h
40aisc.o: $(ARBHOME)/INCLUDE/attributes.h
41
42aisc_commands.o: aisc.h
43aisc_commands.o: aisc_proto.h
44aisc_commands.o: $(ARBHOME)/INCLUDE/attributes.h
45
46aisc_mix.o: aisc.h
47aisc_mix.o: aisc_proto.h
48aisc_mix.o: $(ARBHOME)/INCLUDE/attributes.h
49
50aisc_var_ref.o: aisc.h
51aisc_var_ref.o: aisc_proto.h
52aisc_var_ref.o: $(ARBHOME)/INCLUDE/attributes.h
Note: See TracBrowser for help on using the repository browser.