-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile.nmake
executable file
·41 lines (31 loc) · 1.36 KB
/
Makefile.nmake
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
#--------------------------------------------
# Makefile for MS Visual C++
# updated for MS Visual Studio 10.0 Feb-27-2012
#--------------------------------------------
OPENSSL_DIR=c:/openssl
OPENSSL_LIBS=$(OPENSSL_DIR)/lib/libeay32.lib $(OPENSSL_DIR)/lib/ssleay32.lib
OPENSSL_INC=/I$(OPENSSL_DIR)/include
CFLAGS= /DWINNT /DWIN32 /DHAVE_MALLOC_H /DHAVE_STRING_H /DHAVE_FCNTL_H /DHAVE_CTYPE_H /DHAVE_STDLIB_H /DHAVE_OPENSSL /I. $(OPENSSL_INC)
CFLAGS=$(CFLAGS) /Ox /W3 /wd4996 /nologo
LIBFLAGS=/nologo
WINDOWS_LIBS=ws2_32.lib shell32.lib advapi32.lib user32.lib gdi32.lib winmm.lib comdlg32.lib comctl32.lib
LIBRARY=rncryptorc.lib
LIBS=$(LIBRARY) $(OPENSSL_LIBS) $(WINDOWS_LIBS)
DEFINES= $(INCLUDES) $(DEFS)
SRCS = rncryptor_c.c mutils.c
OBJS = rncryptor_c.obj mutils.obj
all: $(LIBRARY)
$(LIBRARY): $(OBJS)
lib $(LIBFLAGS) $(OBJS) /out:$(LIBRARY)
EXAMPLES:
$(CC) $(CFLAGS) rn_encrypt.c $(LIBS) /Fern_encrypt.exe
$(CC) $(CFLAGS) rn_decrypt.c $(LIBS) /Fern_decrypt.exe
$(CC) $(CFLAGS) rn_encrypt_with_key.c $(LIBS) /Fern_encrypt_with_key.exe
$(CC) $(CFLAGS) rn_decrypt_with_key.c $(LIBS) /Fern_decrypt_with_key.exe
TESTER:
$(CC) $(CFLAGS) tests/test_with_test_vectors.c $(LIBS) /Fetests/test_with_test_vectors.exe
TEST:TESTER
tests\test_with_test_vectors.exe
clean:
del $(OBJS) $(LIBRARY) *.obj *.bak *.exe tests\*.obj tests\test_with_test_vectors.exe