-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·66 lines (46 loc) · 1.32 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Make file for NetSetHost
#
#
CC = gcc
INSTALL = install
prefix = /usr/local
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
mandir = ${prefix}/man
sysconfdir = ${prefix}/etc
datadir = ${prefix}/share
VERSION=1.0
docdir = $(datadir)/doc/motion-$(VERSION)
examplesdir = $(docdir)/examples
CFLAGS = -I. -I./src -Wall -g -O2 -c -DOSA_POSIX
LDFLAGS = -Wl,-rpath,/usr/local/lib -lstdc++ -lm
LIBS = -L/usr/lib -lpthread
SRCOBJ = enigma.o \
enigmaM3.o \
enigmaM4.o \
walze.o\
umkehrwalze.o\
steckerbrett.o\
turing.o\
exampleEnigma.o\
exampleTuring.o \
coincidence.o \
exampleCoincidence.o \
ngramscore.o \
adfgx.o \
toolbox.o \
workDispatcher.o
MAINOBJ = main.o crack01.o crack02.o crack03.o
TESTOBJ = test.o
OBJ = $(MAINOBJ) $(SRCOBJ) $(TESTOBJ)
VPATH = ./src
all: enigma test
enigma: $(MAINOBJ) $(SRCOBJ)
$(CC) $(LDFLAGS) -o $@ $(MAINOBJ) $(SRCOBJ) $(LIBS)
test: $(TESTOBJ) $(SRCOBJ)
$(CC) $(LDFLAGS) -o $@ $(TESTOBJ) $(SRCOBJ) $(LIBS)
$(OBJ):%.o:%.c
$(CC) $(CFLAGS) $<
install:
clean:
rm -f *.o enigma test enigma.exe test.exe