diff options
author | Lauri Leukkunen <lle@rahina.org> | 2007-01-03 00:04:05 +0200 |
---|---|---|
committer | Lauri Leukkunen <lleukkun@leka.rahina.org> | 2007-01-03 00:04:05 +0200 |
commit | f43ab35f21e35deaae84df482330f9a6ccf393a7 (patch) | |
tree | 84273c83fb3838b588e023adabe64a97e36353ed /llbuild/Makefile.toplevel-sample | |
parent | 8206fdf74e5dabdda5a2ac45dc5e50a2461cdf77 (diff) |
* update llbuild build system to new non-recursive version
Diffstat (limited to 'llbuild/Makefile.toplevel-sample')
-rw-r--r-- | llbuild/Makefile.toplevel-sample | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/llbuild/Makefile.toplevel-sample b/llbuild/Makefile.toplevel-sample index ad7ce88..3ef9cef 100644 --- a/llbuild/Makefile.toplevel-sample +++ b/llbuild/Makefile.toplevel-sample @@ -1,17 +1,24 @@ +# mandatory llbuild variables + +TOPDIR = $(CURDIR) +LLBUILD = $(TOPDIR)/llbuild +MAKEFILES = Makefile $(LLBUILD)/Makefile.include + +export TOPDIR LLBUILD MAKEFILES + +# user customizable variables + CC = gcc LD = ld -PACKAGE_VERSION = "1.99b" -PACKAGE = "SB2" CFLAGS = -Wall -W -I$(TOPDIR)/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -TOPDIR = $(CURDIR) -MAKEFILES = Makefile $(TOPDIR)/llbuild/Makefile.include +export CC CFLAGS LD -export CC CFLAGS MAKEFILES TOPDIR +# define a shared C language binary target -obj-default = lua preload utils -targets = utils/sb2init +bin-sample = main.o sample.o +extra_targets = bin-sample all: build @@ -25,22 +32,16 @@ build: configure @echo Build completed successfully! install: build - install -d -m 755 $(prefix)/scratchbox/bin - install -d -m 755 $(prefix)/scratchbox/lib - install -d -m 755 $(prefix)/scratchbox/redir_scripts - install -c -m 755 preload/libsb2.so $(prefix)/scratchbox/lib/libsb2.so - install -c -m 755 utils/sb2init $(prefix)/scratchbox/bin/sb2init - install -c -m 755 scripts/login.sh $(prefix)/login.sh - install -c -m 755 scripts/sb2rc $(prefix)/scratchbox/sb2rc - install -c -m 644 redir_scripts/main.lua $(prefix)/scratchbox/redir_scripts/main.lua + install -d -m 755 $(prefix)/bin + install -c -m 755 sample $(prefix)/bin/ -CLEAN_FILES = $(targets) +CLEAN_FILES = $(extra_targets) clean: $(ll_clean) -include .config -include $(TOPDIR)/llbuild/Makefile.include +include $(LLBUILD)/Makefile.include |