| 1 |
# Mixmaster version 3 -- (C) 1999 Anonymizer Inc.
|
| 2 |
|
| 3 |
# Mixmaster may be redistributed and modified under certain conditions.
|
| 4 |
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
|
| 5 |
# ANY KIND, either express or implied. See the file COPYRIGHT for
|
| 6 |
# details.
|
| 7 |
|
| 8 |
# $Id: Makefile-sh.in 647 2003-10-25 23:34:13Z weasel $
|
| 9 |
|
| 10 |
# Edit according to the libraries you want to use:
|
| 11 |
INC = %INC
|
| 12 |
DEF = %DEF -DUSE_SOCK %MIXDIR
|
| 13 |
LIBS = %LIBS
|
| 14 |
LDFLAGS = %LDFLAGS
|
| 15 |
|
| 16 |
OPT = -g -Wall
|
| 17 |
# OPT = -g -pg -Wall -DDEBUG
|
| 18 |
# OPT = -O2 -Wall
|
| 19 |
|
| 20 |
CFLAGS = $(INC) $(DEF) $(OPT)
|
| 21 |
CC = gcc
|
| 22 |
AR = ar rc
|
| 23 |
RANLIB = ranlib
|
| 24 |
#MAKE = make
|
| 25 |
|
| 26 |
OBJ = mix.o rem.o rem1.o rem2.o chain.o chain1.o chain2.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 maildir.o parsedate.tab.o
|
| 27 |
|
| 28 |
MIXOBJ = rndseed.o menu.o menusend.o menunym.o menuutil.o
|
| 29 |
NOMENUOBJ = rndseed.o dummy.o
|
| 30 |
WINOBJ = winmain.o winutil.o
|
| 31 |
|
| 32 |
all: mix
|
| 33 |
|
| 34 |
mix: $(OBJ) $(MIXOBJ) main.o $(LIBS)
|
| 35 |
$(CC) $(OBJ) $(MIXOBJ) main.o $(LIBS) $(LDFLAGS) -o mix
|
| 36 |
|
| 37 |
libmix.a: $(OBJ) $(MIXOBJ) dllmain.o
|
| 38 |
$(AR) libmix.a $(OBJ) $(MIXOBJ) dllmain.o
|
| 39 |
|
| 40 |
libmix32.a: libmix.a mixlib.def
|
| 41 |
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
|
| 42 |
|
| 43 |
dllmix: main.o libmix32.a
|
| 44 |
$(CC) main.o libmix32.a -o dllmix
|
| 45 |
|
| 46 |
winmix.exe: $(WINOBJ) libmix32.a
|
| 47 |
$(CC) $(WINOBJ) libmix32.a -lgdi32 -luser32 $(LDFLAGS) -o mix.exe
|
| 48 |
|
| 49 |
winmix: winmenu.res #winmix.exe
|
| 50 |
rsrc winmenu.res mix.exe
|
| 51 |
|
| 52 |
winmenu.o: winmenu.rc winmenu.h
|
| 53 |
windres winmenu.rc winmenu.o
|
| 54 |
|
| 55 |
remailer: $(OBJ) $(NOMENUOBJ) remailer.o $(LIBS)
|
| 56 |
$(CC) $(OBJ) $(NOMENUOBJ) remailer.o $(LIBS) $(LDFLAGS) -o remailer
|
| 57 |
|
| 58 |
mpgp: $(OBJ) $(NOMENUOBJ) pgptest.o $(LIBS)
|
| 59 |
$(CC) $(OBJ) $(NOMENUOBJ) pgptest.o $(LIBS) $(LDFLAGS) -o mpgp
|
| 60 |
|
| 61 |
test: $(OBJ) test.o $(NOMENUOBJ) $(LIBS)
|
| 62 |
$(CC) $(OBJ) test.o $(NOMENUOBJ) $(LIBS) $(LDFLAGS) -o test
|
| 63 |
|
| 64 |
clean:
|
| 65 |
-rm -f *.o *.a *.res *~ mix *.exe remailer test mpgp core gmon.out
|
| 66 |
|
| 67 |
allclean: clean
|
| 68 |
-rm -f Makefile
|
| 69 |
|
| 70 |
ci: clean
|
| 71 |
cd ~/mix3; ci -l * Mix/* Mix/Src/*; echo
|
| 72 |
|
| 73 |
parsedate.tab.c: parsedate.y
|
| 74 |
@echo Expect 6 shift/reduce conflicts
|
| 75 |
bison parsedate.y
|
| 76 |
|
| 77 |
parsedate: parsedate.tab.c
|
| 78 |
gcc -DTEST parsedate.tab.c -o parsedate
|
| 79 |
|
| 80 |
|
| 81 |
include Makefile.deps
|