Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-12-28 10:15:12 +0300
committerChristopher Faylor <me@cgf.cx>2002-12-28 10:15:12 +0300
commit52c300e92576f4f83391ccaa2939937a3a7bce51 (patch)
tree29999a0217e3b87d6c7c2c58f56976194def1e95
parent1b3c72d86f7687fe4ba0256f9ebda231526b9ce3 (diff)
* Makefile.in: Add devices.gperf.
* devices.h: New file. * devices.gperf: Ditto.
-rw-r--r--winsup/cygwin/Makefile.in12
1 files changed, 11 insertions, 1 deletions
diff --git a/winsup/cygwin/Makefile.in b/winsup/cygwin/Makefile.in
index ab67daedb..d5abae38a 100644
--- a/winsup/cygwin/Makefile.in
+++ b/winsup/cygwin/Makefile.in
@@ -143,11 +143,12 @@ MALLOC_OFILES=@MALLOC_OFILES@
DLL_IMPORTS:=$(w32api_lib)/libkernel32.a
+MT_SAFE_OBJECTS:=
# Please maintain this list in sorted order, with maximum files per 80 col line
DLL_OFILES:=assert.o autoload.o cxx.o cygheap.o cygserver_client.o \
cygserver_transport.o cygserver_transport_pipes.o \
cygserver_transport_sockets.o cygthread.o dcrt0.o debug.o \
- delqueue.o dir.o dlfcn.o dll_init.o dtable.o environ.o errno.o \
+ delqueue.o devices.o dir.o dlfcn.o dll_init.o dtable.o environ.o errno.o \
exceptions.o exec.o external.o fcntl.o fhandler.o \
fhandler_clipboard.o fhandler_console.o fhandler_disk_file.o \
fhandler_dsp.o fhandler_floppy.o fhandler_mem.o \
@@ -359,6 +360,15 @@ cygserver_transport_sockets_outside.o: cygserver_transport_sockets.cc
cygserver_client_outside.o: cygserver_client.cc
$(COMPILE_CXX) -D__OUTSIDE_CYGWIN__ -o $@ $<
+# gperf -c --key-positions='1-126' -r -t -C -E -L 'ANSI-C' -Hdevhash -N'device::lookup' -Z devstring -7 $? |\
+
+$(srcdir)/devices.cc: devices.gperf
+ gperf -c --key-positions='1-2,5-7,9-10' -r -t -C -E -T -L 'ANSI-C' -Hdevhash -N'device::lookup' -Z devstring -7 $? |\
+ sed -e 's/\[\(str\[[^\]]*\]\)\]/[(unsigned) cyg_tolower (\1)]/' \
+ -e 's/static \(.* wordlist\)/static NO_COPY \1/g' \
+ -e 's/\([ ]*\)if (\*str.*$$/\1if (strncasematch (str, s, len))/' > $@
+# sed -e 's/\[str\[/[(unsigned) str[/' -e 's/static \([^(]*\)$$/static NO_COPY \1/g' >$@
+
cygserver.exe: cygserver.o cygserver_shm.o cygserver_transport_outside.o cygserver_transport_pipes_outside.o cygserver_transport_sockets_outside.o cygserver_client_outside.o cygserver_process.o threaded_queue.o wincap.o version.o smallprint.o
$(CXX) -o $@ $^ -lstdc++
#ifdef VERBOSE