Debian Codegraph @

sar/Makefile

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 # Platform Configurator generated Makefile
2 #
3 PREFIX = $(DESTDIR)/usr/
4
5 CFLAGS = -Wall -O2 -funroll-loops -fomit-frame-pointer -ffast-math -D__USE_BSD -DHAVE_SDL_MIXER -Wno-write-strings -DUSE_XSHM -DHAVE_MWMUTIL_H -DHAVE_LIBXPM -DHAVE_XF86_VIDMODE
6 CFLAGS += -I/usr/X11R6/include -I/usr/local/include
7
8 INC_DIRS =
9
10 LIBS = -lm -lSDL -lSDL_mixer -lSM -lICE -lX11 -lXext -lXmu -lXpm -lXxf86vm -lGL -lGLU -lpthread
11
12 LIB_DIRS = -L/usr/X11R6/lib/ -L/usr/X11R6/lib/ -L/usr/X11R6/lib/ -L/usr/local/lib
13
14 CC = clang
15 CPP = clang++
16
17 # Appended stuff starts here
18 #
19
20
21 # C++ flags:
22 # CPPFLAGS = -D__cplusplus -Dc_plusplus
23
24
25 # Source files list:
26 include Makefile.srclist
27
28
29 # Compiler set up:
30 BIN = SearchAndRescue
31 OBJ_C = $(SRC_C:.c=.o)
32 OBJ_CPP = $(SRC_CPP:.cpp=.o)
33 .c.o:
34 @echo "Compiling module $*.o"
35 @$(CC) -c $*.c $(INC_DIRS) $(CFLAGS)
36 .cpp.o:
37 @echo "Compiling module $*.o"
38 @$(CPP) -c $*.cpp $(INC_DIRS) $(CFLAGS) $(CPPFLAGS)
39
40 # Programs
41 LS = ls
42 LSFLAGS = -s -h -c # --color=auto
43 RM = rm
44 RMFLAGS = -f
45
46 # Build rules:
47 $(BIN): prebuild modules postbuild
48
49 modules: $(OBJ_C) $(OBJ_CPP)
50 @echo -n "Linking modules..."
51 @$(CPP) $(OBJ_C) $(OBJ_CPP) -o $(BIN) $(LIBS) $(LIB_DIRS)
52 @echo -n " "
53 @-$(LS) $(LSFLAGS) $(BIN)
54
55 prebuild:
56 @echo "Building program \"$(BIN)\"..."
57
58 postbuild:
59 @echo "Build done."
60 @echo "To install, type \"su\" (to gain root privileges) and then type \"make install\"."
61
62 all: $(BIN)
63
64
65 # Install Rules:
66 include Makefile.install.UNIX
67
68
69 # Maintainance and Misc Rules:
70 clean:
71 @echo "Cleaning program \"$(BIN)\"..."
72 @echo "Deleting all intermediate files..."
73 @$(RM) $(RMFLAGS) a.out core *.o $(BIN)
74 @echo "Clean done."