Date: Wed, 20 Apr 2005 09:11:48 +0200 (CEST) From: skoe@nexgo.de Subject: Re: [nanogui] Microwindows cleanups .... some ideas Hi, > Perhaps a more interesting project > would be to make NanoX build in separate objdirs? You can do it, see below. That's a part from our upper level makefile. The variables MW_DIR_BIN, MW_DIR_LIB, MW_DIR_OBJ and others can be set when calling make nano-X. Below they are set depending on the chosen platform (e.g. "pc") and depending on variables of our environment (e.g. BINUNSTRDIR). The nano-X config-file is also used depending on the PLATFORM. As you can see the full path problem of libz and libpng is "solved" in an ugly way... ===8<===================================8<=== MW_TARGETS = $(BINUNSTRDIR)/nano-X-wlanpp-$(PLATFORM) # Diese Libraries muessen mit vollem Namen gesetzt werden. Da wir hier nicht # wissen, ob die statische oder shared Version vorliegt, sehen wir einfach # nach LIBZ = $(shell ls $(LIBUNSTRDIR)/libz.{a,so}) LIBPNG = $(shell ls $(LIBUNSTRDIR)/libpng.{a,so}) ################################################################################ # targets ################################################################################ .PHONY: all clean $(MW_TARGETS) all: $(MW_TARGETS) clean: # Objects are at a central place echo "clean: nothing to do here" $(MW_TARGETS) : echo 'making microwindows $@ ...' echo libz: $(LIBZ) $(MAKE) CONFIG=$(MWSRCDIR)/Configs/config.winfinity-$(notdir $@) \ MW_DIR_BIN=$(OBJDIR)/$(SUBDIR)/$(MODULE)/$(notdir $@)/bin \ MW_DIR_LIB=$(LIBUNSTRDIR) \ LIBZ=$(LIBZ) SHAREDLIBS=$(SHAREDLIBS) \ MW_DIR_OBJ=$(OBJDIR)/$(SUBDIR)/$(MODULE)/$(notdir $@) \ INCLUDEDIRS="$(INCLUDE) -I. -I$(MWSRCDIR)/include" -C $(MWSRCDIR) cp -f $(OBJDIR)/$(SUBDIR)/$(MODULE)/$(notdir $@)/bin/nano-X $@ $(STRIP) -o $(BINDIR)/$(notdir $@) $@ ===8<===================================8<=== Thomas Machen Sie aus 14 Cent spielend bis zu 100 Euro! Die neue Gaming-Area von Arcor - über 50 Onlinespiele im Angebot. http://www.arcor.de/rd/emf-gaming-1 --------------------------------------------------------------------- To unsubscribe, e-mail: nanogui-unsubscribe@linuxhacker.org For additional commands, e-mail: nanogui-help@linuxhacker.org