Description: The makefile overrides flags so you can't set them via d/rules or the environment. Author: Unit 193 Origin: vendor Forwarded: no Last-Update: 2014-01-04 Index: samdump2-3.0.0/Makefile =================================================================== --- samdump2-3.0.0.orig/Makefile +++ samdump2-3.0.0/Makefile @@ -24,12 +24,12 @@ DISTFILES = AUTHORS ChangeLog hive.c LIC samdump2.1 samdump2.h bkhive.c COPYING hive.h list.c\ main.c README samdump2.c dumpsam.c ntdll.h DESTDIR = -PREFIX = /usr/local/ +PREFIX ?= /usr/local/ BINDIR = $(PREFIX)/bin MANDIR = $(PREFIX)/share/man/man1 INSTALL = $(shell which install) -CC = $(shell which gcc) -CFLAGS = -Wall +CC ?= $(shell which gcc) +CFLAGS += -Wall LIBS = -lcrypto # Default target @@ -39,7 +39,7 @@ build: samdump2 samdump2: hive.o list.o bkhive.o samdump2.o main.o dumpsam.o @echo "Building binary..." - $(CC) -o $@ $^ $(CFLAGS) $(LIBS) + $(CC) -o $@ $^ $(CFLAGS) $(LIBS) $(LDFLAGS) @echo "" # Clean target