#---------------------------------------------------- # # Various targets to build. # DLL_NAME = ./../../fftw.dll DLL_EXP_DEF = fftw.def all: $(DLL_NAME) DLL_SRCS = $(wildcard ./*.c) DLL_OBJS = $(DLL_SRCS:.c=.o) SRCS = $(DLL_SRCS) OBJS = $(DLL_OBJS) ### # # Making DLL # ### DLLWRAP_FLAGS = --output-def $(DLL_EXP_DEF) \ --add-stdcall-alias \ --driver-name $(CC_FOR_DLL) \ -mwindows --target=i386-mingw32 \ $(IMAGE_BASE) $(DLL_NAME): $(OBJS) #$(DLL_OBJS) $(DLLWRAP) $(DLLWRAP_FLAGS) -o $(DLL_NAME) \ $(OBJS) $(DLL_LDFLAGS) $(DLL_LDLIBS) #$(DLL_OBJS) $(DLL_LDFLAGS) \ #$(DLL_LDLIBS) # # dependencies. # # # default rules for building DLL objects. Note that client programs (ie., # the ones that *use* the DLL) have to be compiled without the DLL_CFLAGS # flags. # .c.o: $(CC) -c $(DLL_CFLAGS) $(INCLUDE) $(CFLAGS) -o $@ $< # Note that we omit the $(DLL_CFLAGS) for client programs. usedll.o: %o: %c $(CC) -c $(INCLUDE) $(CFLAGS) -o $@ $< clean: rm -f $(DLL_OBJS) $(DLL_EXP_DEF) touch : touch *.c