English Language flag
// Log In
// CVSweb
Project: FreeWRT
// Summary // Activity // Search // Tracker // Lists // News // SCM // Wiki

SCM Repository

ViewVC logotype

Contents of /branches/common-nfo/tools/nfotiser/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3442 - (show annotations) (download)
Wed Aug 8 12:39:17 2007 UTC (6 years, 6 months ago) by tg
File size: 1559 byte(s)
allow ISO C99 and GCC constructs

1 # $FreeWRT$
2 #-
3 # This file is part of the FreeWRT project. FreeWRT is copyrighted
4 # material, please see the LICENCE file in the top-level directory
5 # or at http://www.freewrt.org/licence for details.
6
7 all: compile
8
9 include ${TOPDIR}/rules.mk
10
11 WRKBUILD= ${TOOLS_BUILD_DIR}/nfotiser
12 WRKSRC= ${TOPDIR}/tools/nfotiser
13
14 OUR_FLAGS= -I${WRKSRC} -I${TOPDIR}/tools/sqlite
15 ifeq (${OStype},MirBSD)
16 OUR_FLAGS+= -Wall -Wextra -Wunused -Wdeclaration-after-statement -Wundef \
17 -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast \
18 -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes \
19 -Wold-style-definition -Wmissing-prototypes -Winline \
20 -Wmissing-declarations -Wmissing-noreturn \
21 -Wmissing-format-attribute -Wredundant-decls
22 else
23 OUR_FLAGS+= -Wall
24 endif
25 OUR_FLAGS+= -std=gnu99 ${GCEXTRA}
26
27 VPATH= ${WRKSRC}:${TOPDIR}/tools/sqlite:${TOPDIR}/tools/paxmirabilis
28
29 ifeq (${OStype},Linux)
30 SRCS+= strlfun.c \
31 fgetln.c
32 endif
33
34 SRCS+= \
35 categories.c \
36 dbscheme.S \
37 main.c
38
39 OBJS= $(addsuffix .o,$(basename $(notdir ${SRCS})))
40
41 prepare: ${WRKBUILD}
42
43 compile: prepare
44 cd ${WRKBUILD} && ${MAKE} -f ${WRKSRC}/Makefile nfotiser
45
46 install:
47 install-lbin:
48 package:
49
50 clean:
51 rm -rf ${WRKBUILD}
52
53 %.o: %.c
54 ${HOSTCC} ${HOSTCFLAGS} ${OUR_FLAGS} -o $@ -c $<
55
56 %.o: %.S
57 ${HOSTCC} ${HOSTCFLAGS} ${OUR_FLAGS} -Wa,-I${WRKSRC} -o $@ -c $<
58
59 ${WRKBUILD}:
60 mkdir -p ${WRKBUILD}
61
62 nfotiser: ${OBJS}
63 ${HOSTCC} ${HOSTCFLAGS} ${OUR_FLAGS} -o $@ \
64 $^ -L${TOPDIR}/tools_build/sqlite -lsqlite3
65
66 main.o: dbif.h extern.h sqlite3.h
67 dbscheme.o: dbscheme.S mknfodb.sql

root@freewrt.org:443
ViewVC Help
Powered by ViewVC 1.1.20