From 1058def8e7827e56ce4a70afb4aeacb5dc44148f Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Fri, 3 May 2013 21:08:42 +0400 Subject: Imported Upstream version 4.2-build2006 --- phpmake/Makefile.php | 41 ++++++++++++++++++++++++++++++++++ phpmake/defaults.php | 0 phpmake/functions.php | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++ phpmake/library.php | 5 +++++ phpmake/version.php | 5 +++++ 5 files changed, 112 insertions(+) create mode 100644 phpmake/Makefile.php create mode 100644 phpmake/defaults.php create mode 100644 phpmake/functions.php create mode 100644 phpmake/library.php create mode 100644 phpmake/version.php (limited to 'phpmake') diff --git a/phpmake/Makefile.php b/phpmake/Makefile.php new file mode 100644 index 0000000..cd3d83a --- /dev/null +++ b/phpmake/Makefile.php @@ -0,0 +1,41 @@ + + +# Makefile for Open Sound System module main + +CC=cc -ffreestanding +HOSTCC=cc +CPLUSPLUS=g++ -fno-rtti -fno-exceptions -I. +OSFLAGS=-fno-common -fno-stack-protector -Wall -Werror -DOSS_LITTLE_ENDIAN +OS=Linux +ARCH=x86_64 +TOPDIR=. +OBJDIR=$(TOPDIR)/target/objects +TMPDIR=. +MODDIR=$(TOPDIR)/target/modules +BINDIR=$(TOPDIR)/target/bin +LIBDIR=$(TOPDIR)/target/lib +SBINDIR=$(TOPDIR)/target/sbin +OSSLIBDIR="/usr/lib/oss" +THISOS=kernel/OS/Linux +CFLAGS=-O +SUBDIRS=lib cmd kernel os_cmd kernel/OS/Linux +TARGETS=main +DEPDIR= + +include .makefile + +all: subdirs +lint: lint_subdirs + +dep: dep_subdirs + +include $(TOPDIR)/make.defs + +clean: clean_local clean_subdirs + + +include setup/Linux/make.local diff --git a/phpmake/defaults.php b/phpmake/defaults.php new file mode 100644 index 0000000..e69de29 diff --git a/phpmake/functions.php b/phpmake/functions.php new file mode 100644 index 0000000..ac99655 --- /dev/null +++ b/phpmake/functions.php @@ -0,0 +1,61 @@ + $@' . "\n"; + echo "\n"; + echo ".PHh.h:\n"; + echo "\t" . 'PHPMAKE_PROJECT=$(PHPMAKE_PROJECT) PHPMAKE_LIBPATH=$(PHPMAKE_LIBPATH) $(PHP) $< > $@' . "\n"; + echo "\n"; + echo ".PHinc.inc:\n"; + echo "\t" . 'PHPMAKE_PROJECT=$(PHPMAKE_PROJECT) PHPMAKE_LIBPATH=$(PHPMAKE_LIBPATH) $(PHP) $< > $@' . "\n"; + echo "\n"; + echo "# ** End of phpmake generated rules\n"; + echo "\n"; +} + +function phpmake_print_subdirs($subdirs) +{ + echo "SUBDIRS="; + + foreach($subdirs as $d) + { + echo $d . " "; + } + + echo "\t# Automatically generated by phpmake\n"; +} + +function phpmake_init_c() +{ + echo "// Generated by phpmake v" . PHPMAKE_VERSION . "\n"; + echo "// PHPMAKE_LIBPATH = " . getenv("PHPMAKE_LIBPATH") . "\n"; + echo "// Project = " . getenv("PHPMAKE_PROJECT") . "\n"; + echo "\n"; +} + +?> diff --git a/phpmake/library.php b/phpmake/library.php new file mode 100644 index 0000000..12f13cf --- /dev/null +++ b/phpmake/library.php @@ -0,0 +1,5 @@ + diff --git a/phpmake/version.php b/phpmake/version.php new file mode 100644 index 0000000..9326264 --- /dev/null +++ b/phpmake/version.php @@ -0,0 +1,5 @@ + -- cgit v1.2.3