source: branches/stable/SL/REGEXPR/Makefile

Last change on this file was 10996, checked in by westram, 6 years ago
  • use cflags before cxxflags
File size: 1.3 KB
Line 
1# for variables passed from parent makefile see ../../SOURCE_TOOLS/parent_make.txt
2
3.SUFFIXES: .o .c .cxx .depend
4
5C_OBJECTS = 
6CPP_OBJECTS = RegExpr.o
7OBJECTS=$(C_OBJECTS) $(CPP_OBJECTS)
8
9$(MAIN): $(OBJECTS)
10        $(LINK_STATIC_LIB) $(MAIN) $(OBJECTS)
11
12.cxx.o:
13        $(A_CXX) $(cflags) $(cxxflags) -c $< $(CXX_INCLUDES) $(POST_COMPILE)
14
15.c.o:
16        $(A_CC) $(cflags) -c $< $(CC_INCLUDES) $(POST_COMPILE)
17
18clean:
19        rm -f $(OBJECTS) *.a
20
21DEPENDS = $(OBJECTS:.o=.depend)
22depends: $(DEPENDS)
23        @cat $(DEPENDS) | grep -v '^#' >>Makefile
24        @rm $(DEPENDS)
25$(DEPENDS): depend.init
26depend.init:
27        $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies
28.c.depend:
29        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
30.cxx.depend:
31        $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@
32
33# DO NOT DELETE
34
35# Do not add dependencies manually - use 'make depend' in $ARBHOME
36# For formatting issues see SOURCE_TOOLS/fix_depends.pl (from SL)
37
38RegExpr.o: RegExpr.hxx
39RegExpr.o: $(ARBHOME)/INCLUDE/arb_assert.h
40RegExpr.o: $(ARBHOME)/INCLUDE/arb_core.h
41RegExpr.o: $(ARBHOME)/INCLUDE/arb_match.h
42RegExpr.o: $(ARBHOME)/INCLUDE/arbtools.h
43RegExpr.o: $(ARBHOME)/INCLUDE/attributes.h
44RegExpr.o: $(ARBHOME)/INCLUDE/cxxforward.h
45RegExpr.o: $(ARBHOME)/INCLUDE/dupstr.h
46RegExpr.o: $(ARBHOME)/INCLUDE/gccver.h
47RegExpr.o: $(ARBHOME)/INCLUDE/test_global.h
48RegExpr.o: $(ARBHOME)/INCLUDE/test_unit.h
Note: See TracBrowser for help on using the repository browser.