forked from linuxmuster/lsaSecrets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (28 loc) · 1012 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
CC=cl.exe
CCFLAGS=/nologo /EHsc /W4 /c
LNK=link.exe
LDFLAGS=/nologo
INC_DIR=inc
SRC_DIR=src
OUTPUT_DIR=bin
SQLITE_DIR=3rd_party\sqlite
# Inference rule to build all object files
{$(SRC_DIR)}.cpp.obj ::
@echo -------Compiling $<
$(CC) $(CCFLAGS) /I$(INC_DIR) $<
all : protect encrypt decrypt lsaSecretRead lsaSecretStore chromePass iePass firePass
utils.obj : $(INC_DIR)\utils.h
firePass.obj : $(INC_DIR)\firePass.h
# Build executables with nmake macros
protect encrypt decrypt: [email protected]
$(LNK) $(LDFLAGS) /out:$(OUTPUT_DIR)\[email protected] $*.obj
lsaSecretRead lsaSecretStore: [email protected] lsa_util.obj
$(LNK) $(LDFLAGS) /out:$(OUTPUT_DIR)\[email protected] $*.obj lsa_util.obj
chromePass firePass: [email protected] utils.obj
$(LNK) $(LDFLAGS) /out:$(OUTPUT_DIR)\[email protected] $*.obj utils.obj $(SQLITE_DIR)\sqlite3.obj
iePass: [email protected] utils.obj
$(LNK) $(LDFLAGS) /out:$(OUTPUT_DIR)\[email protected] $*.obj utils.obj
clean:
del *.obj *.tli *.tlh
cleanall:
del $(OUTPUT_DIR)\*.exe *.obj *.tli *.tlh