| 1 |
Descriptionscip-debian debian samdump2 3.0.0-8 samdump2/patches/`20_compiler_flags.patch`#Description.: The makefile overrides flags so you can't set them via d/rules or the environment. |
| 2 |
Authorscip-debian debian samdump2 3.0.0-8 samdump2/patches/`20_compiler_flags.patch`#Author.: Unit 193 <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 3 |
Originscip-debian debian samdump2 3.0.0-8 samdump2/patches/`20_compiler_flags.patch`#Origin.: vendor |
| 4 |
Forwardedscip-debian debian samdump2 3.0.0-8 samdump2/patches/`20_compiler_flags.patch`#Forwarded.: no |
| 5 |
Last-Updatescip-debian debian samdump2 3.0.0-8 samdump2/patches/`20_compiler_flags.patch`#Last-Update.: 2014-01-04 |
| 6 |
|
| 7 |
Index: samdump2-3.0.0/Makefilescip-debian debian samdump2 3.0.0-8 samdump2/upstream/`samdump2-3.0.0/Makefile`: |
| 8 |
=================================================================== |
| 9 |
--- samdump2-3.0.0.orig/Makefilescip-debian debian samdump2 3.0.0-8 samdump2/upstream/`samdump2-3.0.0.orig/Makefile`: |
| 10 |
+++ samdump2-3.0.0/Makefile |
| 11 |
@@ -24,12 +24,12 @@ DISTFILES = AUTHORS ChangeLog hive.c LIC |
| 12 |
samdump2.1 samdump2.h bkhive.c COPYING hive.h list.c\ |
| 13 |
main.c README samdump2.c dumpsam.c ntdll.h |
| 14 |
DESTDIR = |
| 15 |
|
| 16 |
+PREFIX ?= /usr/local/ |
| 17 |
BINDIR = $(PREFIX)/bin |
| 18 |
MANDIR = $(PREFIX)/share/man/man1 |
| 19 |
INSTALL = $(shell which install) |
| 20 |
|
| 21 |
|
| 22 |
+CC ?= $(shell which gcc) |
| 23 |
+CFLAGS += -Wall |
| 24 |
LIBS = -lcrypto |
| 25 |
|
| 26 |
# Default target |
| 27 |
@@ -39,7 +39,7 @@ build: samdump2 |
| 28 |
|
| 29 |
samdump2: hive.o list.o bkhive.o samdump2.o main.o dumpsam.o |
| 30 |
@echo "Building binary..." |
| 31 |
|
| 32 |
+ $(CC) -o $@ $^ $(CFLAGS) $(LIBS) $(LDFLAGS) |
| 33 |
@echo "" |
| 34 |
|
| 35 |
# Clean target |