include ./../../MakeFft.include # # Various targets to build. # LIB_NAME = ./../../libfftw.so LIB_SRCS = $(wildcard ./*.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