| Line | |
|---|
| 1 | # INCLUDE und GLOBALS MAIN CC cflags werden von aussen uebergeben |
|---|
| 2 | |
|---|
| 3 | .SUFFIXES: .o .c .depend |
|---|
| 4 | OBJECTS = aisc.o aisc_commands.o aisc_var_ref.o aisc_mix.o |
|---|
| 5 | |
|---|
| 6 | BINARY=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 | |
|---|
| 16 | DEPENDS = $(OBJECTS:.o=.depend) |
|---|
| 17 | depends: $(DEPENDS) |
|---|
| 18 | @cat $(DEPENDS) | grep -v '^#' >>Makefile |
|---|
| 19 | @rm $(DEPENDS) |
|---|
| 20 | $(DEPENDS): depend.init |
|---|
| 21 | depend.init: |
|---|
| 22 | $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies |
|---|
| 23 | .c.depend: |
|---|
| 24 | $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@ |
|---|
| 25 | |
|---|
| 26 | clean: |
|---|
| 27 | rm -f $(OBJECTS) $(BINARY) |
|---|
| 28 | |
|---|
| 29 | proto: |
|---|
| 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 | |
|---|
| 38 | aisc.o: aisc.h |
|---|
| 39 | aisc.o: aisc_proto.h |
|---|
| 40 | aisc.o: $(ARBHOME)/INCLUDE/attributes.h |
|---|
| 41 | |
|---|
| 42 | aisc_commands.o: aisc.h |
|---|
| 43 | aisc_commands.o: aisc_proto.h |
|---|
| 44 | aisc_commands.o: $(ARBHOME)/INCLUDE/attributes.h |
|---|
| 45 | |
|---|
| 46 | aisc_mix.o: aisc.h |
|---|
| 47 | aisc_mix.o: aisc_proto.h |
|---|
| 48 | aisc_mix.o: $(ARBHOME)/INCLUDE/attributes.h |
|---|
| 49 | |
|---|
| 50 | aisc_var_ref.o: aisc.h |
|---|
| 51 | aisc_var_ref.o: aisc_proto.h |
|---|
| 52 | aisc_var_ref.o: $(ARBHOME)/INCLUDE/attributes.h |
|---|
Note: See
TracBrowser
for help on using the repository browser.