Makefile 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #Makefile generated on marvin Fri Aug 30 09:18:37 CEST 2002
  2. # Mixmaster version 3 -- (C) 1999 Anonymizer Inc.
  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. # $Id: Makefile,v 1.3 2003/09/29 20:17:49 sturm Exp $
  8. # Edit according to the libraries you want to use:
  9. INC = -Ipcre-2.08
  10. DEF = -DUSE_ZLIB -DUSE_PCRE -DUSE_NCURSES -DHAVE_NCURSES_H -DUSE_SOCK
  11. LIBS = pcre-2.08/libpcre.a
  12. LDFLAGS = -lz -lcrypto -lcurses
  13. OPT = -Wall
  14. # OPT = -g -pg -Wall -DDEBUG
  15. # OPT = -O2 -Wall
  16. CFLAGS += $(INC) $(DEF) $(OPT)
  17. CC ?= gcc
  18. AR = ar rc
  19. RANLIB = ranlib
  20. #MAKE = make
  21. 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
  22. MIXOBJ = rndseed.o menu.o menusend.o menunym.o menuutil.o
  23. NOMENUOBJ = rndseed.o dummy.o
  24. WINOBJ = winmain.o winutil.o
  25. all: mix
  26. mix: $(OBJ) $(MIXOBJ) main.o $(LIBS)
  27. $(CC) $(OBJ) $(MIXOBJ) main.o $(LIBS) $(LDFLAGS) -o mix
  28. libmix.a: $(OBJ) $(MIXOBJ) dllmain.o
  29. $(AR) libmix.a $(OBJ) $(MIXOBJ) dllmain.o
  30. libmix32.a: libmix.a mixlib.def
  31. 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
  32. dllmix: main.o libmix32.a
  33. $(CC) main.o libmix32.a -o dllmix
  34. winmix.exe: $(WINOBJ) libmix32.a
  35. $(CC) $(WINOBJ) libmix32.a -lgdi32 -luser32 $(LDFLAGS) -o mix.exe
  36. winmix: winmenu.res #winmix.exe
  37. rsrc winmenu.res mix.exe
  38. winmenu.o: winmenu.rc winmenu.h
  39. windres winmenu.rc winmenu.o
  40. remailer: $(OBJ) $(NOMENUOBJ) remailer.o $(LIBS)
  41. $(CC) $(OBJ) $(NOMENUOBJ) remailer.o $(LIBS) $(LDFLAGS) -o remailer
  42. mpgp: $(OBJ) $(NOMENUOBJ) pgptest.o $(LIBS)
  43. $(CC) $(OBJ) $(NOMENUOBJ) pgptest.o $(LIBS) $(LDFLAGS) -o mpgp
  44. test: $(OBJ) test.o $(NOMENUOBJ) $(LIBS)
  45. $(CC) $(OBJ) test.o $(NOMENUOBJ) $(LIBS) $(LDFLAGS) -o test
  46. clean:
  47. -rm -f *.o *.a *.res *~ mix *.exe remailer test mpgp core gmon.out
  48. allclean: clean
  49. -rm -f Makefile
  50. ci: clean
  51. cd ~/mix3; ci -l * Mix/* Mix/Src/*; echo
  52. include Makefile.deps
  53. pcre-2.08/libpcre.a:
  54. cd pcre-2.08; make libpcre.a