Debian Codegraph @

debian/patches/fix_makefile

raw
1 Description: Include hardening options and change the name of the binary to bindechexascii
2 Author: Marcio de Souza Oliveira <[email protected]>
3 Last-Update: 2014-05-26
4 Index: bindechexascii-0.0+20140524.git7dcd86/Makefile
5 ===================================================================
6 --- bindechexascii-0.0+20140524.git7dcd86.orig/Makefile
7 +++ bindechexascii-0.0+20140524.git7dcd86/Makefile
8 @@ -1,11 +1,11 @@
9 ################################################
10
11 -BIN := conv
12 -OBJ := conv.o
13 +BIN := bindechexascii
14 +OBJ := bindechexascii.o
15 SRC := conv.c
16
17 CC := gcc
18 -CFLAGS := -g -march=native
19 +CFLAGS+ := -g -march=native
20 LFLAGS :=
21
22 ################################################
23 @@ -13,9 +13,9 @@ LFLAGS :=
24 all: $(BIN)
25
26 $(BIN): $(OBJ)
27 - $(CC) $(LFLAGS) $(OBJ) -o $(BIN)
28 + $(CC) $(CPPFLAGS) $(LDFLAGS) $(CFLAGS) $(LFLAGS) $(OBJ) -o $(BIN)
29 $(OBJ): $(SRC)
30 - $(CC) $(CFLAGS) -c $(SRC) -o $(OBJ)
31 + $(CC) $(CPPFLAGS) $(LDFLAGS) $(CFLAGS) -c $(SRC) -o $(OBJ)
32
33 clean:
34 rm -f $(BIN) $(OBJ)