summaryrefslogtreecommitdiff
path: root/llbuild/Makefile.toplevel-sample
blob: 3ef9cefe965e6768bda97d3f1dde350b6ecbfc88 (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
# mandatory llbuild variables

TOPDIR = $(CURDIR)
LLBUILD = $(TOPDIR)/llbuild
MAKEFILES = Makefile $(LLBUILD)/Makefile.include

export TOPDIR LLBUILD MAKEFILES

# user customizable variables

CC = gcc
LD = ld
CFLAGS = -Wall -W -I$(TOPDIR)/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE


export CC CFLAGS LD

# define a shared C language binary target

bin-sample = main.o sample.o
extra_targets = bin-sample


all: build

configure: configure.ac
	./autogen.sh
	./configure

build: configure
	$(ll_toplevel_build)
	@echo Build completed successfully!

install: build
	install -d -m 755 $(prefix)/bin
	install -c -m 755 sample $(prefix)/bin/


CLEAN_FILES = $(extra_targets)

clean:
	$(ll_clean)

-include .config
include $(LLBUILD)/Makefile.include