nanogui: Microwindows cleanups .... some ideas


Previous by date: 20 Apr 2005 08:11:51 +0100 Re: Microwindows cleanups .... some ideas, Jordan Crouse
Next by date: 20 Apr 2005 08:11:51 +0100 convbmp big-endian bug?, Will Hua Zheng
Previous in thread: 20 Apr 2005 08:11:51 +0100 Re: Microwindows cleanups .... some ideas, Jordan Crouse
Next in thread: 20 Apr 2005 08:11:51 +0100 Re: Microwindows cleanups .... some ideas, Jachym Holecek

Subject: Re: [nanogui] Microwindows cleanups .... some ideas
From: ####@####.####
Date: 20 Apr 2005 08:11:51 +0100
Message-Id: <9466457.1113981108202.JavaMail.ngmail@webmail-01.arcor-online.net>

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

Previous by date: 20 Apr 2005 08:11:51 +0100 Re: Microwindows cleanups .... some ideas, Jordan Crouse
Next by date: 20 Apr 2005 08:11:51 +0100 convbmp big-endian bug?, Will Hua Zheng
Previous in thread: 20 Apr 2005 08:11:51 +0100 Re: Microwindows cleanups .... some ideas, Jordan Crouse
Next in thread: 20 Apr 2005 08:11:51 +0100 Re: Microwindows cleanups .... some ideas, Jachym Holecek


Powered by ezmlm-browse 0.20.