# Global rules for building a Winelib program -*-Makefile-*- # # Each individual makefile should define the following variables: # MODULE : name of the main module being built # APPMODE : program mode (-mwindows,-mconsole) # EXTRALIBS : extra libraries to link in (optional) # EXTRADEFS : extra symbol definitions, like -DWINELIB (optional) # # plus all variables required by the global Make.rules.in # DLLFLAGS = @DLLFLAGS@ ALL_LIBS = $(DELAYIMPORTS:%=-l%) $(IMPORTS:%=-l%) $(EXTRALIBS) -lwine $(LIBPORT) $(LDFLAGS) $(LIBS) @MAKE_RULES@ all: $(MODULE)$(DLLEXT) $(MODULE)$(FAKEEXT) $(MODULE) $(MODULE).so $(MODULE).fake: $(OBJS) Makefile.in $(WINEGCC) $(APPMODE) $(OBJS) -o $@ $(ALL_LIBS) $(DELAYIMPORTS:%=-Wb,-d%) clean:: $(RM) $(MODULE)