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

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

1.5     ! iwane       1: # $OpenXM$
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:
        !            13: LIBS_MPL= -L$(MAPLE)/bin.IBM_INTEL_LINUX -lmaplec
        !            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:
        !            23: SRCC= m2c.c c2m.c oxmaples.c
        !            24:
        !            25: OBJC = $(SRCC:.c=.o)
        !            26:
        !            27: all:: $(PROG) libsimple.so  libsimple2.so
        !            28:
        !            29: $(PROG): $(OBJC) main.o
        !            30:        $(CC) $(OBJC) main.o -o $@ $(LIBS_MPL) $(LDFLAGS) $(LIBS)
        !            31:
        !            32: .c.o:
        !            33:        $(CC) $(CFLAGS) -c $< $(DEFS)
        !            34:
        !            35:
        !            36: clean:
        !            37:        -$(RM) -f $(OBJC)  main.o local.o
        !            38:        -$(RM) -f $(PROG)
        !            39:        -$(RM) -f simple.o simple2.o libsimple.so libsimple2.so
        !            40:
        !            41:
        !            42: #----------------------------------------------
1.1       takayama   43: libsimple.so: simple.c
1.2       ohara      44:        gcc -fpic -fPIC -I../../include -c simple.c
1.4       ohara      45:        gcc -shared -Wl,-soname,libsimple.so -o libsimple.so simple.o -L../../lib -lox -lgmp -lgc
1.1       takayama   46:
1.3       takayama   47: libsimple2.so: simple2.c
                     48:        gcc -fpic -fPIC -I../../include -c simple2.c
1.4       ohara      49:        gcc -shared -Wl,-soname,libsimple2.so -o libsimple2.so simple2.o -L../../lib -lox -lgmp -lgc
1.3       takayama   50:
1.5     ! iwane      51:

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