Debian Codegraph @

sar/makefile_append.ini

raw symbols ◀ ▶ SCIP
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 $(CC) -c $*.c $(INC_DIRS) $(CFLAGS)
19 .cpp.o:
•20 $(CPP) -c $*.cpp $(INC_DIRS) $(CFLAGS) $(CPPFLAGS)
21
22 # Programs
23 LS = ls
24 LSFLAGS = -s -h -c --color=auto
25 RM = rm
26 RMFLAGS = -f
27
28 # Build rules:
29 $(BIN): prebuild modules postbuild
30
•31 # Modified this rule to include dpkg-buildflags.
32 modules: $(OBJ_C) $(OBJ_CPP)
•33 $(CPP) $(OBJ_C) $(OBJ_CPP) -o $(BIN) $(LIBS) $(LIB_DIRS) $(shell dpkg-buildflags --get LDFLAGS)
•34 @echo -n " "
35 @-$(LS) $(LSFLAGS) $(BIN)
36
37 prebuild:
38
39 postbuild:
40 @echo "Build done."
41 @echo "To install, type \"su\" (to gain root privileges) and then type \"make install\"."
42
43 all: $(BIN)
44
45
46 # Install Rules:
47 include Makefile.install.UNIX
48
49
50 # Maintainance and Misc Rules:
51 clean:
52 @echo "Cleaning program \"$(BIN)\"..."
53 @echo "Deleting all intermediate files..."
54 @$(RM) $(RMFLAGS) a.out core *.o $(BIN)
55 @echo "Clean done."