This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: DLL generation under Cygwin


Hi,
I deleted .o files and compiled with -mno-cygwin.
cygwin1.dll is still needed because it contains
malloc() and free() which are used in my DLL.
Here is my Makefile:
OBJS = \
	8d0.o 8d1.o 8d2.o \
	8c0.o 8c1.o 8c2.o \
	8r0.o 8r1.o 8r2.o \
	8u0.o 8u1.o 8u2.o \
	8v0.o 8v1.o 8v2.o \
	4d0.o 4d1.o 4d2.o \
	4c0.o 4c1.o 4c2.o \
	4r0.o 4r1.o 4r2.o \
	4u0.o 4u1.o 4u2.o \
	4v0.o 4v1.o 4v2.o \
	8sc.o 8sr.o 8mc.o 8mr.o \
	4sc.o 4sr.o 4mc.o 4mr.o \
	fftfreq.o djbfft2d.o /lib/libc.a

CFLAGS = -O1 -fomit-frame-pointer -malign-double
-mno-cygwin
djbfft.dll: $(OBJS)
	$(LD) -s --base-file fft.base --dll -o $(DLLNAME)
$(OBJS) $(LIBS) -e 'fftEntry@12'
	dlltool --as=$(AS) --dllname $(DLLNAME) --def fft.def
--base-file fft.base --output-exp fft.exp
	$(LD) -s --base-file fft.base fft.exp -dll -o
$(DLLNAME) $(OBJS) $(LIBS) -e 'fftEntry@12'
	dlltool --as=$(AS) --dllname $(DLLNAME) --def fft.def
--base-file fft.base --output-exp fft.exp
	$(LD) fft.exp --dll -o $(DLLNAME) $(OBJS) $(LIBS) -e
'fftEntry@12'
	dlltool --def fft.def --dllname $(DLLNAME)
--output-lib fft.lib



	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]