Allow parallel make of netem directory.

Use HOSTCC when building local tools
This commit is contained in:
shemminger 2005-09-01 22:38:19 +00:00
parent 3d418dc38a
commit ce715cd94c
2 changed files with 16 additions and 13 deletions

View File

@ -1,10 +1,15 @@
2005-09-01 Stephen Hemminger <shemminger@dxpl.pdx.osdl.net> 2005-09-01 Mike Frysinger <vapier@gentoo.org>
* Fix build issues with netem tables (parallel make and HOSTCC)
2005-09-01 Stephen Hemminger <shemminger@osdl.org>
* Integrate support for DCCP into 'ss' (from acme) * Integrate support for DCCP into 'ss' (from acme)
* Add -batch option to ip. * Add -batch option to ip.
* Update to 2.6.14 headers * Update to 2.6.14 headers
2005-09-01 Eric Dumazet <dada1@cosmosbay.com> 2005-09-01 Eric Dumazet <dada1@cosmosbay.com>
* Fix lnstat : First column should not be summed * Fix lnstat : First column should not be summed
2005-08-16 Stephen Hemminger <shemminger@osdl.org> 2005-08-16 Stephen Hemminger <shemminger@osdl.org>

View File

@ -1,16 +1,19 @@
DISTGEN = maketable normal pareto paretonormal DISTGEN = maketable normal pareto paretonormal
DISTDATA = normal.dist pareto.dist paretonormal.dist experimental.dist DISTDATA = normal.dist pareto.dist paretonormal.dist experimental.dist
HOSTCC ?= $(CC)
LDLIBS += -lm LDLIBS += -lm
%.dist: %.c all: $(DISTGEN) $(DISTDATA)
$(HOSTCC) $(CFLAGS) -o $* $< -lm
$(DISTGEN):
$(HOSTCC) -Wall -O1 -I../include -o $@ $@.c -lm
%.dist: %
./$* > $@ ./$* > $@
%.dist: %.dat experimental.dist: maketable experimental.dat
./maketable $< >$@ ./maketable experimental.dat > experimental.dist
all: $(DISTGEN) $(DISTDATA)
install: all install: all
mkdir -p $(DESTDIR)/usr/lib/tc mkdir -p $(DESTDIR)/usr/lib/tc
@ -20,8 +23,3 @@ install: all
clean: clean:
rm -f $(DISTDATA) $(DISTGEN) rm -f $(DISTDATA) $(DISTGEN)
maketable: maketable.c
$(HOSTCC) $(CFLAGS) -o $@ $< -lm