Annotation of rsaref/install/unix/makefile, revision 1.1.1.1

1.1       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
                     24: 
                     25: # name of temporary library script
                     26: TEMPFILE = $(TEMP)/temp.mak
                     27: 
                     28: # standard include directory
                     29: STDINCDIR=/usr/include
                     30: 
                     31: # The places to look for include files (in order).
                     32: INCL =  -I. -I$(SRCDIR) -I$(STDINCDIR)
                     33: 
                     34: # name of main executable to build
                     35: PROG = rdemo
                     36: 
                     37: # Normal GCC flags.
                     38: CFLAGS = $(INCL) -O -c -DPROTOTYPES=1 -DUSEMPILIB
                     39: MFLAGS = -I. -I$(SRCDIR)
                     40: 
                     41: # The location of the common source directory.
                     42: SRCDIR = ../../source/
                     43: SRCLIB = rsaref.a
                     44: 
                     45: # The location of the demo source directory.
                     46: RDEMODIR = ../../rdemo/
                     47: 
                     48: all : $(SRCLIB)
                     49: 
                     50: rdemo : rdemo.$(O) $(SRCLIB)
                     51:        $(CC) -o $@ rdemo.$(O) $(SRCLIB)
                     52: 
                     53: $(SRCLIB) : desc.$(O) digit.$(O) md2c.$(O) md5c.$(O) nn.$(O) prime.$(O)\
                     54:   rsa.$(O) r_encode.$(O) r_enhanc.$(O) r_keygen.$(O) r_random.$(O)\
                     55:   r_stdlib.$(O)
                     56:        $(LIB) r $@ $?
                     57:        $(RANLIB) $@
                     58: 
                     59: rdemo.$(O) : $(RDEMODIR)rdemo.c global.h $(SRCDIR)rsaref.h
                     60:        $(CC) $(CFLAGS) $(RDEMODIR)rdemo.c
                     61: 
                     62: include $(SRCDIR)targets.mak

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.