1# Generated automatically from Makefile.in by configure. 2# @(#) $Header: /projects/cvsroot/src/router/flex/Makefile.in,v 1.2 2001/08/09 21:22:13 gmo Exp $ (LBL) 3 4 5 6# Possible values for DEFS: 7# 8# By default, flex generates 8-bit scanners when using table compression, 9# and 7-bit scanners when using uncompressed tables (-f or -F options). 10# For flex to always generate 8-bit scanners, add "-DDEFAULT_CSIZE=256" 11# to DEFS. 12# 13# For Vax/VMS, add "-DVMS" to DEFS. 14# 15# For MS-DOS, add "-DMS_DOS" to DEFS. See the directory MISC/MSDOS for 16# additional info. 17 18CFLAGS = -Os -O2 -DBCMWPA2 -DRESTART_ALL_PROCESSES -D__CONFIG_USBAP__ -DBCMQOS -DBCMWPS -D__CONFIG_EMF__ -DPHYMON -DSUPPORT_REMOTE_HTTPS -DINCLUDE_WPS_V20 -DINCLUDE_5G_AUTO_CHANNEL -DOPENDNS_PARENTAL_CONTROL -DU12H240 -DR6300v2 -DMULTIPLE_SSID -DENABLE_ML -DBCM53125 -DCONFIG_RUSSIA_IPTV -DDLNA -DHTTP_ACCESS_USB -DMAX_USB_ACCESS -DSAMBA_ENABLE -DUSB_NEW_SPEC -DINCLUDE_WIFI_BUTTON -DINCLUDE_USB_LED -DINCLUDE_DUAL_BAND -DSINGLE_FIRMWARE -DINCLUDE_GET_ST_CHKSUM -DUNIFIED_STR_TBL -DFIRST_MTD_ROTATION -DWIFI_ON_OFF_SCHE -DAUTO_CONN_24HR -DIGMP_PROXY -DAP_MODE -D__CONFIG_IGMP_SNOOPING__ -DLINUX26 -DINCLUDE_IPV6 -DPRESET_WL_SECURITY -DNEW_BCM_WPS_IPC -DSUPPORT_AC_MODE -DSTA_MODE -DPPP_RU_DESIGN -DEXT_ACS -DPLC 19CPPFLAGS = 20DEFS = -DHAVE_CONFIG_H 21LDFLAGS = 22ifeq ($(strip $(DOSTATIC)),true) 23 LDFLAGS += --static 24endif 25LIBS = 26 27# Installation targeting. Files will be installed under the tree 28# rooted at prefix. flex will be installed in bindir, libfl.a in 29# libdir, FlexLexer.h will be installed in includedir, and the manual 30# pages will be installed in mandir with extension manext. 31# 32# Raw, unformatted troff source will be installed if INSTALLMAN=man, 33# nroff preformatted versions will be installed if INSTALLMAN=cat. 34 35prefix = /usr/local 36exec_prefix = ${prefix} 37bindir = $(exec_prefix)/bin 38libdir = $(exec_prefix)/lib 39includedir = $(prefix)/include 40manext = 1 41mandir = $(prefix)/man/man$(manext) 42 43# You can define these to be "lex" and "libl.a" if you want to replace 44# lex at your site. 45FLEX = flex 46FLEXLIB = libfl.a 47 48INSTALLMAN = man 49 50SHELL = /bin/sh 51srcdir = . 52 53LN_S = ln -s 54YACC = bison -y 55CC = arm-brcm-linux-uclibcgnueabi-gcc 56AR = ar 57RANLIB = arm-brcm-linux-uclibcgnueabi-ranlib 58INSTALL = /usr/bin/install -c 59INSTALL_DATA = ${INSTALL} -m 644 60INSTALL_PROGRAM = ${INSTALL} 61 62# You normally do not need to modify anything below this point. 63# ------------------------------------------------------------ 64 65CPPFLAGS = -I. -I$(srcdir) 66 67.c.o: 68 $(CC) -c $(CPPFLAGS) $(CFLAGS) $< 69 70HEADERS = flexdef.h version.h 71 72SOURCES = ccl.c dfa.c ecs.c gen.c main.c misc.c nfa.c parse.y \ 73 scan.l skel.c sym.c tblcmp.c yylex.c 74OBJECTS = ccl.o dfa.o ecs.o gen.o main.o misc.o nfa.o parse.o \ 75 scan.o skel.o sym.o tblcmp.o yylex.o 76 77LIBSRCS = libmain.c libyywrap.c 78LIBOBJS = libmain.o libyywrap.o 79 80LINTSRCS = ccl.c dfa.c ecs.c gen.c main.c misc.c nfa.c parse.c \ 81 scan.c skel.c sym.c tblcmp.c yylex.c 82 83DISTFILES = README NEWS COPYING INSTALL FlexLexer.h \ 84 configure.in conf.in Makefile.in mkskel.sh flex.skl \ 85 $(HEADERS) $(SOURCES) $(LIBSRCS) MISC \ 86 flex.1 scan.c install.sh mkinstalldirs configure 87 88DIST_NAME = flex 89 90# which "flex" to use to generate scan.c from scan.l 91FLEX_EXEC = ./$(FLEX) 92FLEX_FLAGS = -t $(PERF_REPORT) 93COMPRESSION = 94PERF_REPORT = -p 95 96 97all: $(FLEX) 98 99$(FLEX): .bootstrap $(OBJECTS) $(FLEXLIB) 100 $(CC) $(CFLAGS) -o $(FLEX) $(LDFLAGS) $(OBJECTS) $(FLEXLIB) $(LIBS) 101 102.bootstrap: initscan.c 103 @rm -f scan.c 104 cp $(srcdir)/initscan.c scan.c 105 touch .bootstrap 106 107parse.c: parse.y 108 $(YACC) -d $(srcdir)/parse.y 109 @sed '/extern char.*malloc/d' <y.tab.c >parse.tmp 110 @mv parse.tmp parse.c 111 @mv y.tab.h parse.h 112 @rm -f y.tab.c 113 114parse.h: parse.c 115 116scan.c: scan.l 117 $(FLEX_EXEC) $(FLEX_FLAGS) $(COMPRESSION) $(srcdir)/scan.l >scan.c 118 @sed s,\"$(srcdir)/scan.l\",\"scan.l\", <scan.c >scan.tmp 119 @mv scan.tmp scan.c 120 121scan.o: scan.c parse.h flexdef.h config.h 122yylex.o: yylex.c parse.h flexdef.h config.h 123 124skel.c: flex.skl mkskel.sh 125 $(SHELL) $(srcdir)/mkskel.sh $(srcdir)/flex.skl >skel.c 126 127main.o: main.c flexdef.h config.h version.h 128ccl.o: ccl.c flexdef.h config.h 129dfa.o: dfa.c flexdef.h config.h 130ecs.o: ecs.c flexdef.h config.h 131gen.o: gen.c flexdef.h config.h 132misc.o: misc.c flexdef.h config.h 133nfa.o: nfa.c flexdef.h config.h 134parse.o: parse.c flexdef.h config.h 135skel.o: skel.c flexdef.h config.h 136sym.o: sym.c flexdef.h config.h 137tblcmp.o: tblcmp.c flexdef.h config.h 138 139alloca.o: alloca.c 140 $(CC) $(CPPFLAGS) $(CFLAGS) -c -Dxmalloc=yy_flex_xmalloc alloca.c 141 142alloca.c: $(srcdir)/MISC/alloca.c 143 @rm -f alloca.c 144 cp $(srcdir)/MISC/alloca.c . 145 146test: check 147check: $(FLEX) 148 $(FLEX_EXEC) $(FLEX_FLAGS) $(COMPRESSION) $(srcdir)/scan.l \ 149 | sed s,\"$(srcdir)/scan.l\",\"scan.l\", \ 150 | diff scan.c - 151 @echo "Check successful, using COMPRESSION=\"$(COMPRESSION)\"" 152 153bigcheck: 154 rm -f scan.c ; $(MAKE) COMPRESSION="-C" check 155 rm -f scan.c ; $(MAKE) COMPRESSION="-Ce" check 156 rm -f scan.c ; $(MAKE) COMPRESSION="-Cm" check 157 rm -f scan.c ; $(MAKE) COMPRESSION="-f" check 158 rm -f scan.c ; $(MAKE) COMPRESSION="-Cfea" check 159 rm -f scan.c ; $(MAKE) COMPRESSION="-CFer" check 160 rm -f scan.c ; $(MAKE) COMPRESSION="-l" PERF_REPORT="" check 161 rm -f scan.c ; $(MAKE) 162 @echo "All checks successful" 163 164$(FLEXLIB): $(LIBOBJS) 165 $(AR) cru $(FLEXLIB) $(LIBOBJS) 166 -$(RANLIB) $(FLEXLIB) 167 168$(FLEX).man: flex.1 169 cd $(srcdir) && nroff -man flex.1 >$(FLEX).man 170 171install: $(FLEX) $(FLEXLIB) installdirs install.$(INSTALLMAN) 172 $(INSTALL_PROGRAM) $(FLEX) $(bindir)/$(FLEX) 173 @rm -f $(bindir)/$(FLEX)++ 174 cd $(bindir) && $(LN_S) $(FLEX) $(FLEX)++ 175 $(INSTALL_DATA) $(FLEXLIB) $(libdir)/$(FLEXLIB) 176 -cd $(libdir) && $(RANLIB) $(FLEXLIB) 177 $(INSTALL_DATA) $(srcdir)/FlexLexer.h $(includedir)/FlexLexer.h 178 179# Note, the following rules delete any vestigial flexdoc installed 180# for a prior flex release. 181install.man: flex.1 182 rm -f $(mandir)/$(FLEX)doc.$(manext) 183 $(INSTALL_DATA) $(srcdir)/flex.1 $(mandir)/$(FLEX).$(manext) 184 185install.cat: $(FLEX).man 186 rm -f $(mandir)/$(FLEX)doc.$(manext) 187 $(INSTALL_DATA) $(srcdir)/$(FLEX).man $(mandir)/$(FLEX).$(manext) 188 189installdirs: 190 $(SHELL) $(srcdir)/mkinstalldirs \ 191 $(bindir) $(libdir) $(includedir) $(mandir) 192 193uninstall: 194 rm -f $(bindir)/$(FLEX) $(bindir)/$(FLEX)++ 195 rm -f $(libdir)/$(FLEXLIB) 196 rm -f $(includedir)/FlexLexer.h 197 rm -f $(mandir)/$(FLEX).$(manext) $(mandir)/$(FLEX)doc.$(manext) 198 199tags: $(SOURCES) 200 ctags $(SOURCES) 201 202TAGS: $(SOURCES) 203 etags $(SOURCES) 204 205lint: $(LINTSRCS) 206 lint -Dconst= $(LINTSRCS) > flex.lint 207 208gcc-lint: $(LINTSRCS) 209 gcc -Dlint -Wall $(LINTSRCS) >flex.gcc-lint 2>&1 210 211mostlyclean: 212 rm -f a.out *.bak core errs scan.tmp 213 214clean: mostlyclean 215 rm -f flex parse.c parse.h *.o alloca.c *.lint lex.yy.c lex.yy.cc \ 216 $(FLEXLIB) config.log config.cache 217 218distclean: clean 219 rm -f .bootstrap $(FLEX) scan.c tags TAGS Makefile config.status \ 220 config.h stamp-h config.log config.cache 221 222maintainer-clean: distclean 223 @echo "This command is intended for maintainers to use;" 224 @echo "it deletes files that may require special tools to rebuild." 225 rm -f $(FLEX).man skel.c flex*.tar.gz flex*.tar.Z 226 227dist: $(FLEX) $(DISTFILES) parse.c parse.h $(srcdir)/$(FLEX).man 228 $(MAKE) DIST_NAME=flex-`sed <version.h 's/[^"]*"//' | sed 's/"//'` dist2 229 230dist2: 231 @rm -rf $(DIST_NAME) 232 @rm -f $(DIST_NAME).tar $(DIST_NAME).tar.Z $(DIST_NAME).tar.gz 233 @mkdir $(DIST_NAME) 234 tar cf - $(DISTFILES) | (cd $(DIST_NAME) && tar xfB -) 235 @mv $(DIST_NAME)/scan.c $(DIST_NAME)/initscan.c 236 @chmod 444 $(DIST_NAME)/initscan.c 237 @chmod +w $(DIST_NAME)/Makefile.in 238 @cp parse.c parse.h $(DIST_NAME)/MISC 239 @col -b <$(srcdir)/$(FLEX).man >$(DIST_NAME)/MISC/flex.man 240 tar chf $(DIST_NAME).tar $(DIST_NAME) 241 compress <$(DIST_NAME).tar >$(DIST_NAME).tar.Z 242 gzip <$(DIST_NAME).tar >$(DIST_NAME).tar.gz 243 @rm $(DIST_NAME).tar 244 245# For an explanation of the following Makefile rules, see node 246# `Automatic Remaking' in GNU Autoconf documentation. 247Makefile: $(srcdir)/Makefile.in config.status 248 CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status 249config.status: configure 250 ./config.status --recheck 251configure: configure.in 252 cd $(srcdir) && autoconf 253config.h: stamp-h 254stamp-h: conf.in config.status 255 CONFIG_FILES= CONFIG_HEADERS=config.h:conf.in ./config.status 256 echo timestamp >stamp-h 257# conf.in: stamp-h.in 258# stamp-h.in: configure.in acconfig.h 259# cd $(srcdir) && autoheader 260# config.h.in conf.in 261# cho timestamp > $(srcdir)/stamp-h.in 262 263# Tell versions [3.59,3.63) of GNU make not to export all variables. 264# Otherwise a system limit (for SysV at least) may be exceeded. 265.NOEXPORT: 266