|
|
1.1 root 1: # This is a makefile for UNIX
2:
3: # extension for object files
4: O = o
5:
6: # commands
1.1.1.2 root 7: CC = cc
1.1 root 8: LIB = ar
9:
10: # name of temporary library script
11: TEMPFILE = $(TEMP)/temp.mak
12:
13: # standard include directory
14: STDINCDIR=/usr/include
15:
16: # The places to look for include files (in order).
1.1.1.2 root 17: INCL = -I. -I$(RSAREFDIR) -I$(STDINCDIR)
1.1 root 18:
19: # name of main executable to build
1.1.1.2 root 20: PROG = all
1.1 root 21:
1.1.1.2 root 22: # Normal C flags.
23: CFLAGS = $(INCL) -O -c -DPROTOTYPES=1
24: MFLAGS = -I. -I$(RSAREFDIR)
1.1 root 25:
26: # The location of the common source directory.
1.1.1.3 ! root 27: RSAREFDIR = ../source/
1.1.1.2 root 28: RSAREFLIB = rsaref.a
1.1 root 29:
30: # The location of the demo source directory.
1.1.1.3 ! root 31: RDEMODIR = ../rdemo/
1.1 root 32:
1.1.1.2 root 33: all : rdemo dhdemo
34:
35: rdemo : rdemo.$(O) $(RSAREFLIB)
36: cc -o $@ rdemo.$(O) $(RSAREFLIB)
1.1 root 37:
1.1.1.2 root 38: dhdemo : dhdemo.$(O) $(RSAREFLIB)
39: cc -o $@ dhdemo.$(O) $(RSAREFLIB)
1.1 root 40:
1.1.1.2 root 41: $(RSAREFLIB) : desc.$(O) digit.$(O) md2c.$(O) md5c.$(O) nn.$(O) prime.$(O)\
42: rsa.$(O) r_encode.$(O) r_dh.$(O) r_enhanc.$(O) r_keygen.$(O) r_random.$(O)\
1.1 root 43: r_stdlib.$(O)
44: $(LIB) r $@ $?
1.1.1.2 root 45: ranlib $@
1.1 root 46:
1.1.1.2 root 47: rdemo.$(O) : $(RDEMODIR)rdemo.c $(RSAREFDIR)global.h $(RSAREFDIR)rsaref.h
1.1 root 48: $(CC) $(CFLAGS) $(RDEMODIR)rdemo.c
49:
1.1.1.2 root 50: dhdemo.$(O) : $(RDEMODIR)dhdemo.c $(RSAREFDIR)global.h $(RSAREFDIR)rsaref.h
51: $(CC) $(CFLAGS) $(RDEMODIR)dhdemo.c
52:
53: include $(RSAREFDIR)targets.mak
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.