blob: ad7ce8860dc3ad279d83fdf401ec017cad9433f3 (
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
|
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
|