blob: 0dcc37588bae138ee41e416abc6f4a224d9e8237 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
CC = gcc
CXX = g++
LD = ld
PACKAGE_VERSION = "1.99b"
PACKAGE = "SB2"
CFLAGS = -Wall -W -I$(TOPDIR)/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
TOPDIR = $(CURDIR)
LLBUILD = $(TOPDIR)/llbuild
MAKEFILES = Makefile $(LLBUILD)/Makefile.include
export CC CFLAGS MAKEFILES TOPDIR LLBUILD
subdirs = lua preload utils
targets = utils/sb2init utils/sb_gcc_wrapper
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 $(LLBUILD)/Makefile.include
|