summaryrefslogtreecommitdiff
path: root/llbuild/Makefile.sample
diff options
context:
space:
mode:
Diffstat (limited to 'llbuild/Makefile.sample')
-rw-r--r--llbuild/Makefile.sample46
1 files changed, 46 insertions, 0 deletions
diff --git a/llbuild/Makefile.sample b/llbuild/Makefile.sample
new file mode 100644
index 0000000..ad7ce88
--- /dev/null
+++ b/llbuild/Makefile.sample
@@ -0,0 +1,46 @@
+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 MAKEFILES TOPDIR
+
+obj-default = lua preload utils
+targets = utils/sb2init
+
+
+all: build
+
+configure: configure.ac
+ ./autogen.sh
+ ./configure
+
+build: configure
+ $(ll_toplevel_build)
+ @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
+
+
+CLEAN_FILES = $(targets)
+
+clean:
+ $(ll_clean)
+
+-include .config
+include $(TOPDIR)/llbuild/Makefile.include
+
+