-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
50 lines (31 loc) · 994 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#
# Makefile for the Offline NT Password Editor
#
#
# Change here to point to the needed OpenSSL libraries & .h files
# See INSTALL for more info.
#
OSSLPATH=/usr
OSSLINC=$(OSSLPATH)/include
CC=clang
CFLAGS= -DDOCRYPTO -g -I. -I$(OSSLINC) -Wall -std=c99
OSSLLIB=$(OSSLPATH)/lib
LIBS=-L$(OSSLLIB) $(OSSLLIB)/libcrypto.a
all: chntpw cpnt reged samusrgrp sampasswd
chntpw: chntpw.o ntreg.o edlib.o libsam.o
$(CC) $(CFLAGS) -o chntpw chntpw.o ntreg.o edlib.o libsam.o $(LIBS)
cpnt: cpnt.o
$(CC) $(CFLAGS) -o cpnt cpnt.o $(LIBS)
reged: reged.o ntreg.o edlib.o
$(CC) $(CFLAGS) -o reged reged.o ntreg.o edlib.o
samusrgrp: samusrgrp.o ntreg.o libsam.o
$(CC) $(CFLAGS) -o samusrgrp samusrgrp.o ntreg.o libsam.o
sampasswd: sampasswd.o ntreg.o libsam.o
$(CC) $(CFLAGS) -o sampasswd sampasswd.o ntreg.o libsam.o
#ts: ts.o ntreg.o
# $(CC) $(CFLAGS) -nostdlib -o ts ts.o ntreg.o $(LIBS)
# -Wl,-t
.c.o:
$(CC) -c $(CFLAGS) $<
clean:
rm -f *.o chntpw cpnt reged samusrgrp sampasswd *~