[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_maple

Annotation of OpenXM/src/ox_maple/Makefile, Revision 1.6

1.6     ! iwane       1: # $OpenXM: OpenXM/src/ox_maple/Makefile,v 1.5 2008/09/19 13:01:05 iwane Exp $
1.1       takayama    2:
1.5       iwane       3: PROG=ox_maple
                      4:
                      5: CC = gcc
                      6: RM ?= /bin/rm
                      7: MAKE ?= make
                      8:
                      9:
                     10: CFLAGS += -Wall -g -O2 -I$(OpenXM_HOME)/include -I$(OpenXM_HOME)/src/ox_ntl -I$(MAPLE)/extern/include
                     11:
                     12:
1.6     ! iwane      13: LIBS_MPL= -L$(MAPLE)/bin.IBM_INTEL_LINUX -lmaplec -Wl,--no-as-needed -lrt
1.5       iwane      14: LIBS= -loxsv -lox -lgmp -lgc
                     15: LDFLAGS= -L$(OpenXM_HOME)/lib
                     16:
                     17:
                     18: DEFS += -D__GMP_FALE_H__
                     19:
                     20: .SUFFIXES: .o .c
                     21:
                     22: SRCC= m2c.c c2m.c oxmaples.c
                     23:
                     24: OBJC = $(SRCC:.c=.o)
                     25:
                     26: all:: $(PROG) libsimple.so  libsimple2.so
                     27:
1.6     ! iwane      28: $(PROG): $(OBJC) main.o $(OpenXM_HOME)/lib/liboxsv.so
1.5       iwane      29:        $(CC) $(OBJC) main.o -o $@ $(LIBS_MPL) $(LDFLAGS) $(LIBS)
                     30:
1.6     ! iwane      31: $(OpenXM_HOME)/lib/liboxsv.so:
        !            32:        (cd ../ox_ntl; make liboxsv.so && make install_lib)
        !            33:
1.5       iwane      34: .c.o:
                     35:        $(CC) $(CFLAGS) -c $< $(DEFS)
                     36:
                     37: clean:
                     38:        -$(RM) -f $(OBJC)  main.o local.o
                     39:        -$(RM) -f $(PROG)
                     40:        -$(RM) -f simple.o simple2.o libsimple.so libsimple2.so
                     41:
                     42:
                     43: #----------------------------------------------
1.1       takayama   44: libsimple.so: simple.c
1.2       ohara      45:        gcc -fpic -fPIC -I../../include -c simple.c
1.4       ohara      46:        gcc -shared -Wl,-soname,libsimple.so -o libsimple.so simple.o -L../../lib -lox -lgmp -lgc
1.1       takayama   47:
1.3       takayama   48: libsimple2.so: simple2.c
                     49:        gcc -fpic -fPIC -I../../include -c simple2.c
1.4       ohara      50:        gcc -shared -Wl,-soname,libsimple2.so -o libsimple2.so simple2.o -L../../lib -lox -lgmp -lgc
1.3       takayama   51:
1.5       iwane      52:

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