-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (27 loc) · 1.11 KB
/
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
ifeq ($(CXX),)
CXX = g++
endif
ifeq ($(CCX),)
CCX = gcc
endif
ifeq ($(OS),Windows_NT)
STAT = -static
endif
CC = $(CXX) -O3 -fopenmp -DLINKASN1C -DREQUIRE_XML_EXPORT -s $(STAT) -std=c++11
CC2 = $(CCX) -O3 -s $(STAT)
LIBS = -I"asn1c-0.9.28/libasn1compiler" -I"asn1c-0.9.28/libasn1print" -I"asn1c-0.9.28/libasn1parser" -I"asn1c-0.9.28/libasn1fix" -I"asn1c-0.9.28/skeletons"
all: nspdh.exe enber.exe unber.exe
nspdh.exe: src/main.o src/nspdh_io.o src/nspdh_utilities.o enber.o
$(CC) src/main.o src/nspdh_io.o src/nspdh_utilities.o enber.o cryptopp/libcryptopp.a -o nspdh.exe
enber.o: asn1c-0.9.28/asn1c/enber.c
$(CC2) $(LIBS) -c asn1c-0.9.28/asn1c/enber.c -o enber.o -DBufferMode
enber.exe: asn1c-0.9.28/asn1c/enber.c
$(CC2) $(LIBS) asn1c-0.9.28/asn1c/enber.c -o enber.exe
unber.exe: asn1c-0.9.28/asn1c/unber.c
$(CC2) $(LIBS) asn1c-0.9.28/asn1c/unber.c -o unber.exe
src/main.o: src/main.cpp
$(CC) -c src/main.cpp -o src/main.o
src/nspdh_io.o: src/nspdh_io.cpp
$(CC) -c src/nspdh_io.cpp -o src/nspdh_io.o
src/nspdh_utilities.o: src/nspdh_utilities.cpp
$(CC) -c src/nspdh_utilities.cpp -o src/nspdh_utilities.o