Annotation of OpenXM/src/ox_ntl/crypt/rsa/Makefile, Revision 1.3
1.3 ! iwane 1: # $OpenXM: OpenXM/src/ox_ntl/crypt/rsa/Makefile,v 1.2 2004/07/04 02:31:51 iwane Exp $
! 2:
! 3: VPATH=.:../sha1
1.1 iwane 4:
1.2 iwane 5: OpenXM_HOME ?= ${PWD}/../../../..
6: PREFIX=$(OpenXM_HOME)
7:
8: CXX ?= g++
9: CC ?= gcc
1.1 iwane 10:
1.2 iwane 11: RM ?= /bin/rm
12: CP ?= /bin/cp
1.1 iwane 13:
14:
1.2 iwane 15: CFLAGS += -g -Wall
16: CXXFLAGS += -g -Wall
1.3 ! iwane 17: CPPFLAGS = -I$(PREFIX)/include -I../sha1
1.1 iwane 18:
19:
20: NTL_LIBDIR=$(PREFIX)/lib/NTL
21: LIBDIR=$(PREFIX)/lib
22:
23: LDFLAGS=-L$(LIBDIR) -L$(NTL_LIBDIR)
24:
25: .SUFFIXES: .cpp .o .c
26:
1.3 ! iwane 27: SRCCG=gmprsa.c sha1.c gmprsatest.c
! 28: SRCPN=ntlrsa.cpp ntlrsatest.cpp
! 29:
! 30: NTL=ntlrsatest
! 31: GMP=gmprsatest
! 32:
! 33: PROGS=$(NTL) $(GMP)
1.1 iwane 34:
1.3 ! iwane 35: OBJCN=$(SRCPN:.cpp=.o) $(SRCCN:.c=.o)
! 36: OBJCG=$(SRCPG:.cpp=.o) $(SRCCG:.c=.o)
1.1 iwane 37:
38:
39:
1.3 ! iwane 40: all: $(PROGS)
1.1 iwane 41:
42:
1.3 ! iwane 43: $(GMP): $(OBJCG)
! 44: $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJCG) -o $@ -lgmp
! 45:
! 46:
! 47: $(NTL): $(OBJCN)
! 48: $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJCN) -o $@ -lntl -lgmp
1.1 iwane 49: .cpp.o:
1.2 iwane 50: $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@
1.1 iwane 51:
52: .c.o:
1.2 iwane 53: $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
1.1 iwane 54:
55: clean:
1.3 ! iwane 56: -$(RM) -f $(OBJCG) $(OBJCN) $(PROGS)
! 57:
1.1 iwane 58:
59:
1.3 ! iwane 60: gmprsa.o: gmprsa.h
! 61: gmprsatest.o: gmprsa.h
! 62: ntlrsa.o: ntlrsa.h
! 63: ntlrsatest.o : ntlrsa.h
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>