# Gmake macros for building Windows 32-Bit apps include cygwin32.mak ifeq ($(NODEBUG),) DLLSTART=,-e,_DllMain@12 endif all: demo.exe # Update the object files if necessary demo.o: demo.c $(cc) $(cflags) $(cvarsdll) $(cdebug) demo.c select.o: select.c $(cc) $(cflags) $(cvarsdll) $(cdebug) select.c # Update the resources if necessary demo.res: demo.rc demo.h $(rc) $(rcvars) -r demo.rc # Update the import library select.a: select.o select.def $(implib) --machine $(CPU) \ --dllname $(basename $@).dll --output-exp $(basename $@).exp\ --output-lib $@ --def select.def # Update the dynamic link library select.dll: select.a $(link) $(linkdebug) $(dlllflags) \ -Wl,--image-base,0x1C000000$(DLLSTART) \ -oselect.dll \ select.exp select.o $(guilibsdll) # Update the executable file if necessary. # If so, add the resource back in. demo.exe: demo.o select.dll demo.res demo.def $(link) $(linkdebug) $(guiflags) -odemo.exe demo.o select.a $(guilibsdll) rsrc demo.res $@ ##################### reloc.dll ###################### #DLLNAME=select #EXENAME=demo #DOBJS=$(DLLNAME).o #EOBJS=$(EXENAME).o #ELIBS=$(DLLNAME).a #DLIBS= #.PHONY: reloc.dll #reloc.dll: $(DLLNAME).dll $(EXENAME).res #$(EXENAME).res: $(EXENAME).rc $(EXENAME).exe #$(EXENAME).exe: $(EOBJS) $(DLLNAME).dll #$(DLLNAME).dll: $(DLLNAME).exp #$(DLLNAME).exp: $(DLLNAME).base #$(DLLNAME).base: $(DOBJS)