mirror of
https://github.com/86Box/probing-tools.git
synced 2026-02-22 01:25:35 -07:00
ac97: Port to Linux
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -24,4 +24,6 @@ pci?????.bin
|
||||
*.exe
|
||||
*.com
|
||||
*.efi
|
||||
pcireg/pcireg
|
||||
ac97/ac97
|
||||
PCIIDS.BIN
|
||||
|
||||
22
ac97/Makefile.gcc
Normal file
22
ac97/Makefile.gcc
Normal file
@@ -0,0 +1,22 @@
|
||||
#
|
||||
# 86Box A hypervisor and IBM PC system emulator that specializes in
|
||||
# running old operating systems and software designed for IBM
|
||||
# PC systems and compatibles from 1981 through fairly recent
|
||||
# system designs based on the PCI bus.
|
||||
#
|
||||
# This file is part of the 86Box Probing Tools distribution.
|
||||
#
|
||||
# Makefile for compiling C-based tools with gcc.
|
||||
#
|
||||
#
|
||||
#
|
||||
# Authors: RichardG, <richardg867@gmail.com>
|
||||
#
|
||||
# Copyright 2023 RichardG.
|
||||
#
|
||||
|
||||
export OBJS = ac97.o clib_pci.o clib_sys.o clib_term.o
|
||||
export DEST = ac97
|
||||
export CFLAGS = -lpci
|
||||
|
||||
include ../clib/gcc.mk
|
||||
@@ -519,7 +519,7 @@ main(int argc, char **argv)
|
||||
return 1;
|
||||
|
||||
/* Set silent mode. */
|
||||
if ((argc >= 1) && !strcmp(argv[1], "-s"))
|
||||
if ((argc > 1) && !strcmp(argv[1], "-s"))
|
||||
silent = 1;
|
||||
|
||||
/* Scan PCI bus 0. */
|
||||
|
||||
Reference in New Issue
Block a user