cross-compile properly

This commit is contained in:
aymeric 2000-09-27 08:28:34 +00:00
parent 25365607f3
commit 5712405584
11 changed files with 72 additions and 54 deletions

View File

@ -1,14 +1,10 @@
# $NetBSD: Makefile.inc,v 1.9 2000/09/17 18:24:13 is Exp $
# $NetBSD: Makefile.inc,v 1.10 2000/09/27 08:28:34 aymeric Exp $
BINDIR=/usr/share/keymaps/amiga
MKMAN= no
CLEANFILES=${FILES}
realall: ${PROG} ${FILES}
${FILES}: ${PROG}
./${PROG} > $@
# don't install ${PROG}
proginstall::
realall: ${HOSTPROG} ${FILES}
${FILES}: ${HOSTPROG}
./${HOSTPROG} > $@

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.5 1999/02/13 02:54:38 lukem Exp $
# $NetBSD: Makefile,v 1.6 2000/09/27 08:28:35 aymeric Exp $
PROG=din-kbdmap
HOSTPROG= din-kbdmap
MKMAN= no
FILES=din.map
FILES= din.map
.include <bsd.prog.mk>
.include <bsd.hostprog.mk>

View File

@ -1,4 +1,6 @@
/* $NetBSD: din-kbdmap.c,v 1.5 1996/06/08 15:28:51 is Exp $ */
/* $NetBSD: din-kbdmap.c,v 1.6 2000/09/27 08:28:35 aymeric Exp $ */
#include <unistd.h>
#include "../../../dev/kbdmap.h"
@ -478,7 +480,9 @@ unsigned char acctable[KBD_NUM_ACC][64] = {
};
main()
{
write (1, &kbdmap, sizeof (kbdmap));
int
main(void) {
write(1, &kbdmap, sizeof (kbdmap));
return 0;
}

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.2 1999/02/13 02:54:38 lukem Exp $
# $NetBSD: Makefile,v 1.3 2000/09/27 08:28:35 aymeric Exp $
PROG=es-kbdmap
HOSTPROG= es-kbdmap
MKMAN= no
FILES=es.map
FILES= es.map
.include <bsd.prog.mk>
.include <bsd.hostprog.mk>

View File

@ -1,4 +1,6 @@
/* $NetBSD: es-kbdmap.c,v 1.1 1998/03/13 19:28:11 is Exp $ */
/* $NetBSD: es-kbdmap.c,v 1.2 2000/09/27 08:28:35 aymeric Exp $ */
#include <unistd.h>
#include "../../../dev/kbdmap.h"
@ -478,7 +480,9 @@ unsigned char acctable[KBD_NUM_ACC][64] = {
};
main()
{
write (1, &kbdmap, sizeof (kbdmap));
int
main(void) {
write(1, &kbdmap, sizeof (kbdmap));
return 0;
}

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.2 1999/02/13 02:54:38 lukem Exp $
# $NetBSD: Makefile,v 1.3 2000/09/27 08:28:35 aymeric Exp $
PROG=fr-kbdmap
HOSTPROG= fr-kbdmap
MKMAN= no
FILES=fr.map
FILES= fr.map
.include <bsd.prog.mk>
.include <bsd.hostprog.mk>

View File

@ -1,4 +1,4 @@
/* $NetBSD: fr-kbdmap.c,v 1.1 1997/08/06 17:09:38 veego Exp $ */
/* $NetBSD: fr-kbdmap.c,v 1.2 2000/09/27 08:28:36 aymeric Exp $ */
/*
* Copyright (c) 1993 Markus Wild
@ -36,6 +36,8 @@
* edelcamp@easynet.fr 970717
*/
#include <unistd.h>
#include "../../../dev/kbdmap.h"
/* define a default keymap. This can be changed by keyboard ioctl's
@ -56,7 +58,7 @@ struct kbdmap kbdmap = {
{
{ 0, '`' }, /* 0x00 */
{ 0, '&' },
{ 0, '\xe9' }, /* e accent aigu */
{ 0, '\xe9' }, /* e accent aigu (e acute) */
{ 0, '"' },
{ 0, '\'' },
{ 0, '(' },
@ -164,7 +166,7 @@ struct kbdmap kbdmap = {
{ 0, '8' }, /* 0x08 */
{ 0, '9' },
{ 0, '0' },
{ 0, '\xb0' }, /* symbole numero */
{ 0, '\xb0' }, /* symbole numero (degree) */
{ 0, '_' },
{ 0, '|' },
{ 0, 0 },
@ -509,7 +511,9 @@ unsigned char acctable[KBD_NUM_ACC][64] = {
"`äbcdëfghďjklmnöpqrstüvwxyz{|}~\177"}, /* KBD_ACC_DIER */
};
main()
{
write(1, &kbdmap, sizeof(kbdmap) );
int
main(void) {
write(1, &kbdmap, sizeof(kbdmap));
return 0;
}

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.6 1999/02/13 02:54:38 lukem Exp $
# $NetBSD: Makefile,v 1.7 2000/09/27 08:28:36 aymeric Exp $
PROG=sw-kbdmap
HOSTPROG= sw-kbdmap
MKMAN= no
FILES=sw.map
FILES= sw.map
.include <bsd.prog.mk>
.include <bsd.hostprog.mk>

View File

@ -1,4 +1,4 @@
/* $NetBSD: sw-kbdmap.c,v 1.3 1996/06/08 15:28:58 is Exp $ */
/* $NetBSD: sw-kbdmap.c,v 1.4 2000/09/27 08:28:36 aymeric Exp $ */
/*
* Copyright (c) 1993 Markus Wild
@ -29,6 +29,9 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <unistd.h>
#include "../../../dev/kbdmap.h"
/* define a default keymap. This can be changed by keyboard ioctl's
@ -507,7 +510,9 @@ unsigned char acctable[KBD_NUM_ACC][64] = {
};
main()
{
write (1, &kbdmap, sizeof (kbdmap));
int
main(void) {
write(1, &kbdmap, sizeof (kbdmap));
return 0;
}

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.5 1999/02/13 02:54:38 lukem Exp $
# $NetBSD: Makefile,v 1.6 2000/09/27 08:28:36 aymeric Exp $
PROG=us-kbdmap
HOSTPROG= us-kbdmap
MKMAN= no
FILES=us.map
FILES= us.map
.include <bsd.prog.mk>
.include <bsd.hostprog.mk>

View File

@ -1,4 +1,6 @@
/* $NetBSD: us-kbdmap.c,v 1.4 1996/06/08 15:29:04 is Exp $ */
/* $NetBSD: us-kbdmap.c,v 1.5 2000/09/27 08:28:36 aymeric Exp $ */
#include <unistd.h>
#include "../../../dev/kbdmap.h"
@ -475,7 +477,10 @@ unsigned char acctable[KBD_NUM_ACC][64] = {
main()
int
main(void)
{
write (1, &kbdmap, sizeof (kbdmap));
return 0;
}