blob: 24e0660e869751b997b20fabffe4cb6ecf01f831 (
plain) (
blame)
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
67
68
69
70
71
72
73
74
75
76
|
# Mixmaster version 2.9 -- (C) 1999 - 2003 Anonymizer Inc. and others.
# Mixmaster may be redistributed and modified under certain conditions.
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
# ANY KIND, either express or implied. See the file COPYRIGHT for
# details.
# Edit according to the libraries you want to use:
INC = -I/usr/local/include -I/usr/include
DEF = -DUSE_ZLIB -DUSE_PCRE -DUSE_NCURSES -DHAVE_NCURSES_H -DUSE_IDEA -DUSE_SOCK -DSPOOL='"/var/tmp/mixmaster"' -DGLOBALMIXCONF='"/usr/local/etc/mixmaster/client.cfg"' -DHOMEMIXDIR="\".Mix\""
LIBS =
LDFLAGS = -lz -L/usr/lib -lpcre -L/usr/local/lib -lcrypto -L/usr/lib -lncurses -L/usr/lib
OPT = -g -Wall
# OPT = -g -pg -Wall -DDEBUG
# OPT = -O2 -Wall
CFLAGS = $(INC) $(DEF) $(OPT)
CC = gcc
AR = ar rc
RANLIB = ranlib
#MAKE = make
OBJ = mix.o rem.o rem1.o rem2.o rem3.o chain.o chain1.o chain2.o chain3.o nym.o pgp.o pgpdb.o pgpdata.o pgpget.o pgpcreat.o pool.o mail.o rfc822.o mime.o keymgt.o compress.o stats.o crypto.o random.o util.o buffers.o
MIXOBJ = rndseed.o menu.o menusend.o menunym.o menuutil.o
NOMENUOBJ = rndseed.o dummy.o
WINOBJ = winmain.o winutil.o
all: mix
mix: $(OBJ) $(MIXOBJ) main.o $(LIBS)
$(CC) $(OBJ) $(MIXOBJ) main.o $(LIBS) $(LDFLAGS) -o mix
libmix.a: $(OBJ) $(MIXOBJ) dllmain.o
$(AR) libmix.a $(OBJ) $(MIXOBJ) dllmain.o
libmix32.a: libmix.a mixlib.def
dllwrap --dllname mixlib.dll --def mixlib.def --output-lib libmix32.a libmix.a zlib-1.1.4/libz.a pcre-2.08/libpcre.a openssl/libeay32.a -lwsock32
dllmix: main.o libmix32.a
$(CC) main.o libmix32.a -o dllmix
winmix.exe: $(WINOBJ) libmix32.a
$(CC) $(WINOBJ) libmix32.a -lgdi32 -luser32 $(LDFLAGS) -o mix.exe
winmix: winmenu.res #winmix.exe
rsrc winmenu.res mix.exe
winmenu.o: winmenu.rc winmenu.h
windres winmenu.rc winmenu.o
remailer: $(OBJ) $(NOMENUOBJ) remailer.o $(LIBS)
$(CC) $(OBJ) $(NOMENUOBJ) remailer.o $(LIBS) $(LDFLAGS) -o remailer
mpgp: $(OBJ) $(NOMENUOBJ) pgptest.o $(LIBS)
$(CC) $(OBJ) $(NOMENUOBJ) pgptest.o $(LIBS) $(LDFLAGS) -o mpgp
test: $(OBJ) test.o $(NOMENUOBJ) $(LIBS)
$(CC) $(OBJ) test.o $(NOMENUOBJ) $(LIBS) $(LDFLAGS) -o test
clean:
-rm -f *.o *.a *.res *~ mix *.exe remailer test mpgp core gmon.out
allclean: clean
-rm -f Makefile
ci: clean
cd ~/mix3; ci -l * Mix/* Mix/Src/*; echo
include Makefile.deps
|