-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (30 loc) · 870 Bytes
/
Makefile
File metadata and controls
38 lines (30 loc) · 870 Bytes
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
EXEGESIS_OBJS=exegesis.o
SSHTOOL_OBJS=sshtool.o
INCLUDED_KEYSETS=keysets
all: $(EXEGESIS_OBJS) exegesis
install: all
install -d $(DESTDIR)/usr/share/exegesis/
install exegesis $(DESTDIR)/usr/bin/
cp -r $(INCLUDED_KEYSETS) $(DESTDIR)/usr/share/exegesis/
LD=gcc
LIBS=-lcrypto
CFLAGS=-I/opt/local/include
SSHTOOL_LIBS=-L/opt/local/lib -lnids -lpcap -lnet -lxssh
LD_FLAGS=-Lxssh -Lxcrypt
LIBXSSH=xssh/libxssh.a
$(LIBXSSH):
(cd xssh && $(MAKE))
LIBXCRYPT=xcrypt/libxcrypt.a
$(LIBXCRYPT):
(cd xcrypt && $(MAKE))
always:
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
exegesis: $(LIBXCRYPT) $(LIBXSSH) $(EXEGESIS_OBJS)
$(LD) -o $@ $(EXEGESIS_OBJS) $(LD_FLAGS) -lxssh -lxcrypt $(LIBS)
sshtool: $(LIBXSSH) $(SSHTOOL_OBJS)
$(LD) -o $@ $(SSHTOOL_OBJS) $(LD_FLAGS) $(SSHTOOL_LIBS)
clean:
rm -f *.o exegesis
(cd xcrypt && $(MAKE) clean)
(cd xssh && $(MAKE) clean)