1 | # for variables passed from parent makefile see ../SOURCE_TOOLS/parent_make.txt |
---|
2 | |
---|
3 | .SUFFIXES: .o .cxx .depend |
---|
4 | |
---|
5 | OBJECTS = $(subst .cxx,.o,$(wildcard *.cxx)) |
---|
6 | BINARY = aisc_mkpt |
---|
7 | |
---|
8 | LOCAL_DEFINES=-DSIMPLE_ARB_ASSERT |
---|
9 | LOCAL_MAKEDEPENDFLAGS=$(MAKEDEPENDFLAGS) $(LOCAL_DEFINES) |
---|
10 | |
---|
11 | $(MAIN): $(BINARY) |
---|
12 | |
---|
13 | $(BINARY): $(OBJECTS) $(use_ARB_main) |
---|
14 | $(LINK_EXECUTABLE) $@ $(use_ARB_main) $(OBJECTS) |
---|
15 | |
---|
16 | .cxx.o: |
---|
17 | $(A_CXX) $(cflags) $(cxxflags) $(LOCAL_DEFINES) -c $< $(CXX_INCLUDES) $(POST_COMPILE) $< |
---|
18 | |
---|
19 | clean: |
---|
20 | rm -f $(OBJECTS) $(BINARY) |
---|
21 | |
---|
22 | #depends: |
---|
23 | # @echo "No depends here" |
---|
24 | |
---|
25 | DEPENDS = $(OBJECTS:.o=.depend) |
---|
26 | depends: $(DEPENDS) |
---|
27 | @cat $(DEPENDS) | grep -v '^#' >>Makefile |
---|
28 | @rm $(DEPENDS) |
---|
29 | $(DEPENDS): depend.init |
---|
30 | depend.init: |
---|
31 | $(MAKEDEPEND) $(LOCAL_MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies |
---|
32 | .cxx.depend: |
---|
33 | $(MAKEDEPEND) -f- $(LOCAL_MAKEDEPENDFLAGS) $< 2>/dev/null >$@ |
---|
34 | |
---|
35 | |
---|
36 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
---|
37 | |
---|
38 | # Do not add dependencies manually - use 'make depend' in $ARBHOME |
---|
39 | # For formatting issues see SOURCE_TOOLS/fix_depends.pl (from main) |
---|
40 | |
---|
41 | mkptypes.o: $(ARBHOME)/INCLUDE/arb_assert.h |
---|
42 | mkptypes.o: $(ARBHOME)/INCLUDE/arb_early_check.h |
---|
43 | mkptypes.o: $(ARBHOME)/INCLUDE/arb_simple_assert.h |
---|
44 | mkptypes.o: $(ARBHOME)/INCLUDE/arbtools.h |
---|
45 | mkptypes.o: $(ARBHOME)/INCLUDE/attributes.h |
---|
46 | mkptypes.o: $(ARBHOME)/INCLUDE/cxxforward.h |
---|
47 | mkptypes.o: $(ARBHOME)/INCLUDE/dupstr.h |
---|
48 | mkptypes.o: $(ARBHOME)/INCLUDE/gccver.h |
---|
49 | mkptypes.o: $(ARBHOME)/INCLUDE/static_assert.h |
---|
50 | mkptypes.o: $(ARBHOME)/INCLUDE/test_global.h |
---|
51 | mkptypes.o: $(ARBHOME)/INCLUDE/test_unit.h |
---|