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 3444 - (show annotations) (download)
Wed Aug 8 14:32:17 2007 UTC (6 years, 6 months ago) by tg
File size: 1675 byte(s)
first cut at the parser data types

thanks to bsiegert@mbsd for discussing the algorithms and data types used
and providing useful information

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 pfile.c \
38 parser.c \
39 main.c
40
41 OBJS= $(addsuffix .o,$(basename $(notdir ${SRCS})))
42
43 prepare: ${WRKBUILD}
44
45 compile: prepare
46 cd ${WRKBUILD} && ${MAKE} -f ${WRKSRC}/Makefile nfotiser
47
48 install:
49 install-lbin:
50 package:
51
52 clean:
53 rm -rf ${WRKBUILD}
54
55 %.o: %.c
56 ${HOSTCC} ${HOSTCFLAGS} ${OUR_FLAGS} -o $@ -c $<
57
58 %.o: %.S
59 ${HOSTCC} ${HOSTCFLAGS} ${OUR_FLAGS} -Wa,-I${WRKSRC} -o $@ -c $<
60
61 ${WRKBUILD}:
62 mkdir -p ${WRKBUILD}
63
64 nfotiser: ${OBJS}
65 ${HOSTCC} ${HOSTCFLAGS} ${OUR_FLAGS} -o $@ \
66 $^ -L${TOPDIR}/tools_build/sqlite -lsqlite3 -ldl
67
68 main.o: dbif.h extern.h nfotiser.h sqlite3.h
69 dbscheme.o: dbscheme.S mknfodb.sql
70 categories.o: nfotiser.h
71 parser.o: nfotiser.h
72 pfile.o: extern.h nfotiser.h

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