include ./../../MakeFft2.include # # Various targets to build. # LIB_NAME = ./../../libfftw.so LIB_SRCS = \ config.c fn_2.c fni_12.c fni_8.c ftw_9.c generic.c\ executor.c fn_3.c fni_13.c fni_9.c ftwi_10.c malloc.c \ fft.c fn_32.c fni_14.c ftw_10.c ftwi_16.c planner.c \ fftwf77.c fn_4.c fni_15.c ftw_16.c ftwi_2.c putils.c \ fftwnd.c fn_5.c fni_16.c ftw_2.c ftwi_3.c rader.c \ fn_1.c fn_6.c fni_2.c ftw_3.c ftwi_32.c timer.c \ fn_10.c fn_64.c fni_3.c ftw_32.c ftwi_4.c twiddle.c \ fn_11.c fn_7.c fni_32.c ftw_4.c ftwi_5.c wisdom.c \ fn_12.c fn_8.c fni_4.c ftw_5.c ftwi_6.c wisdomio.c \ fn_13.c fn_9.c fni_5.c ftw_6.c ftwi_64.c \ fn_14.c fni_1.c fni_6.c ftw_64.c ftwi_7.c \ fn_15.c fni_10.c fni_64.c ftw_7.c ftwi_8.c \ fn_16.c fni_11.c fni_7.c ftw_8.c ftwi_9.c LIB_OBJS = $(LIB_SRCS:.cc=.o) LIB_OBJS := $(LIB_OBJS:.c=.o) SRCS = $(LIB_SRCS) OBJS = $(LIB_OBJS) all: $(LIB_NAME) ### # # Making LIB # ### $(LIB_NAME): $(OBJS) $(CC) $(LDFLAGS) -o $(LIB_NAME) $(OBJS) #$(LIB_LDLIBS) # # dependencies. # # # default rules for building LIB objects. Note that client programs (ie., # the ones that *use* the LIB) have to be compiled without the LIB_CFLAGS # flags. # .cc.o: $(CC) -c $(LIB_CFLAGS) $(INCLUDE) $(CFLAGS) \ -DFFTW_FORTRANIZE_LOWERCASE_UNDERSCORE -DFFTW_FORTRANIZE_EXTRA_UNDERSCORE -o $@ $< .c.o: $(CC) -c $(LIB_CFLAGS) $(INCLUDE) $(CFLAGS)\ -DFFTW_FORTRANIZE_LOWERCASE_UNDERSCORE -DFFTW_FORTRANIZE_EXTRA_UNDERSCORE -o $@ $< # Note that we omit the $(LIB_CFLAGS) for client programs. #usedll.o: %o: %c # $(CC) -c $(INCLUDE) $(CFLAGS) -o $@ $< clean: -rm -f $(LIB_OBJS) $(LIB_EXP_DEF) touch : touch *.c #to change the ned of line which are not the same between Unix and Windows portage: tr -d "\015" toto mv -f toto config.c tr -d "\015" toto mv -f toto planner.c tr -d "\015" toto mv -f toto wisdom.c