Add some basic gtk notebook and window signal handlers & bug squashing
[luakit.git] / Makefile
blobef9712d7a5df6a3e53b42fde4381393795fe8200
1 # Include makefile config
2 include config.mk
4 # Token lib generation
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
16 options:
17 @echo luakit build options:
18 @echo "CC = ${CC}"
19 @echo "CFLAGS = ${CFLAGS}"
20 @echo "CPPFLAGS = ${CPPFLAGS}"
21 @echo "LDFLAGS = ${LDFLAGS}"
22 @echo "PREFIX = ${PREFIX}"
23 @echo "MANPREFIX = ${MANPREFIX}"
24 @echo "DESTDIR = ${DESTDIR}"
25 @echo
26 @echo build targets:
27 @echo "SRCS = ${SRCS}"
28 @echo "HEADS = ${HEADS}"
29 @echo "OBJS = ${OBJS}"
32 ${TSRC} ${THEAD}: ${TGPERF}
33 ./build-utils/gperf.sh $< $@
35 .c.o:
36 @echo ${CC} -c $< -o $@
37 @${CC} -c ${CFLAGS} ${CPPFLAGS} $< -o $@
40 ${OBJS}: ${HEADS} config.mk
42 luakit: ${OBJS}
43 @echo ${CC} -o $@ ${OBJS}
44 @${CC} -o $@ ${OBJS} ${LDFLAGS}
46 clean:
47 rm -rf luakit ${OBJS} ${TSRC} ${THEAD}
49 install:
50 @echo Are you insane?
52 newline:;@echo
53 .PHONY: all clean options install newline