diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2002-09-17 12:26:10 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2002-09-17 12:26:10 +0000 |
commit | 09e69605b16070de8ce317d86ad736d665a58906 (patch) | |
tree | 7c0dc29f4fc660a44d2f7d6ec9d099cc4f8301a6 /console-client/Makefile | |
parent | dbe4c7712b652b7ad3126e94c47b00fa2bbb0a05 (diff) |
2002-09-17 Marcus Brinkmann <marcus@gnu.org>
* Makefile (prog-subdirs): Add console-client.
sutils/
2002-09-17 Marcus Brinkmann <marcus@gnu.org>
* MAKEDEV.sh (mkdev: vcs): New console device.
(mkdev: tty[0-9a-f]|tty[0-9][0-9a-f]): Replaced with new rules for
tty[1-9][0-9].
utils/
2002-09-17 Marcus Brinkmann <marcus@gnu.org>
* console-ncurses.c: File removed (the ncursesw console client is
now a driver in the console-client).
* Makefile: Revert 2002-08-22 change:
Do not include`../config.make'.
(targets) [LIBNCURSES]: Removed.
(SRCS) [LIBNCURSES]: Likewise.
(HURDLIBS) [LIBNCURSES]: Likewise.
(console-ncurses): Target removed.
(console-ncurses-CPPFLAGS): Removed.
(console-ncurses-LDLIBS): Likewise.
console-client/
2002-09-17 Marcus Brinkmann <marcus@gnu.org>
* Makefile, bdf.c, bdf.h, bell.h, console.c, display.h, driver.c,
driver.h, generic-speaker.c, input.h, pc-kbd.c, timer.c, timer.h,
unicode.h, vga.c, vga-dynacolor.c, vga-dynacolor.h, vga-dynafont.c,
vga-dynafont.h, vga-hw.h, vga-support.c, vga-support.h: New file.
Diffstat (limited to 'console-client/Makefile')
-rw-r--r-- | console-client/Makefile | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/console-client/Makefile b/console-client/Makefile new file mode 100644 index 00000000..836ec514 --- /dev/null +++ b/console-client/Makefile @@ -0,0 +1,75 @@ +# +# Copyright (C) 1994,95,96,97,98,99,2000,01,02 Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2, or (at +# your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +dir := console-client +makemode := utility + +target = console +SRCS = console.c timer.c driver.c +LCLHDRS = timer.h driver.h display.h input.h bell.h \ + unicode.h bdf.h \ + vga-dynafont.h vga-dynacolor.h vga-hw.h vga.h + +OBJS = $(filter-out %.sh,$(SRCS:.c=.o)) +HURDLIBS = cons threads ports +LDLIBS = -ldl +module-dir = $(libdir)/hurd/console +console-LDFLAGS = -Wl,-E + +# In seeking, thou shalt find it! +CPPFLAGS += -DQUAERENDO_INVENIETIS + +include ../Makeconf + +driver-CPPFLAGS = -D'CONSOLE_DEFPATH="$(module-dir)\0"' \ + -D'CONSOLE_SONAME_SUFFIX=".so.$(hurd-version)"' + +console: ../libcons/libcons.a ../libports/libports.a \ + ../libthreads/libthreads.a ../libshouldbeinlibc/libshouldbeinlibc.a + +modules = vga pc_kbd generic_speaker + +vga.so.$(hurd-version): $(patsubst %.c,%_pic.o,bdf.c vga-dynafont.c \ + vga-dynacolor.c vga-support.c vga.c) +pc_kbd.so.$(hurd-version): $(patsubst %.c,%_pic.o,pc-kbd.c) +generic_speaker.so.$(hurd-version): $(patsubst %.c,%_pic.o,generic-speaker.c) + +ifneq ($(LIBNCURSESW),) +modules += ncursesw +ncursesw.so.$(hurd-version): $(patsubst %.c,%_pic.o,ncursesw.c) +ncursesw-CPPFLAGS = $(NCURSESW_INCLUDE) +ncursesw-LDLIBS = $(LIBNCURSESW) +endif + +all: $(addsuffix .so.$(hurd-version), $(modules)) + +cleantarg += $(addsuffix .so.$(hurd-version), $(modules)) + +install: $(module-dir) $(addprefix $(module-dir)/,$(addsuffix .so.$(hurd-version),$(modules))) + +$(module-dir): + @$(MKINSTALLDIRS) $@ + +$(module-dir)/%: % + $(INSTALL_DATA) $< $@ + +# You can use this rule to make a dynamically-loadable version of any +# of the modules. +%.so.$(hurd-version): + $(CC) -shared -Wl,-soname=$@ -o $@ $(rpath) \ + $(CFLAGS) $($*-CFLAGS) $(LDFLAGS) \ + '-Wl,-(' $($*-LDLIBS) '-Wl,-)' $^ |