[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_ntl / crypt / rsa

Annotation of OpenXM/src/ox_ntl/crypt/rsa/Makefile, Revision 1.2

1.2     ! iwane       1: # $OpenXM: OpenXM/src/ox_ntl/crypt/rsa/Makefile,v 1.1 2004/05/16 15:04:54 iwane Exp $
1.1       iwane       2:
1.2     ! iwane       3: OpenXM_HOME ?= ${PWD}/../../../..
        !             4: PREFIX=$(OpenXM_HOME)
        !             5:
        !             6: CXX ?= g++
        !             7: CC  ?= gcc
1.1       iwane       8:
1.2     ! iwane       9: RM  ?= /bin/rm
        !            10: CP  ?= /bin/cp
1.1       iwane      11:
                     12:
1.2     ! iwane      13: CFLAGS   += -g -Wall
        !            14: CXXFLAGS += -g -Wall
        !            15: CPPFLAGS  = -I$(PREFIX)/include
1.1       iwane      16:
                     17:
                     18: NTL_LIBDIR=$(PREFIX)/lib/NTL
                     19: LIBDIR=$(PREFIX)/lib
                     20:
                     21: LDFLAGS=-L$(LIBDIR) -L$(NTL_LIBDIR)
                     22:
                     23: .SUFFIXES: .cpp .o .c
                     24:
                     25: SRCC=
                     26: SRCP=ntlrsa.cpp ntlrsatest.cpp
                     27:
                     28: PROG=rsa
                     29: OBJC=$(SRCP:.cpp=.o)
                     30:
                     31: all: rsa
                     32:
                     33:
                     34: $(PROG): $(OBJC)
1.2     ! iwane      35:        $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJC) -o $@ -lntl -lgmp
1.1       iwane      36:
                     37:
                     38: .cpp.o:
1.2     ! iwane      39:        $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $< -o $@
1.1       iwane      40:
                     41: .c.o:
1.2     ! iwane      42:        $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
1.1       iwane      43:
                     44: clean:
                     45:        -$(RM) -f $(OBJC) $(PROG)
                     46:
                     47:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>