include ./../../MakeFft.include # # Various targets to build. # LIB_NAME = ./../../libfftw.so #LIB_SRCS = $(wildcard ./*.c) LIB_SRCS = config.c executor.c fft.c fftwf77.c fftwnd.c \ fn_1.c fn_10.c fn_11.c fn_12.c fn_13.c fn_14.c \ fn_15.c fn_16.c fn_2.c fn_3.c fn_32.c fn_4.c \ fn_5.c fn_6.c fn_64.c fn_7.c fn_8.c fn_9.c \ fni_1.c fni_10.c fni_11.c fni_12.c fni_13.c \ fni_14.c fni_15.c fni_16.c fni_2.c fni_3.c \ fni_32.c fni_4.c fni_5.c fni_6.c fni_64.c \ fni_7.c fni_8.c fni_9.c ftw_10.c ftw_16.c \ ftw_2.c ftw_3.c ftw_32.c ftw_4.c ftw_5.c \ ftw_6.c ftw_64.c ftw_7.c ftw_8.c ftw_9.c \ ftwi_10.c ftwi_16.c ftwi_2.c ftwi_3.c \ ftwi_32.c ftwi_4.c ftwi_5.c ftwi_6.c ftwi_64.c \ ftwi_7.c ftwi_8.c ftwi_9.c generic.c \ malloc.c planner.c putils.c rader.c timer.c \ twiddle.c wisdom.c wisdomio.c LIB_OBJS = $(LIB_SRCS:.c=.o) SRCS = $(LIB_SRCS) OBJS = $(LIB_OBJS) all: $(LIB_NAME) ### # # Making LIB # ### $(LIB_NAME): $(OBJS) $(CC) $(LDFLAGS) -o $(LIB_NAME) $(OBJS) # # 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. # .c.o: $(CC) -Wl,-full_got_pages $(LIB_CFLAGS) $(INCLUDE) $(CFLAGS) -o $@ -c $< # 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