Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1685 → Rev 1684

/shark/branches/xen/Rules.mk
File deleted
/shark/branches/xen/mk/App.mk
File deleted
/shark/branches/xen/Makefile
39,14 → 39,15
in-local:= $$(subst $$(srctree)/,,$$<)
out-local:= $$(subst install-,,$$(subst $$(objtree)/,,$$@))
in-objs:= $$(filter %.o,$$^)
in-objs-local:= $$(filter %.o,$$(subst $$(objtree)/,,$$^))
 
# The rule patterns, in quiet and in verbose form. The verbose form is
# used also for the actual command.
quiet_ar_cmd := ' AR\\t$(out-local)'
quiet_ar_cmd := ' AR\\t$(out-local) $(in-objs-local)'
ar_cmd := $(ar) cr $$@ $(in-objs)
 
quiet_cc_cmd := ' CC\\t$(in-local)'
cc_cmd := $(cc) $$(cflags-$$(<:.c=.o)) $$(cppflags-$$(<:.c=.o))\
cc_cmd := $(cc) $$(cflags-$$(<:.c=.o)) $$(cppflags-$$(<:.c=.o)) \
-c $$< -o $$@
 
quiet_as_cmd := ' AS\\t$(in-local)'
53,19 → 54,14
as_cmd := $(as) $$(aflags-$$(<:.s=.o)) -c $$< -o $$@
 
quiet_dep_cmd := ' DEP\\t$(in-local)'
dep_cmd := $(cc) $$(cflags-$$(<:.c=.o)) $$(cppflags-$$(<:.c=.o))\
dep_cmd := $(cc) $$(cflags-$$(<:.c=.o)) $$(cppflags-$$(<:.c=.o)) \
-M -MT \
"$$(subst $$(srctree),$$(objtree),$$(<:.c=.o))\
$$@" $$< > $$@ 2>/dev/null
 
quiet_ld-r_cmd := ' LD [R]\\t$(out-local)'
ld-r_cmd := $(ld) $$(ldflags-$$(dir $$@)) $$(ldflags-$$@)\
-r $(in-objs) -o $$@
quiet_ld-r_cmd := ' LD\\t$(out-local) $(in-objs-local)'
ld-r_cmd := $(ld) $$(ldflags-$$(dir $$@)) -r $(in-objs) -o $$@
 
quiet_ld_cmd := ' LD\\t$(out-local)'
ld_cmd := $(ld) $$(ldflags-$$(dir $$@)) $$(startup-$$@) $(in-objs)\
$$(ldflags-$$@) -o $$@
 
quiet_rm_cmd := ' RM\\t$$(subst clean-,,$$(subst distclean-,,$(out-local)))'
rm_cmd := -$(rm) $$(subst clean-,,$$(subst distclean-,,$$@))
 
82,16 → 78,10
endef
 
# Remove duplicate slashes, ../'s, trailing slashes and so on from paths.
clean-path=$(dir $(abspath $(1)))$(notdir $(abspath $(1)))
define clean-path
$(dir $(abspath $(1)))$(notdir $(abspath $(1)))
endef
 
# Canonicalize a path, converting .. and . $(1) is the current directory,
# and $(2) are the paths to be converted.
to-local-path=$(subst $(1)/,,$(abspath $(addprefix $(1)/,$(2))))
 
# Keep only paths in $(1) that start with ./ (i.e., that are relative to the
# current directory.)
keep-local=$(foreach p, $(1),$(if $(subst ./,,$(dir $(p))),,$(p)))
 
# Adjust the paths for all the prerequisites of a target. Given a list
# of objects, with relative or absolute path, figure out the right paths
# in the build directory. Leave the output in $(target-objs).
109,19 → 99,18
$$(call clean-path,$$(dir)))
endef
 
# Produce targets for a given library/application.
define libapp-templ
libapp:=$(1)
is-app:=$(strip $(2))
libapp-target:=$$(objdir)/$$(libapp)
# Produce targets for a given library.
define lib-templ
lib:=$(1)
lib-target:=$$(objdir)/$$(lib)
 
# Get a list of all the prerequisites needed to build the library/application.
# Get a list of all the prerequisites needed to build the library.
$$(eval $$(call all-prerequisites-templ,\
$$(patsubst %/,%/obj.o,$$($$(libapp)-objs))))
$$(patsubst %/,%/obj.o,$$($$(lib)-objs))))
 
$$(foreach flag,$(flags),$$(eval $$(call flags-per-target,$$(flag),$$(libapp))))
$$(foreach flag,$(flags),$$(eval $$(call flags-per-target,$$(flag),$$(lib))))
$$(foreach obj,$$(target-objs),\
$$(eval $$(call flags-per-objects,$$(obj),$$(libapp))))
$$(eval $$(call flags-per-objects,$$(obj),$$(lib))))
 
# Produce the real target, in $(objtree), and the user-friendly target,
# with a relative path to $(srctree). Note that even when the two trees
128,33 → 117,25
# are equal we define two targets; a possible optimization could be to
# use relative paths for the object tree in this case, but the code can
# become even less readable than it is now...
ifeq ($$(is-app),true)
startup-$$(libapp-target):= $$($$(libapp)-startup)
$$(libapp-target): $$(target-objs)
$(call cmd,ld)
else
$$(libapp-target): $$(target-objs)
$$(lib-target): $$(target-objs)
$(call cmd,ar)
endif
short-libapp-taget:=$$(subst $$(srctree)/,,$$(curdir)/$$(libapp))
.PHONY: $$(short-libapp-target)
$$(short-libapp-target): $$(libapp-target)
short-lib-taget:=$$(subst $$(srctree)/,,$$(curdir)/$$(lib))
.PHONY: $$(short-lib-target)
$$(short-lib-target): $$(lib-target)
 
# Update the $(subdirs) for $(curdir) and its target list.
subdirs+=$$(filter %/,$$($$(libapp)-objs))
curdir-targets+=$$(libapp-target)
subdirs+=$$(filter %/,$$($$(lib)-objs))
curdir-targets+=$$(lib-target)
 
.PHONY: clean-$$(libapp-target)
clean-$$(libapp-target):
.PHONY: clean-$$(lib-target)
clean-$$(lib-target):
$(call cmd,rm)
curdir-clean-targets+= clean-$$(libapp-target)
curdir-clean-targets+= clean-$$(lib-target)
 
ifneq ($$(is-app),true)
.PHONY: install-$$(libapp-target)
install-$$(libapp-target): $$(libapp-target)
.PHONY: install-$$(lib-target)
install-$$(lib-target): $$(lib-target)
$(call cmd,install)
curdir-install-targets+= install-$$(libapp-target)
endif
curdir-install-targets+= install-$$(lib-target)
endef
 
# Produce the needed code for a given object.
185,12 → 166,6
curdir-clean-targets+= clean-$$(obj-target)
curdir-distclean-targets+= distclean-$$(obj-dep)
 
ifneq ($$(filter $$(obj),$$(install-objs)),)
.PHONY: install-$$(obj-target)
install-$$(obj-target): $$(obj-target)
$(call cmd,install)
curdir-install-targets+= install-$$(obj-target)
endif
endef
 
# Handle the flags for the current directory. for each *FLAGS variable
239,14 → 214,12
target:=$(2)
 
$$(flag)-$$(curdir)/$$(target):=$$($$(flag)-$$(curdir)) \
$$($$(target)-$$(flag)) $$(extra-$$(flag)-$$(curdir)/$$(target))
$$($$(target)-$$(flag)) $$(extra-$$(flag)-$$(curdir)/$$(target))
 
ifneq ($$(target),install-objs)
# Those are the flags coming from the upper directories, they are set for
# obj.o targets, we must export them to our children, so we leave them here.
exported-$$(flag)-$$(curdir)/$$(target):= $$($$(target)-$$(flag)) \
$$(extra-$$(flag)-$$(curdir)/$$(target))
endif
$$(target)-$$(flag):=
endef
 
260,14 → 233,12
 
# The flags for a given object are the ones specified for its target
# plus any specific one.
$$(flag)-$$(curdir)/$$(this-obj):= $$($$(flag)-$$(curdir)/$$(target))\
$$(flag)-$$(curdir)/$$(this-obj):=$$($$(flag)-$$(curdir)/$$(target)) \
$$($$(this-obj)-$$(flag))
$$(this-obj)-$$(flag):=
 
ifeq ($(3),install-objs)
to-print+= [ $(2) $(3) ] RET
#to-print+= [ $$(flag)-$$(curdir)/$$(this-obj) = $$($$(flag)-$$(curdir)/$$(this-obj)) ] RET
endif
endif
# Pass the right flags to the subdirs we use to build $(target).
ifeq ($$(notdir $(2)),obj.o)
extra-$$(flag)-$(2):= $$(exported-$$(flag)-$$(curdir)/$$(target))
341,8 → 312,6
curdir-distclean-targets:=
curdir-install-targets:=
 
install-objs:=
 
# If the output directory does not exist every target that actually
# needs it will have to create it.
ifneq ($(objtree),$(srctree))
371,7 → 340,6
subdirs:=$$(filter %/, $$(targets))
objs:=$$(filter %.o, $$(targets))
libs:=$$(filter %.a, $$(targets))
apps:=$$(filter-out $$(subdirs) $$(objs) $$(libs),$$(targets))
 
$$(eval $$(call all-prerequisites-templ, $$(subdirs)))
subdir-targets:= $$(target-objs)
404,13 → 372,9
 
# Produce the needed targets for each library.
ifneq ($$(strip $$(libs)),)
$$(foreach lib,$$(libs),$$(eval $$(call libapp-templ,$$(lib),false)))
$$(foreach lib,$$(libs),$$(eval $$(call lib-templ,$$(lib))))
endif
 
ifneq ($$(strip $$(apps)),)
$$(foreach app,$$(apps),$$(eval $$(call libapp-templ,$$(app),true)))
endif
 
# Produce a target for each local object. Build the list of all the
# targets specified by the current subdir. It is given by all the local
# objects in $(targets) or in a library contained in it. Non-local
423,35 → 387,16
# First build a relative path for all the .o files in the targets (the
# default one and the library ones,) taking care of not being confused
# by relative directory specifications.
#all-local-objs-paths:=$$(subst $$(curdir)/,,\
# $$(abspath $$(addprefix $$(curdir)/,\
# $$(objs) $$(install-objs)\
# $$(foreach lib,$$(libs),$$(filter %.o,$$($$(lib)-objs)))\
# $$(foreach app,$$(apps),$$(filter %.o,$$($$(app)-objs))))))
all-local-objs-paths:=$$(call to-local-path,$$(curdir),\
$$(objs)\
$$(foreach lib,$$(libs),$$(filter %.o,$$($$(lib)-objs)))\
$$(foreach app,$$(apps),$$(filter %.o,$$($$(app)-objs))))
all-local-objs-paths:=$$(subst $$(curdir)/,,\
$$(abspath $$(addprefix $$(curdir)/,\
$$(objs) $$(foreach lib,$$(libs),$$(filter %.o,$$($$(lib)-objs))))))
 
all-local-install-objs-paths:=$$(call to-local-path,$$(curdir),\
$$(install-objs))
 
# Then keep only those with a dir equal to ./ A local object is not
# allowed to be specified with a path specifying a directory different
# from the current one. Objects to be installed are only taken into
# account if they're local to the current directory.
#all-local-objs:=$$(foreach obj, $$(all-local-objs-paths),\
# $$(if $$(subst ./,,$$(dir $$(obj))),,$$(obj)))
all-local-install-objs:=$$(call keep-local,$$(all-local-install-objs-paths))
all-local-objs:=$$(call keep-local,$$(all-local-objs-paths))\
$$(all-local-install-objs)
# from the current one.
all-local-objs:=$$(foreach obj, $$(all-local-objs-paths), \
$$(if $$(subst ./,,$$(dir $$(obj))),,$$(obj)))
 
$$(eval $$(call all-prerequisites-templ,$$(all-local-install-objs)))
$$(foreach flag,$(flags),\
$$(eval $$(call flags-per-target,$$(flag),install-objs)))
$$(foreach obj,$$(target-objs),\
$$(eval $$(call flags-per-objects,$$(obj),install-objs)))
 
# Produce one target per object, and the rules to build them along with
# their dependencies.
ifneq ($$(strip $$(all-local-objs)),)
507,11 → 452,57
 
.DEFAULT_GOAL:= all
 
include shark.cfg
 
installdir:=$(objtree)/.lib
 
# Include all the Shark specific configuration...
include $(if $(S),$(S)/)Rules.mk
# Handle Shark configuration. Really insane, indeed.
options:=TSC APIC BIOS TRACER FG FB COMPILER
define strip-in-place
$(1):=$(strip $($(1)))
endef
$(foreach cfgopt,$(options),$(eval $(call strip-in-place,$(cfgopt))))
 
cpp-tsc-TRUE:= -D__TSC__
cpp-apic-TRUE:= -D__APIC__
cpp-bios-VM86:= -DVM86
cpp-tracer-NEW:= -D__NEW_TRACER__
cpp-tracer-OLD:= -D__OLD_TRACER__
cpp-fg-FORCE_PXC:= -D__FORCE_PXC__
cpp-fb-VESA:= -DCONFIG_FB_VESA -DCONFIG_LOGO
cpp-fb-FINDPCI:= -DCONFIG_FB_RIVA -DCONFIG_FB_RADEON -DCONFIG_FB_MATROX \
-DCONFIG_LOGO -DCONFIG_FB_MATROX_G100 \
-DCONFIG_FB_MATROX_MILLENIUM -DCONFIG_FB_MATROX_MYSTIQUE
cpp-fb-VGA16:= -DCONFIG_FB_VGA16
 
include-dirs:= \
-I$(srctree)/include -I$(srctree)/modules \
-I$(srctree)/arch/$(ARCH)/include/arch \
-I$(srctree)/libc/arch/$(ARCH)/include \
-I$(srctree)/tracer/include
 
config:= -D__LINUX__ \
$(cpp-tsc-$(TSC)) $(cpp-apic-$(APIC)) $(cpp-bios-$(BIOS)) \
$(cpp-tracer-$(TRACER)) $(cpp-fg-$(FG)) $(cpp-fb-$(FB))
 
exported-cppflags:= $(include-dirs) $(config)
exported-aflags:= -x assembler-with-cpp $(include-dirs) $(config)
 
cc-compiler-GCC4:= -Wimplicit-function-declaration -Wno-attributes \
-Wno-pointer-sign -Wall -O -fno-builtin -nostdinc \
-minline-all-stringops -fno-stack-protector
cc-compiler-GCC3:= -Wimplicit-function-declaration -Wall -O \
-fno-builtin -nostdinc -minline-all-stringops
cc-compiler-DJGPP:= -Wimplicit-function-declaration -Wall -O \
-fno-builtin -nostdinc -minline-all-stringops
 
exported-cflags:= $(cc-compiler-$(COMPILER))
 
fs-YES:= fs/
 
targets:= libgkern.a drivers/ libc/ ports/ tracer/ $(fs-$(SHARK_FS))
libgkern.a-objs:= arch/$(ARCH)/ kernel/ modules/
 
# Let the good times roll...
$(eval $(call recurse-templ,$(srctree)))
 
/shark/branches/xen/arch/x86/Makefile
1,36 → 1,30
targets:= \
abort.o \
advtimer.o \
cxsw-2.o \
init.o \
time.o \
aspace.o \
ccpu.o \
cpu2.o \
ctx.o \
cxsw-2.o \
ctxsw.o \
intevt.o \
event.o \
event1.o \
exc.o \
fpu.o \
idtinit.o \
init.o \
intevt.o \
irq.o \
mem.o \
time.o \
advtimer.o \
abort.o \
timeint.o \
vm86.o \
libx0.a \
xinfo.o \
x1.o \
xbios.o \
xsystab.o \
xconv.o \
xdosf.o \
xdosm.o \
xinfo.o \
xsystab.o \
ccpu.o \
fpu.o \
irq.o \
ctxsw.o \
xinit.o \
xsys0.o
idtinit.o \
vm86.o \
xbios.o
 
install-objs:= x0.o
libx0.a-objs:= x0.o
 
aflags+= -D__VIRCSW__
cppflags+= -I$(srctree)/libc/arch/$(ARCH)/include -D__VIRCSW__
 
cppflags+= -I$(srctree)/libc/arch/$(ARCH)/include
/shark/branches/xen/libc/arch/x86/libm/msun/src/Makefile
1,139 → 1,166
targets:= \
e_acosf.o \
e_acosh.o \
e_acoshf.o \
e_asinf.o \
e_atan2f.o \
e_atanh.o \
e_atanhf.o \
e_cosh.o \
e_coshf.o \
e_expf.o \
e_fmod.o \
e_fmodf.o \
e_gamf1.o \
e_gamma.o \
e_gamma_.o \
e_gammaf.o \
e_hypot.o \
e_hypotf.o \
e_j0.o \
e_j0f.o \
e_j1.o \
e_j1f.o \
e_jn.o \
e_jnf.o \
e_lgam1.o \
e_lgam2.o \
e_lgam3.o \
e_lgamma.o \
e_log10f.o \
e_logf.o \
e_pow.o \
e_powf.o \
e_rem1.o \
e_rem2.o \
e_rem_pi.o \
e_scalbf.o \
e_sinh.o \
e_sinhf.o \
e_sqrtf.o \
k_cos.o \
k_cosf.o \
k_rem1.o \
k_rem_pi.o \
k_sin.o \
k_sinf.o \
k_standa.o \
k_tan.o \
k_tanf.o \
s_asinh.o \
s_asinhf.o \
s_atanf.o \
s_cbrt.o \
s_cbrtf.o \
s_ceilf.o \
s_copy1.o \
s_cosf.o \
s_erf.o \
s_erff.o \
s_expm1.o \
s_expm1f.o \
s_fabs.o \
s_fabsf.o \
s_fini1.o \
s_floorf.o \
s_frexp.o \
s_frexpf.o \
s_ilogbf.o \
s_isnan.o \
s_isnanf.o \
s_ldexp.o \
s_ldexpf.o \
s_lib_ve.o \
s_log1pf.o \
s_logbf.o \
s_mather.o \
s_modf.o \
s_modff.o \
s_next1.o \
s_nextaf.o \
s_rintf.o \
s_scal1.o \
s_sign1.o \
s_signga.o \
s_sinf.o \
s_tanf.o \
s_tanh.o \
s_tanhf.o \
w_acos.o \
w_acosf.o \
w_acosh.o \
w_acoshf.o \
w_asin.o \
w_asinf.o \
w_atan2.o \
w_atan2f.o \
w_atanh.o \
w_atanhf.o \
w_cabs.o \
w_cabsf.o \
w_cosh.o \
w_coshf.o \
w_drem.o \
w_dremf.o \
w_exp.o \
w_expf.o \
w_fmod.o \
w_fmodf.o \
w_gamf1.o \
w_gamma.o \
w_gamma_.o \
w_gammaf.o \
w_hypot.o \
w_hypotf.o \
w_j0.o \
w_j0f.o \
w_j1.o \
w_j1f.o \
w_jn.o \
w_jnf.o \
w_lgam1.o \
w_lgam2.o \
w_lgam3.o \
w_lgamma.o \
w_log.o \
w_log10.o \
w_log10f.o \
w_logf.o \
w_pow.o \
w_powf.o \
w_rem1.o \
w_remain.o \
w_scalb.o \
w_scalbf.o \
w_sinh.o \
w_sinhf.o \
w_sqrt.o \
w_sqrtf.o
targets:=$(addsuffix .o,$(filter-out $(patsubst %.s,%,$(wildcard ../*.s)), \
$(patsubst %.c,%,$(wildcard *.c))))
 
#
# \
# e_acos.o \
# e_acosf.o \
# e_acosh.o \
# e_acoshf.o \
# e_asin.o \
# e_asinf.o \
# e_atan2.o \
# e_atan2f.o \
# e_atanh.o \
# e_atanhf.o \
# e_cosh.o \
# e_coshf.o \
# e_exp.o \
# e_expf.o \
# e_fmod.o \
# e_fmodf.o \
# e_gamf1.o \
# e_gamma.o \
# e_gamma_.o \
# e_gammaf.o \
# e_hypot.o \
# e_hypotf.o \
# e_j0.o \
# e_j0f.o \
# e_j1.o \
# e_j1f.o \
# e_jn.o \
# e_jnf.o \
# e_lgam1.o \
# e_lgam2.o \
# e_lgam3.o \
# e_lgamma.o \
# e_log.o \
# e_log10.o \
# e_log10f.o \
# e_logf.o \
# e_pow.o \
# e_powf.o \
# e_rem1.o \
# e_rem2.o \
# e_rem_pi.o \
# e_remain.o \
# e_scalb.o \
# e_scalbf.o \
# e_sinh.o \
# e_sinhf.o \
# e_sqrt.o \
# e_sqrtf.o \
# k_cos.o \
# k_cosf.o \
# k_rem1.o \
# k_rem_pi.o \
# k_sin.o \
# k_sinf.o \
# k_standa.o \
# k_tan.o \
# k_tanf.o \
# s_asinh.o \
# s_asinhf.o \
# s_atan.o \
# s_atanf.o \
# s_cbrt.o \
# s_cbrtf.o \
# s_ceil.o \
# s_ceilf.o \
# s_copy1.o \
# s_copysi.o \
# s_cos.o \
# s_cosf.o \
# s_erf.o \
# s_erff.o \
# s_expm1.o \
# s_expm1f.o \
# s_fabs.o \
# s_fabsf.o \
# s_fini1.o \
# s_finite.o \
# s_floor.o \
# s_floorf.o \
# s_frexp.o \
# s_frexpf.o \
# s_ilogb.o \
# s_ilogbf.o \
# s_isnan.o \
# s_isnanf.o \
# s_ldexp.o \
# s_ldexpf.o \
# s_lib_ve.o \
# s_log1p.o \
# s_log1pf.o \
# s_logb.o \
# s_logbf.o \
# s_mather.o \
# s_modf.o \
# s_modff.o \
# s_next1.o \
# s_nextaf.o \
# s_rint.o \
# s_rintf.o \
# s_scal1.o \
# s_scalbn.o \
# s_sign1.o \
# s_signga.o \
# s_signif.o \
# s_sin.o \
# s_sinf.o \
# s_tan.o \
# s_tanf.o \
# s_tanh.o \
# s_tanhf.o \
# w_acos.o \
# w_acosf.o \
# w_acosh.o \
# w_acoshf.o \
# w_asin.o \
# w_asinf.o \
# w_atan2.o \
# w_atan2f.o \
# w_atanh.o \
# w_atanhf.o \
# w_cabs.o \
# w_cabsf.o \
# w_cosh.o \
# w_coshf.o \
# w_drem.o \
# w_dremf.o \
# w_exp.o \
# w_expf.o \
# w_fmod.o \
# w_fmodf.o \
# w_gamf1.o \
# w_gamma.o \
# w_gamma_.o \
# w_gammaf.o \
# w_hypot.o \
# w_hypotf.o \
# w_j0.o \
# w_j0f.o \
# w_j1.o \
# w_j1f.o \
# w_jn.o \
# w_jnf.o \
# w_lgam1.o \
# w_lgam2.o \
# w_lgam3.o \
# w_lgamma.o \
# w_log.o \
# w_log10.o \
# w_log10f.o \
# w_logf.o \
# w_pow.o \
# w_powf.o \
# w_rem1.o \
# w_remain.o \
# w_scalb.o \
# w_scalbf.o \
# w_sinh.o \
# w_sinhf.o \
# w_sqrt.o \
# w_sqrtf.o
#
/shark/branches/xen/libc/arch/x86/libm/msun/i387/Makefile
3,6 → 3,7
e_asin.o \
e_atan2.o \
e_exp.o \
e_fmod.o \
e_log.o \
e_log10.o \
e_remain.o \
/shark/branches/xen/libc/arch/x86/libm/machine/Makefile
1,2 → 1,2
targets:= stub.o
targets:= infinity.o
 
/shark/branches/xen/libc/arch/x86/stdlib/Makefile
3,5 → 3,7
stdlib.o \
strtod.o \
strtoi.o \
strtou.o
strtol.o \
strtou.o \
strtoul.o
 
/shark/branches/xen/libc/arch/x86/Makefile
1,4 → 1,4
targets:= reboot.o ioformat/ libm/ stdlib/ string/
targets:= modf.o reboot.o ioformat/ libm/ stdlib/ string/
 
exported-aflags:= -I.
exported-cppflags:= -I.
/shark/branches/xen/libc/utsname/Makefile
1,2 → 1,2
targets:= utsname.o
targets:= utsname.c
 
/shark/branches/xen/libc/libio/Makefile
12,5 → 12,5
umask.o \
unlink.o \
wrappers.o \
write.o
write.c
 
/shark/branches/xen/kernel/Makefile
1,31 → 1,30
targets:= \
activate.o \
assert.o \
blkact.o \
cancel.o \
conditio.o \
event.o \
exchand.o \
grpcreat.o \
jet.o \
join.o \
kern.o \
keys.o \
kill.o \
init.o \
int_sem.o \
mem/ \
mem.o \
mqueue.o \
mutex.o \
nanoslp.o \
panic.o \
printk.o \
perror.o \
pthread.o \
iqueue.o \
signal.o \
time.o \
tpreempt.o \
assert.o \
blkact.o \
cancel.o \
conditio.o \
event.o \
exchand.o \
grpcreat.o \
jet.o \
join.o \
kern.o \
keys.o \
kill.o \
init.o \
int_sem.o \
mem.o \
mqueue.o \
mutex.o \
nanoslp.o \
panic.o \
printk.o \
perror.o \
pthread.o \
iqueue.o \
signal.o \
time.o \
tpreempt.o \
tskmsg.o
 
/shark/branches/xen/kernel/mem/Makefile
1,17 → 1,34
targets:= \
addfree.o \
addregio.o \
alloc.o \
alloc_al.o \
alloc_ge.o \
alloc_pa.o \
avail.o \
avail_in.o \
dump.o \
findfree.o \
free.o \
freepage.o \
init.o \
removefr.o \
stats.o
# The List-based Memory Manager (from OSKit!)
 
ifndef BASE
BASE=../..
endif
 
include $(BASE)/config/config.mk
 
LIBRARY = mem
 
OBJS_PATH = $(BASE)/kernel/mem
 
#
# Object files
#
 
OBJS = addfree.o \
addregio.o \
alloc.o \
alloc_al.o \
alloc_ge.o \
alloc_pa.o \
avail.o \
avail_in.o \
dump.o \
findfree.o \
free.o \
freepage.o \
init.o \
removefr.o \
stats.o
 
include $(BASE)/config/lib.mk
 
/shark/branches/xen/ports/mesa/src-glut.dos/Makefile
1,18 → 1,21
targets:= libglut.a
# The Frame Buffer Device
 
libglut.a-objs:= \
bitmap.o \
color.o \
globals.o \
models.o \
teapot.o \
window.o \
callback.o \
init.o \
menu.o \
overlay.o \
state.o
ifndef BASE
BASE=../../..
endif
 
cppflags+= -I$(srctree)/drivers/linuxc26/include -I$(curdir)/../include \
-I$(curdir) -I$(curdir)/../
include $(BASE)/config/config.mk
 
LIBRARY = glut
 
OBJS_PATH = $(BASE)/ports/mesa/src-glut.dos/
 
GLUT = bitmap.o color.o globals.o models.o teapot.o\
window.o callback.o init.o menu.o overlay.o state.o
 
OBJS = $(GLUT)
 
C_OPT += -I../../../drivers/linuxc26/include -I../include -I. -I..
 
include $(BASE)/config/lib.mk
 
/shark/branches/xen/ports/mesa/src/Makefile
1,71 → 1,50
targets:= libosmesa.a
# The Frame Buffer Device
 
libosmesa.a-objs:= \
accum.o \
api_arrayelt.o \
api_eval.o \
api_loopback.o \
api_noop.o \
api_validate.o \
attrib.o \
blend.o \
buffers.o \
clip.o \
colortab.o \
context.o \
convolve.o \
debug.o \
depth.o \
dispatch.o \
dlist.o \
drawpix.o \
enable.o \
enums.o \
eval.o \
extensions.o \
feedback.o \
fog.o \
get.o \
glapi.o \
glthread.o \
hash.o \
hint.o \
histogram.o \
image.o \
light.o \
lines.o \
matrix.o \
mmath.o \
pixel.o \
points.o \
polygon.o \
rastpos.o \
state.o \
stencil.o \
texcompress.o \
texformat.o \
teximage.o \
texobj.o \
texstate.o \
texstore.o \
texutil.o \
varray.o \
vpexec.o \
vpparse.o \
vpstate.o \
vtxfmt.o \
array_cache/ \
swrast/ \
swrastst/ \
tnl/ \
math/ \
x86/ \
osmesa/ \
imports.o
ifndef BASE
BASE=../../..
endif
 
exported-aflags:= -I$(srctree)/drivers/linuxc26/include/asm \
-I$(srctree)/ports/mesa/include
include $(BASE)/config/config.mk
 
exported-cppflags:= -I$(srctree)/drivers/linuxc26/include \
-I$(srctree)/ports/mesa/include -I$(srctree)/ports/mesa/src
LIBRARY = osmesa
 
OBJS_PATH = $(BASE)/ports/mesa/src/
 
OSMESA = accum.o api_arrayelt.o api_eval.o api_loopback.o api_noop.o api_validate.o\
attrib.o blend.o buffers.o clip.o colortab.o context.o convolve.o\
debug.o depth.o dispatch.o dlist.o drawpix.o enable.o enums.o eval.o\
extensions.o feedback.o fog.o get.o glapi.o glthread.o hash.o hint.o\
histogram.o image.o light.o lines.o matrix.o mmath.o pixel.o\
points.o polygon.o rastpos.o state.o stencil.o texcompress.o texformat.o\
teximage.o texobj.o texstate.o texstore.o texutil.o varray.o vpexec.o\
vpparse.o vpstate.o vtxfmt.o ./array_cache/ac_context.o\
./array_cache/ac_import.o ./swrast/s_aaline.o ./swrast/s_aatriangle.o\
./swrast/s_accum.o ./swrast/s_alphabuf.o ./swrast/s_alpha.o ./swrast/s_bitmap.o\
./swrast/s_blend.o ./swrast/s_buffers.o ./swrast/s_context.o ./swrast/s_copypix.o\
./swrast/s_depth.o ./swrast/s_drawpix.o ./swrast/s_feedback.o ./swrast/s_fog.o\
./swrast/s_histogram.o ./swrast/s_imaging.o ./swrast/s_lines.o ./swrast/s_logic.o\
./swrast/s_masking.o ./swrast/s_pixeltex.o ./swrast/s_points.o ./swrast/s_readpix.o\
./swrast/s_span.o ./swrast/s_stencil.o ./swrast/s_texstore.o ./swrast/s_texture.o\
./swrast/s_triangle.o ./swrast/s_zoom.o ./swrastst/ss_context.o\
./swrastst/ss_triangle.o ./swrastst/ss_vb.o ./tnl/t_array_api.o\
./tnl/t_import_array.o ./tnl/t_context.o ./tnl/t_eval_api.o ./tnl/t_imm_alloc.o\
./tnl/t_imm_api.o ./tnl/t_imm_debug.o ./tnl/t_imm_dlist.o ./tnl/t_imm_elt.o\
./tnl/t_imm_eval.o ./tnl/t_imm_exec.o ./tnl/t_imm_fixup.o ./tnl/t_pipeline.o\
./tnl/t_vb_fog.o ./tnl/t_vb_light.o\
./tnl/t_vb_normals.o ./tnl/t_vb_points.o ./tnl/t_vb_program.o ./tnl/t_vb_render.o\
./tnl/t_vb_gentex.o ./tnl/t_vb_texmat.o ./tnl/t_vb_vertex.o\
./math/m_clip_debug.o ./math/m_norm_debug.o\
./math/m_xform_debug.o ./math/m_eval.o ./math/m_matrix.o ./math/m_translate.o\
./math/m_vector.o ./math/m_xform.o\
./x86/asm_common_x86.o ./x86/common_x86.o ./x86/glapi_x86.o\
./x86/mmx_blend.o ./x86/x86.o ./x86/x86_cliptest.o ./x86/xform2_x86.o\
./x86/xform3_x86.o ./x86/xform4_x86.o ./osmesa/osmesa.o imports.o \
OBJS = $(OSMESA)
 
C_OPT += -I../../../drivers/linuxc26/include -I../include -I. -I..
 
ASM_OPT += -I../../../drivers/linuxc26/include/asm -I../include -I. -I..
 
include $(BASE)/config/lib.mk
 
/shark/branches/xen/ports/mesa/src/swrastst/Makefile
File deleted
/shark/branches/xen/ports/mesa/src/osmesa/Makefile
File deleted
/shark/branches/xen/ports/mesa/src/tnl/Makefile
File deleted
/shark/branches/xen/ports/mesa/src/swrast/Makefile
File deleted
/shark/branches/xen/ports/mesa/src/x86/Makefile
File deleted
/shark/branches/xen/ports/mesa/src/math/Makefile
File deleted
/shark/branches/xen/ports/mesa/src/array_cache/Makefile
File deleted
/shark/branches/xen/ports/mesa/src-glu/Makefile
1,18 → 1,21
targets:= libglu.a
# The Frame Buffer Device
 
libglu.a-objs:= \
glu.o \
mipmap.o \
nurbs.o \
nurbsutl.o \
project.o \
tess.o \
nurbscrv.o \
nurbssrf.o \
polytest.o \
quadric.o \
tesselat.o
ifndef BASE
BASE=../../..
endif
 
cppflags+= -I$(srctree)/drivers/linuxc26/include -I$(curdir)/../include \
-I$(curdir) -I$(curdir)/../
include $(BASE)/config/config.mk
 
LIBRARY = glu
 
OBJS_PATH = $(BASE)/ports/mesa/src-glu/
 
GLU = glu.o mipmap.o nurbs.o nurbsutl.o project.o tess.o\
nurbscrv.o nurbssrf.o polytest.o quadric.o tesselat.o
 
OBJS = $(GLU)
 
C_OPT += -I../../../drivers/linuxc26/include -I../include -I. -I..
 
include $(BASE)/config/lib.mk
 
/shark/branches/xen/ports/mesa/Makefile
1,5 → 1,43
targets:= \
src/ \
src-glu/ \
src-glut.dos/
 
dirs := $(filter-out CVS cvs makefile readme include, $(wildcard *))
p_all := $(addprefix prefixall_, $(dirs))
p_install := $(addprefix prefixinstall_, $(dirs))
p_clean := $(addprefix prefixclean_, $(dirs))
pcleanall := $(addprefix prefixcleanall_, $(dirs))
pdepend := $(addprefix prefixdepend_, $(dirs))
 
 
.PHONY: all install clean cleanall depend
 
install: $(p_install)
 
all: $(p_all)
 
clean: $(p_clean)
 
cleanall: $(p_cleanall)
 
depend: $(pdepend)
 
prefixinstall_%:
make -C $* install
 
prefixall_%:
make -C $* all
 
prefixclean_%:
make -C $* clean
 
prefixcleanall_%:
make -C $* cleanall
 
prefixdepend_%:
make -C $* depend
 
 
 
 
 
 
 
 
/shark/branches/xen/ports/tftp/Makefile
1,6 → 1,20
targets:= libtftp.a
# TFTP
 
libtftp.a-objs:= tftp.o endn.o
ifndef BASE
BASE=../..
endif
 
cppflags+= -I$(srctree)/ports/tftp/include -I$(srctree)/drivers/net/include/
include $(BASE)/config/config.mk
 
LIBRARY = tftp
 
OBJS_PATH = $(BASE)/ports/tftp
 
OBJS = tftp.o endn.o
 
OTHERINCL += -I$(BASE)/ports/tftp/include -I$(BASE)/drivers/net/include/
 
include $(BASE)/config/lib.mk
 
clean::
rm -f *.o
/shark/branches/xen/ports/Makefile
1,2 → 1,0
targets:= mesa/ servo/ tftp/
 
targets:=
/shark/branches/xen/ports/servo/Makefile
1,6 → 1,20
targets:= libservo.a
# Servo Control
 
libservo.a-objs:= servo.o
ifndef BASE
BASE=../..
endif
 
cppflags+= -I$(curdir)/include -I$(curdir) -I$(srctree)/drivers/serial/include
include $(BASE)/config/config.mk
 
LIBRARY = servo
 
OBJS_PATH = $(BASE)/ports/servo
 
SERVO = servo.o
 
OBJS = $(SERVO)
 
C_OPT += -I./include -I. -I$(BASE)/drivers/serial/include
 
include $(BASE)/config/lib.mk
 
/shark/branches/xen/drivers/pci6025e/Makefile
1,6 → 1,6
targets:= lib6025e.a
 
lib6025e.a-objs:= \
lib6026e.a-objs:= \
pci6025e.o \
tim/ \
dac/ \