mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-09 06:51:44 +00:00
eab25aec93
PR: ports/59813 Submitted by: Meyer Wolfsheim
77 lines
2.3 KiB
Makefile
77 lines
2.3 KiB
Makefile
# 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
|
|
|
|
|
|
|
|
|
|
|