1 # Include makefile config
5 TGPERF
= common
/tokenize.gperf
6 TSRC
= common
/tokenize.c
7 THEAD
= common
/tokenize.h
8 TOBJ
= common
/tokenize.o
10 SRCS
= $(filter-out ${TSRC},$(wildcard *.c
) $(wildcard common
/*.c
) $(wildcard widgets
/*.c
)) ${TSRC}
11 HEADS
= $(filter-out ${THEAD},$(wildcard *.h
) $(wildcard common
/*.h
) $(wildcard widgets
/*.h
)) ${THEAD}
12 OBJS
= $(foreach obj
,$(SRCS
:.c
=.o
),$(obj
))
14 all: options newline luakit
17 @echo luakit build options
:
19 @echo
"CFLAGS = ${CFLAGS}"
20 @echo
"CPPFLAGS = ${CPPFLAGS}"
21 @echo
"LDFLAGS = ${LDFLAGS}"
22 @echo
"PREFIX = ${PREFIX}"
23 @echo
"MANPREFIX = ${MANPREFIX}"
24 @echo
"DESTDIR = ${DESTDIR}"
27 @echo
"SRCS = ${SRCS}"
28 @echo
"HEADS = ${HEADS}"
29 @echo
"OBJS = ${OBJS}"
32 ${TSRC} ${THEAD}: ${TGPERF}
33 .
/build-utils
/gperf.sh
$< $@
36 @echo
${CC} -c
$< -o
$@
37 @
${CC} -c
${CFLAGS} ${CPPFLAGS} $< -o
$@
40 ${OBJS}: ${HEADS} config.mk
43 @echo
${CC} -o
$@
${OBJS}
44 @
${CC} -o
$@
${OBJS} ${LDFLAGS}
47 rm -rf luakit
${OBJS} ${TSRC} ${THEAD}
53 .PHONY
: all clean options
install newline