|
|
1.1 ! root 1: # This is a makefile for UNIX ! 2: ! 3: # extension for object files ! 4: O = o ! 5: ! 6: # commands ! 7: CC = cc ! 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). ! 17: INCL = -I. -I$(RSAREFDIR) -I$(STDINCDIR) ! 18: ! 19: # name of main executable to build ! 20: PROG = all ! 21: ! 22: # Normal C flags. ! 23: CFLAGS = $(INCL) -O -c -DPROTOTYPES=1 ! 24: MFLAGS = -I. -I$(RSAREFDIR) ! 25: ! 26: # The location of the common source directory. ! 27: RSAREFDIR = ../../source/ ! 28: RSAREFLIB = rsaref.a ! 29: ! 30: # The location of the demo source directory. ! 31: RDEMODIR = ../../rdemo/ ! 32: ! 33: all : rdemo dhdemo ! 34: ! 35: rdemo : rdemo.$(O) $(RSAREFLIB) ! 36: cc -o $@ rdemo.$(O) $(RSAREFLIB) ! 37: ! 38: dhdemo : dhdemo.$(O) $(RSAREFLIB) ! 39: cc -o $@ dhdemo.$(O) $(RSAREFLIB) ! 40: ! 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)\ ! 43: r_stdlib.$(O) ! 44: $(LIB) r $@ $? ! 45: ranlib $@ ! 46: ! 47: rdemo.$(O) : $(RDEMODIR)rdemo.c $(RSAREFDIR)global.h $(RSAREFDIR)rsaref.h ! 48: $(CC) $(CFLAGS) $(RDEMODIR)rdemo.c ! 49: ! 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.