|
|
1.1.1.2 root 1: # This is a makefile for UNIX
2:
3: # CHANGES MADE TO THIS FILE UNDER RSAREF license clause 1(c):
4: #
5: # For the MIT PGP 2.6 distribution, this file was modified to permit
6: # replacement of the NN_ModExp routine by an equivalent routine
7: # contained in the PGP 2.6 sources. To enable this change, an #ifdef
8: # was added to the nn.c file (search for #ifndef USEMPILIB
9: # below). RSAREF *must* be compiled with USEMPILIB defined for this
10: # change to occur.
11: #
12: # This makefile was changed to use GCC and to define USEMPILIB
13: # Change made May 21, 1994.
14: #
15:
16: # extension for object files
17: O = o
18:
19: # commands
20: CC = gcc
21: RANLIB = ranlib
22: LIB = ar
23: ASM = masm
1.1.1.3 ! root 24: PROTOTYPES = 1
1.1.1.2 root 25:
26: # name of temporary library script
27: TEMPFILE = $(TEMP)/temp.mak
28:
29: # standard include directory
30: STDINCDIR=/usr/include
31:
32: # The places to look for include files (in order).
33: INCL = -I. -I$(SRCDIR) -I$(STDINCDIR)
34:
35: # name of main executable to build
36: PROG = rdemo
37:
38: # Normal GCC flags.
1.1.1.3 ! root 39: CFLAGS = $(INCL) -O -c -DPROTOTYPES=$(PROTOTYPES) -DUSEMPILIB
1.1.1.2 root 40: MFLAGS = -I. -I$(SRCDIR)
41:
42: # The location of the common source directory.
43: SRCDIR = ../../source/
44: SRCLIB = rsaref.a
45:
46: # The location of the demo source directory.
47: RDEMODIR = ../../rdemo/
48:
49: all : $(SRCLIB)
50:
51: rdemo : rdemo.$(O) $(SRCLIB)
52: $(CC) -o $@ rdemo.$(O) $(SRCLIB)
53:
54: $(SRCLIB) : desc.$(O) digit.$(O) md2c.$(O) md5c.$(O) nn.$(O) prime.$(O)\
55: rsa.$(O) r_encode.$(O) r_enhanc.$(O) r_keygen.$(O) r_random.$(O)\
56: r_stdlib.$(O)
57: $(LIB) r $@ $?
58: $(RANLIB) $@
59:
60: rdemo.$(O) : $(RDEMODIR)rdemo.c global.h $(SRCDIR)rsaref.h
61: $(CC) $(CFLAGS) $(RDEMODIR)rdemo.c
62:
63: include $(SRCDIR)targets.mak
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.