Debian Codegraph @

sar/makefile_append.ini

raw symbols ◀ ▶
Source reconstructed at patch state 1 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 # Appended stuff starts here
2 #
3
4
5 # C++ flags:
6 CPPFLAGS = -D__cplusplus -Dc_plusplus
7
8
9 # Source files list:
10 include Makefile.srclist
11
12
13 # Compiler set up:
14 BIN = SearchAndRescue
15 OBJ_C = $(SRC_C:.c=.o)
16 OBJ_CPP = $(SRC_CPP:.cpp=.o)
17 .c.o:
18 @echo "Compiling module $*.o"
19 @$(CC) -c $*.c $(INC_DIRS) $(CFLAGS)
20 .cpp.o:
21 @echo "Compiling module $*.o"
22 @$(CPP) -c $*.cpp $(INC_DIRS) $(CFLAGS) $(CPPFLAGS)
23
24 # Programs
25 LS = ls
26 LSFLAGS = -s -h -c --color=auto
27 RM = rm
28 RMFLAGS = -f
29
30 # Build rules:
31 $(BIN): prebuild modules postbuild
32
33 # Modified this rule to include dpkg-buildflags.
34 modules: $(OBJ_C) $(OBJ_CPP)
35 @echo -n "Linking modules..."
36 @$(CPP) $(OBJ_C) $(OBJ_CPP) -o $(BIN) $(LIBS) $(LIB_DIRS) $(shell dpkg-buildflags --get LDFLAGS)
37 @echo -n " "
38 @-$(LS) $(LSFLAGS) $(BIN)
39
40 prebuild:
41 @echo "Building program \"$(BIN)\"..."
42
43 postbuild:
44 @echo "Build done."
45 @echo "To install, type \"su\" (to gain root privileges) and then type \"make install\"."
46
47 all: $(BIN)
48
49
50 # Install Rules:
51 include Makefile.install.UNIX
52
53
54 # Maintainance and Misc Rules:
55 clean:
56 @echo "Cleaning program \"$(BIN)\"..."
57 @echo "Deleting all intermediate files..."
58 @$(RM) $(RMFLAGS) a.out core *.o $(BIN)
59 @echo "Clean done."