Commit Graph

32 Commits

Author SHA1 Message Date
Thomas Gellekum
273a0913fe Sort SRCS. 2001-08-03 10:47:13 +00:00
Thomas Gellekum
07679c2d28 - Fix file names <:-(,
- attempt to find the X includes and libraries better,
- sort some things.

Submitted by:	bde
2001-07-30 11:38:20 +00:00
Thomas Gellekum
d57f02670b Fix bugs introduced in 1.26:
- restore -I. in CFLAGS
- add dependencies of objects on font headers
- missing dependencies of font headers on their sources

Suggested by:	bde
2001-07-26 11:04:08 +00:00
Sheldon Hearn
bba1ea063e Fix breakage introduced in rev 1.26, with the introduction of
absoluate pathnames starting with /usr/src.

This fixes the installworld target for the case where the source tree is
not in /usr/src.
2001-07-25 12:21:27 +00:00
Andrey A. Chernov
ac06a71756 Remove non-existent (missing?) fonts.alias from beforeinstall: target 2001-07-24 19:25:19 +00:00
Andrey A. Chernov
1dab3da105 Add -I${.OBJDIR} to pick generated font*.h 2001-07-24 18:33:26 +00:00
Thomas Gellekum
040395f4dd Rewrite video emulation. Features:
- slightly more accurate VGA hardware emulation;
- more int 10 functions, especially wrt to palette handling;
- first shot at graphics support;
- mode switching.

Bugs:

- graphics too slow;
- only 16 color modes work for now;
- works only under X, and only with 16 bit TrueColor visuals;
- far from being genuinely useful (I can play an old EGA game now, though
  (mahjongg.exe)).

Also, the code has been cleaned up a bit (more to come in a separate commit).
2001-07-24 11:44:20 +00:00
Thomas Gellekum
96ba60ede2 Install a VGA font for the X11 mode. Use a line like
xset fp+ /usr/libdata/doscmd/fonts
in your .xsession to activate it.

Document X11_FONT option in .doscmdrc.

Open window if $DISPLAY is set.
2000-06-23 08:57:17 +00:00
Kris Kennaway
4cc2c0e494 Oops, revert previous commit 2000-05-07 09:23:37 +00:00
Kris Kennaway
42bfb5ed40 Update device references. 2000-05-07 09:23:36 +00:00
Kris Kennaway
0a76f6e834 Add and document a NO_X knob to force disabling of X support in doscmd
Requested by:	sysop@silver.komanda.com.ua
2000-03-19 09:49:03 +00:00
Marcel Moolenaar
d355b81dd4 Don't build with X support if DESTDIR is defined. This prevents
breaking a cross-build caused by taking the X libraries on the
build machine. In general this means that we never compile with
X support. The user has to manually compile doscmd for that.

Suggested by: bde, imp (among others)
2000-01-05 12:59:31 +00:00
Peter Wemm
c3aac50f28 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
Luoqi Chen
2483cc6611 X11 include directory may not actually contain any header file, check for
a specific one (X11/X.h).
1999-04-17 01:57:06 +00:00
Warner Losh
ab6692a434 Disable setgid kmem for now. 1999-03-16 20:57:19 +00:00
Bruce Evans
3adc283e7e Use `${CC} ${CFLAGS} ${LDFLAGS} -nostdlib -Wl...' instead of
`ld ... <fudged ${LDFLAGS}>' to invoke the linker.  This gets the
flags and standard library paths right without complications.
Unfortunately, it doesn't help for the X11 library paths -- cc
only appends /aout for standard library paths.
1999-02-17 13:48:07 +00:00
Luoqi Chen
cdea9fcaca Look for aout X libraries at the right place. 1999-02-16 14:57:58 +00:00
Bruce Evans
9a536bfc65 Don't pass -static in ${LDFLAGS} to ld for building doscmd.kernel,
since it means -s (strip), and static linkage is forced correctly
anyway.  Other things in ${LDFLAGS} are still bogusly passed to ld.
This only affects the aout case.
1999-02-15 12:36:21 +00:00
John Polstra
f86bf82a98 Use the new variable NEED_LIBNAMES instead of including
<bsd.libnames.mk> explicitly.
1999-01-22 12:45:27 +00:00
Luoqi Chen
f1242b4cec ELFize. In fact, doscmd is ELF natural -- there is no need for a loader
since ELF executables are loaded well above the low memory region that
DOS operates in.
1998-09-24 01:11:45 +00:00
Bruce Evans
67b780b03b Fixed double slashes in pathnames. 1998-05-31 11:32:38 +00:00
Søren Schmidt
cabb97dcbf ELF preparation step 2:
Move a.out libraries to /usr/lib/aout to make space for ELF libs.
Make rtld usr /usr/lib/aout as default library path.
Make ldconfig reject /usr/lib as an a.out library path.
Fix various Makefiles for LIBDIR!=/usr/lib breakage.

This will after a make world & reboot give a system that no
longer uses /usr/lib/*, infact one could remove all the old
libraries there, they are not used anymore.

We are getting close to an ELF make world, but I'll let this
all settle for a week or two...
1998-05-26 20:12:56 +00:00
Bruce Evans
7eda6c03ce Honour -static in LDFLAGS.
Install using ${INSTALL}, not `install'.  Install generated files using
${COPY}, not -c.  Install using a single command when this is easy.
1998-03-21 12:51:44 +00:00
Bruce Evans
c724b81f25 Fixed DPADD. ${LIBGCC} must be added explicitly since the default
linkage rule is overridden.  The -L option must be in ${DPADD} so that
`make checkdpadd' works.  Actually use ${DPADD}.

FIxed missing dependencies for doscmd.  Use ${LIBCRT0} instead of a
hard-coded path in the rule for doscmd.

Added comments about the kludges used to build 2 binaries and 2 data
files in one directory.  It shouldn't be done this way.  The dependencies
on sources took extra work to get right, and the dependencies on objects
are still broken (one set is missing and the other has the wrong libs).

Fixed some style bugs while I'm here:
- don't override the (correct) default for MAN1.
- use `beforeinstall', not `afterinstall' to install auxiliary files.
  `afterinstall' is for fixing messes made by `install'.
1997-12-16 16:36:43 +00:00
Jonathan Lemon
daf3ece326 Add support for EMS emulation to doscmd. This requires changing the
interface for callbacks to doscmd from DOS, obsoleting the instbsdi
redirector.  (redir.com replaces it)

A temporary hack is in place so the instbsdi program will (hopefully) work
in the short term.
Submitted by:	Helmut F. Wirth <hfwirth@ping.at>
1997-09-30 22:04:06 +00:00
Jonathan Lemon
fac6290362 Make X11 support in doscmd dependent on the actual libX11.a library and
include directory, rather than X11BASE.  This fixes the build for people
who only have the shared X11 distribution installed.
Requested-by:	A Joseph Koshy <koshy@india.hp.com>
1997-08-28 18:23:40 +00:00
Jonathan Lemon
1e9267fe2d Clean up Makefile, make compiling in X support dependent on ${X11BASE}. 1997-08-18 18:48:33 +00:00
Jonathan Lemon
d4e591ffcb Add support for XMS memory to doscmd.
Submitted by:	Helmut F. Wirth <hfwirth@ping.at>
1997-08-15 23:41:26 +00:00
Andrey A. Chernov
7d8610b5dc Cleanup and use /usr/libdata/doscmd now 1997-08-12 16:08:02 +00:00
Andrey A. Chernov
4e65b7b35c Build instbsdi.exe in obj directory (make world stopper) 1997-08-09 20:04:04 +00:00
John Dyson
c62408d71f Add a valuable binary that enables I/O to U**X mounted disks. 1997-08-09 02:08:32 +00:00
John Dyson
923a975137 Add the makefile for doscmd. 1997-08-09 01:52:58 +00:00