Changeset c52d922 in rtems-libbsd


Ignore:
Timestamp:
Sep 12, 2012, 10:09:48 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, 5-freebsd-12, 6-freebsd-12, freebsd-9.3, master
Children:
210671a
Parents:
8c92f71
git-author:
Joel Sherrill <joel.sherrill@…> (09/12/12 22:09:48)
git-committer:
Joel Sherrill <joel.sherrill@…> (09/12/12 22:11:16)
Message:

nsdispatch.c: New file added along with required dependencies

This file uses dynamic loading and is using some magic for
statically linked modules included in it. These modules may
or may not show up magically in an RTEMS executable. This will
eventually have to be investigated and resolved.

Files:
5 added
2 edited

Legend:

Unmodified
Added
Removed
  • .gitignore

    r8c92f71 rc52d922  
    5858rtemsbsd/v850/include/freebsd/machine/legacyvar.h
    5959rtemsbsd/v850/include/freebsd/machine/pci_cfgreg.h
     60freebsd-userspace/lib/libc/net/nslexer.c
     61freebsd-userspace/lib/libc/net/nsparser.c
     62freebsd-userspace/lib/libc/net/nsparser.i
  • freebsd-userspace/Makefile

    r8c92f71 rc52d922  
    1414# XXX hack to find rpc
    1515CFLAGS += -I../services/librpc/include
     16# nsparser needs this
     17CFLAGS += -Ilib/libc/net
    1618
    1719CFLAGS += -I$(INSTALL_BASE)/include
     
    5860C_FILES += lib/libc/net/getprotoname.c
    5961C_FILES += lib/libc/net/getservent.c
     62C_FILES += lib/libc/net/nsdispatch.c
     63C_FILES += lib/libc/net/nslexer.c
    6064C_FILES += lib/libc/gen/err.c
    6165C_FILES += lib/libc/gen/gethostname.c
     
    205209GEN_FILES = include/rpc/rpcb_prot.h
    206210GEN_FILES += commands/sbin/route/keywords.h
     211GEN_FILES += lib/libc/net/nslexer.c
     212GEN_FILES += lib/libc/net/nsparser.c
     213
     214EXTRA_CLEAN = lib/libc/net/nsparser.i
     215
    207216all: $(LIB)
    208217
     
    224233        rm -f _keywords.tmp
    225234
     235YFLAGS+=-p_nsyy
     236LFLAGS+=-P_nsyy
     237
     238lib/libc/net/nslexer.c: lib/libc/net/nslexer.l
     239        ${LEX} ${LFLAGS} -t $^ | \
     240                sed -e '/YY_BUF_SIZE/s/16384/1024/' >$@
     241
     242lib/libc/net/nsparser.c: lib/libc/net/nsparser.y
     243        yacc -d ${YFLAGS} -o lib/libc/net/nsparser.i $^
     244        cat lib/libc/net/nsparser.i | \
     245                sed -e '/YY_BUF_SIZE/s/16384/1024/' >$@
    226246install: $(LIB)
    227247        install -d $(INSTALL_BASE)/include
     
    237257
    238258clean:
    239         rm -f $(LIB) $(C_O_FILES) $(C_D_FILES) $(GEN_FILES)
     259        rm -f $(LIB) $(C_O_FILES) $(C_D_FILES) $(GEN_FILES) $(CLEAN_FILES)
    240260
    241261-include $(C_D_FILES)
Note: See TracChangeset for help on using the changeset viewer.