Annotation of OpenXM/src/hgm/fisher-bingham/src/Makefile, Revision 1.2
1.2 ! takayama 1: AR=ar
! 2: RANLIB=ranlib
! 3: CC = gcc
! 4: libs_gsl = -lgsl -lblas -lm
! 5: ko-initial-objs= ko-initial.o ko-fbd-rk.o ko-fbd-ps.o ko-perturbation.o ko-fbd-io.o ko-time.o
! 6:
! 7: all: hgm_ko_nc_fb libko_fb.a
! 8:
! 9: usage:
! 10: @echo "In order to compile testNN.c generated by nk_fb_gen_c.gen_c(NN) of nk_fb_gen_c.rr,"
! 11: @echo "run the command"
! 12: @echo " gcc testNN.c libko_fb.a -lgsl -lblas"
! 13: @echo "after editing the data testNN.c following the comments."
! 14: @echo "Sample data are in Testdata/sNN_*_data.h"
! 15: @echo "See asir-contrib/packages/doc/nk_fb_gen_c as to details."
! 16:
! 17: .c.o:
! 18: ${CC} $< -c
1.1 takayama 19:
20: hgm_ko_nc_fb: hgm_ko_nc_fb.o
1.2 ! takayama 21: ${CC} -o hgm_ko_nc_fb hgm_ko_nc_fb.o ${libs_gsl}
1.1 takayama 22: hgm_ko_nc_fb.o: hgm_ko_nc_fb.c
23: ${CC} -c -DSTANDALONE hgm_ko_nc_fb.c
24: #todo, the install folder should be changeable by configure.
1.2 ! takayama 25: install: hgm_ko_nc_fb libko_fb.a
1.1 takayama 26: install hgm_ko_nc_fb ../../../../bin
1.2 ! takayama 27: install libko_fb.a ../../../../lib
! 28:
! 29: libko_fb.a: $(ko-initial-objs)
! 30: if [ ${AR} = ar ]; then \
! 31: ar ru libko_fb.a $(ko-initial-objs) ; \
! 32: else \
! 33: libtool -static -o libko_fb.a $(ko-initial-objs) ; \
! 34: fi
! 35: ${RANLIB} libko_fb.a
! 36:
! 37: # HGD for the Fisher-Bingham distribution
! 38: ko-initial.o: ko-fbd.c
! 39: ${CC} ko-fbd.c -o $@ -c -D_HGD
! 40:
! 41: ko-fbd.o:ko-fbd.c perturbation.h ko-fbd.h ko-time.h
! 42: ${CC} ko-fbd.c -c
! 43:
! 44: ko-fbd-io.o: ko-io.c
! 45: ${CC} ko-io.c -c -D_SPHERE -o $@
! 46:
! 47:
1.1 takayama 48: clean:
1.2 ! takayama 49: rm -f *~ *.o a.out ${ko-initial-objs} libko_fb.a hgm_ko_nc_fb
1.1 takayama 50:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>