Convert drivers/ and servers/ over to bsdmake
-Move libdriver to lib/ -Install all boot image services on filesystem to aid restartability
This commit is contained in:
parent
c33102ea6b
commit
436d6012a3
182 changed files with 685 additions and 1827 deletions
4
Makefile
4
Makefile
|
@ -54,8 +54,6 @@ commands:
|
|||
|
||||
depend::
|
||||
mkdep kernel
|
||||
mkdep servers
|
||||
mkdep drivers
|
||||
cd kernel && $(MAKE) $@
|
||||
cd servers && $(MAKE) $@
|
||||
cd drivers && $(MAKE) $@
|
||||
|
@ -68,6 +66,7 @@ all::
|
|||
cd commands && $(MAKE) all
|
||||
cd tools && $(MAKE) all
|
||||
cd servers && $(MAKE) all
|
||||
cd drivers && $(MAKE) all
|
||||
|
||||
install::
|
||||
cd boot && $(MAKE) all install
|
||||
|
@ -75,6 +74,7 @@ install::
|
|||
cd commands && $(MAKE) all install
|
||||
cd tools && $(MAKE) all install
|
||||
cd servers && $(MAKE) all install
|
||||
cd drivers && $(MAKE) all install
|
||||
|
||||
clean::
|
||||
cd boot && $(MAKE) clean
|
||||
|
|
|
@ -37,6 +37,5 @@ LINKS+= ${BINDIR}/pax ${BINDIR}/tar
|
|||
LINKS+= ${BINDIR}/pax ${BINDIR}/cpio
|
||||
|
||||
CFLAGS+= -O -D_POSIX_SOURCE -DNET2_STAT=1 -D_MINIX=1
|
||||
LDFLAGS+= -i
|
||||
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -1,54 +1,15 @@
|
|||
# Makefile for all device drivers.
|
||||
#
|
||||
MAKE = exec make -$(MAKEFLAGS)
|
||||
|
||||
usage:
|
||||
@echo "" >&2
|
||||
@echo "Makefile for all device drivers." >&2
|
||||
@echo "Usage:" >&2
|
||||
@echo " make build # Compile all device drivers locally" >&2
|
||||
@echo " make image # Compile drivers in boot image" >&2
|
||||
@echo " make clean # Remove local compiler results" >&2
|
||||
@echo " make install # Install drivers to /etc/drivers/" >&2
|
||||
@echo " (requires root privileges)" >&2
|
||||
@echo "" >&2
|
||||
.include <minix.own.mk>
|
||||
|
||||
build: all
|
||||
all install depend clean:
|
||||
cd ./libdriver && $(MAKE) $@
|
||||
cd ./tty && $(MAKE) $@
|
||||
cd ./amddev && $(MAKE) $@
|
||||
cd ./at_wini && $(MAKE) $@
|
||||
cd ./audio && $(MAKE) $@
|
||||
cd ./floppy && $(MAKE) $@
|
||||
cd ./printer && $(MAKE) $@
|
||||
cd ./rtl8139 && $(MAKE) $@
|
||||
cd ./rtl8169 && $(MAKE) $@
|
||||
cd ./orinoco && $(MAKE) $@
|
||||
cd ./fxp && $(MAKE) $@
|
||||
cd ./e1000 && $(MAKE) $@
|
||||
cd ./dpeth && $(MAKE) $@
|
||||
cd ./atl2 && $(MAKE) $@
|
||||
cd ./log && $(MAKE) $@
|
||||
cd ./bios_wini && $(MAKE) $@
|
||||
cd ./filter && $(MAKE) $@
|
||||
cd ./hello && $(MAKE) $@
|
||||
cd ./random && $(MAKE) $@
|
||||
cd ./readclock && $(MAKE) $@
|
||||
cd ./dp8390 && $(MAKE) $@
|
||||
cd ./sb16 && $(MAKE) $@
|
||||
cd ./lance && $(MAKE) $@
|
||||
cd ./dec21140A && $(MAKE) $@
|
||||
cd ./pci && $(MAKE) $@
|
||||
cd ./ti1225 && $(MAKE) $@
|
||||
cd ./memory && $(MAKE) $@ # Must be last for ramdisk image
|
||||
# memory driver must be last for ramdisk image
|
||||
SUBDIR= amddev atl2 at_wini audio bios_wini dec21140A dp8390 dpeth \
|
||||
e1000 filter floppy fxp hello lance log orinoco pci printer \
|
||||
random readclock rtl8139 rtl8169 sb16 ti1225 tty \
|
||||
.WAIT memory
|
||||
|
||||
image:
|
||||
cd ./libdriver && $(MAKE) build
|
||||
cd ./tty && $(MAKE) build
|
||||
cd ./at_wini && $(MAKE) build
|
||||
cd ./floppy && $(MAKE) build
|
||||
cd ./bios_wini && $(MAKE) build
|
||||
cd ./log && $(MAKE) build
|
||||
cd ./pci && $(MAKE) build
|
||||
cd ./memory && $(MAKE) build # Must be last for ramdisk image
|
||||
# memory driver must be last for ramdisk image
|
||||
IMAGE_SUBDIR= at_wini bios_wini floppy log tty pci .WAIT memory
|
||||
|
||||
.include <minix.subdir.mk>
|
||||
|
|
|
@ -1,30 +1,12 @@
|
|||
# Makefile for AMD's DEV
|
||||
DRIVER = amddev
|
||||
PROG= amddev
|
||||
SRCS= amddev.c
|
||||
|
||||
# programs, flags, etc.
|
||||
CC = exec cc
|
||||
CFLAGS = $(CPROFILE)
|
||||
LDFLAGS = -i
|
||||
LIBS = -lsys
|
||||
DPADD+= ${LIBSYS}
|
||||
LDADD+= -lsys
|
||||
|
||||
OBJ = amddev.o
|
||||
|
||||
# build local binary
|
||||
all build: $(DRIVER)
|
||||
$(DRIVER): $(OBJ)
|
||||
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
||||
install -S 320k $(DRIVER)
|
||||
|
||||
# install with other drivers
|
||||
install: /usr/sbin/$(DRIVER)
|
||||
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||
install -o root -cs $? $@
|
||||
|
||||
# clean up local files
|
||||
clean:
|
||||
rm -f *.o *.bak $(DRIVER)
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
||||
MAN=
|
||||
|
||||
BINDIR?= /usr/sbin
|
||||
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -1,41 +1,12 @@
|
|||
# Makefile for the AT disk driver (AT_WINI)
|
||||
DRIVER = at_wini
|
||||
PROG= at_wini
|
||||
SRCS= at_wini.c liveupdate.c
|
||||
|
||||
# directories
|
||||
u = /usr
|
||||
i = $u/include
|
||||
s = $i/sys
|
||||
m = $i/minix
|
||||
b = $i/ibm
|
||||
d = ..
|
||||
p = ../libpci
|
||||
DPADD+= ${LIBDRIVER} ${LIBSYS} ${LIBTIMERS}
|
||||
LDADD+= -ldriver -lsys -ltimers
|
||||
|
||||
# programs, flags, etc.
|
||||
MAKE = exec make
|
||||
CC = exec cc
|
||||
CFLAGS = -I$i $(CPROFILE)
|
||||
LDFLAGS = -i -L../libdriver
|
||||
LIBS = -ldriver -lsys -ltimers
|
||||
|
||||
OBJ = at_wini.o liveupdate.o
|
||||
|
||||
|
||||
# build local binary
|
||||
all build: $(DRIVER)
|
||||
$(DRIVER): $(OBJ)
|
||||
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
||||
install -S 32k $(DRIVER)
|
||||
|
||||
# install with other drivers
|
||||
install: /sbin/$(DRIVER)
|
||||
/sbin/$(DRIVER): $(DRIVER)
|
||||
install -o root -cs $? $@
|
||||
|
||||
# clean up local files
|
||||
clean:
|
||||
rm -f $(DRIVER) *.o *.bak
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c > .depend
|
||||
MAN=
|
||||
|
||||
BINDIR?= /sbin
|
||||
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "../drivers.h"
|
||||
#include "../libdriver/driver.h"
|
||||
#include "../libdriver/drvlib.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <minix/driver.h>
|
||||
#include <minix/drvlib.h>
|
||||
|
||||
#define VERBOSE 0 /* display identify messages during boot */
|
||||
#define ENABLE_ATAPI 1 /* add ATAPI cd-rom support to driver */
|
||||
|
|
|
@ -1,36 +1,12 @@
|
|||
# Makefile for the Attansic/Atheros L2 ethernet driver (ATL2)
|
||||
DRIVER = atl2
|
||||
PROG= atl2
|
||||
SRCS= atl2.c
|
||||
|
||||
# directories
|
||||
u = /usr
|
||||
i = $u/include
|
||||
s = $i/sys
|
||||
m = $i/minix
|
||||
b = $i/ibm
|
||||
d = ..
|
||||
DPADD+= ${LIBSYS}
|
||||
LDADD+= -lsys
|
||||
|
||||
# programs, flags, etc.
|
||||
MAKE = exec make
|
||||
CC = exec cc
|
||||
CFLAGS = -I$i $(CPROFILE)
|
||||
LDFLAGS = -i
|
||||
LIBS = -lsys
|
||||
MAN=
|
||||
|
||||
OBJ = atl2.o
|
||||
BINDIR?= /usr/sbin
|
||||
|
||||
# build local binary
|
||||
all build: $(DRIVER)
|
||||
$(DRIVER): $(OBJ)
|
||||
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
||||
|
||||
# install with other drivers
|
||||
install: /usr/sbin/$(DRIVER)
|
||||
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||
install -o root -cs $? $@
|
||||
|
||||
# clean up local files
|
||||
clean:
|
||||
rm -f $(DRIVER) *.o *.bak
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* heavily on the official Linux driver; this driver is based heavily on both.
|
||||
*/
|
||||
|
||||
#include "../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
|
||||
#include <sys/mman.h>
|
||||
#include <minix/ds.h>
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
# Makefile for all audio drivers.
|
||||
MAKE = exec make -$(MAKEFLAGS)
|
||||
|
||||
build: all
|
||||
.include <minix.own.mk>
|
||||
|
||||
all install depend clean:
|
||||
cd ./es1370 && $(MAKE) $@
|
||||
cd ./es1371 && $(MAKE) $@
|
||||
SUBDIR= common .WAIT es1370 es1371 sb16
|
||||
|
||||
.include <minix.subdir.mk>
|
||||
|
|
13
drivers/audio/Makefile.inc
Normal file
13
drivers/audio/Makefile.inc
Normal file
|
@ -0,0 +1,13 @@
|
|||
.include <minix.own.mk>
|
||||
|
||||
LIBCOMMON != cd ${.CURDIR}/../common && ${PRINTOBJDIR}
|
||||
CPPFLAGS+=-I${.CURDIR}/../common
|
||||
DPADD+= ${LIBCOMMON}/libcommon.a
|
||||
LDADD+= -L${LIBCOMMON} -lcommon
|
||||
|
||||
DPADD+= ${LIBSYS}
|
||||
LDADD+= -lsys
|
||||
|
||||
.if exists(${.CURDIR}/../../Makefile.inc)
|
||||
.include "${.CURDIR}/../../Makefile.inc"
|
||||
.endif
|
|
@ -1,7 +1,7 @@
|
|||
***** Minix 3 Audio drivers *****
|
||||
|
||||
Directories:
|
||||
framework/ Generic driver framework
|
||||
common/ Generic driver framework
|
||||
es1370/ ES1370 driver
|
||||
es1371/ ES1371 driver
|
||||
|
||||
|
|
8
drivers/audio/common/Makefile
Normal file
8
drivers/audio/common/Makefile
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Makefile for the common audio framework
|
||||
|
||||
LIBISPRIVATE= yes
|
||||
|
||||
LIB= common
|
||||
SRCS= audio_fw.c liveupdate.c
|
||||
|
||||
.include <minix.lib.mk>
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef AUDIO_FW_H
|
||||
#define AUDIO_FW_H
|
||||
|
||||
#include "../../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <sys/ioc_sound.h>
|
||||
|
||||
|
|
@ -1,37 +1,9 @@
|
|||
# Makefile for the ES1371 sounddriver (SB16)
|
||||
PROG= es1370
|
||||
SRCS= es1370.c ak4531.c pci_helper.c
|
||||
|
||||
# directories
|
||||
u = /usr
|
||||
i = $u/include
|
||||
s = $i/sys
|
||||
m = $i/minix
|
||||
b = $i/ibm
|
||||
gen_drv_dir = ../../gen_drivers/cyclic_dma
|
||||
|
||||
# programs, flags, etc.
|
||||
CC = exec cc
|
||||
CFLAGS = -I$i
|
||||
LDFLAGS = -i
|
||||
LIBS = -lsys
|
||||
|
||||
# build local binary
|
||||
all: es1370
|
||||
|
||||
es1370: es1370.o ak4531.o audio_fw.o liveupdate.o pci_helper.o
|
||||
$(CC) -o $@ $(LDFLAGS) es1370.o ak4531.o audio_fw.o liveupdate.o pci_helper.o $(LIBS)
|
||||
|
||||
audio_fw.o liveupdate.o: ../framework/audio_fw.c ../framework/liveupdate.c ../framework/audio_fw.h
|
||||
$(CC) -c ../framework/audio_fw.c ../framework/liveupdate.c
|
||||
|
||||
install: /usr/sbin/es1370
|
||||
/usr/sbin/es1370: es1370
|
||||
install -o root -S 1024k -c $? $@
|
||||
|
||||
# clean up local files
|
||||
clean:
|
||||
rm -f *.o *.bak core es1370
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
||||
MAN=
|
||||
|
||||
BINDIR?= /usr/sbin
|
||||
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define AK4531_H
|
||||
/* best viewed with tabsize=4 */
|
||||
|
||||
#include "../../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <minix/sound.h>
|
||||
|
||||
_PROTOTYPE( int ak4531_init, (u16_t base, u16_t status_reg, u16_t bit,
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
#include <machine/pci.h>
|
||||
|
||||
#include "../framework/audio_fw.h"
|
||||
#include "audio_fw.h"
|
||||
#include "es1370.h"
|
||||
#include "ak4531.h"
|
||||
#include "pci_helper.h"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
/* best viewed with tabsize=4 */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include "../../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <sys/ioc_sound.h>
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* best viewed with tabsize 4 */
|
||||
|
||||
#include "../../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -1,54 +1,9 @@
|
|||
# Makefile for the ES1371 sounddriver (SB16)
|
||||
PROG= es1371
|
||||
SRCS= es1371.c AC97.c pci_helper.c wait.c sample_rate_converter.c
|
||||
|
||||
# directories
|
||||
u = /usr
|
||||
i = $u/include
|
||||
s = $i/sys
|
||||
m = $i/minix
|
||||
b = $i/ibm
|
||||
|
||||
# programs, flags, etc.
|
||||
CC = exec cc
|
||||
CFLAGS = -I$i
|
||||
LDFLAGS = -i
|
||||
LIBS = -lsys
|
||||
|
||||
PROGRAM_NAME = es1371
|
||||
INSTALL_BIN = /usr/sbin/$(PROGRAM_NAME)
|
||||
OBJ = es1371.o AC97.o audio_fw.o liveupdate.o pci_helper.o wait.o sample_rate_converter.o
|
||||
|
||||
|
||||
|
||||
# build local binary
|
||||
all: $(PROGRAM_NAME)
|
||||
|
||||
|
||||
$(PROGRAM_NAME): $(OBJ)
|
||||
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
||||
|
||||
|
||||
audio_fw.o liveupdate.o: ../framework/audio_fw.c ../framework/liveupdate.c ../framework/audio_fw.h
|
||||
$(CC) -c ../framework/audio_fw.c ../framework/liveupdate.c
|
||||
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
|
||||
install: $(INSTALL_BIN)
|
||||
|
||||
|
||||
$(INSTALL_BIN): $(PROGRAM_NAME)
|
||||
install -o root -S 1024k -c $? $@
|
||||
|
||||
|
||||
# clean up local files
|
||||
clean:
|
||||
rm -f $(OBJ) $(PROGRAM_NAME) core
|
||||
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
||||
|
||||
MAN=
|
||||
|
||||
BINDIR?= /usr/sbin
|
||||
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
#include <machine/pci.h>
|
||||
|
||||
#include "../framework/audio_fw.h"
|
||||
#include "audio_fw.h"
|
||||
#include "es1371.h"
|
||||
#include "AC97.h"
|
||||
#include "sample_rate_converter.h"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
/* best viewed with tabsize=4 */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include "../../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <sys/ioc_sound.h>
|
||||
#include <minix/sound.h>
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* best viewed with tabsize 4 */
|
||||
|
||||
#include "../../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "../../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <sys/types.h>
|
||||
#include "pci_helper.h"
|
||||
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
CC = exec cc
|
||||
|
||||
all: audio_fw.o liveupdate.o
|
||||
|
||||
audio_fw.o liveupdate.o:
|
||||
$(CC) -c audio_fw.c liveupdate.c
|
||||
|
||||
clean:
|
||||
rm -f a.out *.bak core errs audio_fw.o liveupdate.o
|
|
@ -1,39 +1,9 @@
|
|||
# Makefile for the Sound Blaster 16 driver (SB16)
|
||||
PROG= sb16
|
||||
SRCS= sb16.c mixer.c
|
||||
|
||||
# directories
|
||||
u = /usr
|
||||
i = $u/include
|
||||
s = $i/sys
|
||||
m = $i/minix
|
||||
b = $i/ibm
|
||||
d = ..
|
||||
|
||||
# programs, flags, etc.
|
||||
CC = exec cc
|
||||
CFLAGS = -I$i
|
||||
LDFLAGS = -i
|
||||
LIBS = -lsys
|
||||
|
||||
|
||||
# build local binary
|
||||
all build: sb16
|
||||
|
||||
sb16: sb16.o mixer.o audio_fw.o liveupdate.o
|
||||
$(CC) -o $@ $(LDFLAGS) sb16.o mixer.o audio_fw.o liveupdate.o $(LIBS)
|
||||
|
||||
audio_fw.o liveupdate.o: ../framework/audio_fw.c ../framework/liveupdate.c ../framework/audio_fw.h
|
||||
$(CC) -c ../framework/audio_fw.c ../framework/liveupdate.c
|
||||
|
||||
# install with other drivers
|
||||
install: /usr/sbin/sb16
|
||||
/usr/sbin/sb16: sb16
|
||||
install -o root -S 512k -c $? $@
|
||||
|
||||
# clean up local files
|
||||
clean:
|
||||
rm -f *.o *.bak sb16
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
||||
MAN=
|
||||
|
||||
BINDIR?= /usr/sbin
|
||||
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define SB16_H
|
||||
|
||||
#include <minix/sound.h>
|
||||
#include "../framework/audio_fw.h"
|
||||
#include "audio_fw.h"
|
||||
|
||||
#define AUDIO 0
|
||||
#define MIXER 1
|
||||
|
|
|
@ -1,39 +1,12 @@
|
|||
# Makefile for the BIOS disk driver (BIOS_WINI)
|
||||
DRIVER = bios_wini
|
||||
PROG= bios_wini
|
||||
SRCS= bios_wini.c
|
||||
|
||||
# directories
|
||||
u = /usr
|
||||
i = $u/include
|
||||
s = $i/sys
|
||||
m = $i/minix
|
||||
b = $i/ibm
|
||||
d = ..
|
||||
DPADD+= ${LIBDRIVER} ${LIBSYS} ${LIBTIMERS}
|
||||
LDADD+= -ldriver -lsys -ltimers
|
||||
|
||||
# programs, flags, etc.
|
||||
MAKE = exec make
|
||||
CC = exec cc
|
||||
CFLAGS = -I$i $(CPROFILE)
|
||||
LDFLAGS = -i -L../libdriver
|
||||
LIBS = -ldriver -lsys -lsys -ltimers
|
||||
|
||||
OBJ = bios_wini.o
|
||||
|
||||
# build local binary
|
||||
all build: $(DRIVER)
|
||||
$(DRIVER): $(OBJ)
|
||||
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
||||
install $(DRIVER)
|
||||
|
||||
# install with other drivers
|
||||
install: /sbin/$(DRIVER)
|
||||
/sbin/$(DRIVER): $(DRIVER)
|
||||
install -o root -cs $? $@
|
||||
|
||||
# clean up local files
|
||||
clean:
|
||||
rm -f $(DRIVER) *.o *.bak
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c > .depend
|
||||
MAN=
|
||||
|
||||
BINDIR?= /sbin
|
||||
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
* 14 May 2000 by Kees J. Bot: d-d/i rewrite.
|
||||
*/
|
||||
|
||||
#include "../drivers.h"
|
||||
#include "../libdriver/driver.h"
|
||||
#include "../libdriver/drvlib.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <minix/driver.h>
|
||||
#include <minix/drvlib.h>
|
||||
#include <minix/sysutil.h>
|
||||
#include <minix/safecopies.h>
|
||||
#include <sys/ioc_disk.h>
|
||||
|
|
|
@ -1,39 +1,17 @@
|
|||
##
|
||||
## Makefile for Dec21140A ethernet board driver
|
||||
##
|
||||
PROG= dec21140A
|
||||
SRCS= dec21140A.c
|
||||
|
||||
## Programs, flags, etc.
|
||||
DRIVER = dec21140A
|
||||
DPADD+= ${LIBSYS}
|
||||
LDADD+= -lsys
|
||||
|
||||
debug = 0
|
||||
MAN=
|
||||
|
||||
CC = exec cc
|
||||
LD = $(CC)
|
||||
CPPFLAGS= -I.. -I/usr/include -Ddebug=$(debug) $(CPROFILE)
|
||||
CFLAGS = -ws -w -Wall $(CPPFLAGS)
|
||||
LDFLAGS = -i -o $@
|
||||
BINDIR?= /usr/sbin
|
||||
|
||||
SRCS = dec21140A.c
|
||||
OBJS = dec21140A.o
|
||||
LIBS = -lsys # -ltimers
|
||||
debug= 0
|
||||
CPPFLAGS+= -Ddebug=${debug} -ws -w -Wall
|
||||
|
||||
## Build rules
|
||||
all build: $(DRIVER)
|
||||
|
||||
$(DRIVER): $(OBJS)
|
||||
$(CC) $(OBJS) $(LIBS) $(LDFLAGS)
|
||||
install -S 16k $(DRIVER)
|
||||
|
||||
## Install with other drivers
|
||||
install: /usr/sbin/$(DRIVER)
|
||||
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||
install -o root -cs $? $@
|
||||
|
||||
## Generate dependencies
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
||||
|
||||
## Clean directory
|
||||
clean:
|
||||
@rm -f $(DRIVER) *.o *.BAK *~
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
* Created: Mar 2008 by Nicolas Tittley <first.last@ google's mail>
|
||||
*/
|
||||
|
||||
#include "../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <machine/pci.h>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
* I/O could be used as well but would result in poor performance.
|
||||
*/
|
||||
|
||||
#include "../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
|
||||
#include <net/gen/ether.h>
|
||||
#include <net/gen/eth_io.h>
|
||||
|
|
|
@ -1,38 +1,12 @@
|
|||
# Makefile for dp8390 driver
|
||||
DRIVER = dp8390
|
||||
PROG= dp8390
|
||||
SRCS= 3c503.c dp8390.c ne2000.c rtl8029.c wdeth.c
|
||||
|
||||
# directories
|
||||
u = /usr
|
||||
i = $u/include
|
||||
s = $i/sys
|
||||
m = $i/minix
|
||||
b = $i/ibm
|
||||
d = ..
|
||||
DPADD+= ${LIBSYS} ${LIBTIMERS}
|
||||
LDADD+= -lsys -ltimers
|
||||
|
||||
# programs, flags, etc.
|
||||
CC = exec cc
|
||||
CFLAGS = -I$i $(CPROFILE)
|
||||
LDFLAGS = -i
|
||||
LIBS = -lsys -ltimers
|
||||
|
||||
OBJ = 3c503.o dp8390.o ne2000.o rtl8029.o wdeth.o
|
||||
|
||||
# build local binary
|
||||
all build: $(DRIVER)
|
||||
$(DRIVER): $(OBJ)
|
||||
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
||||
install -S 64k $(DRIVER)
|
||||
|
||||
# install with other drivers
|
||||
install: /usr/sbin/$(DRIVER)
|
||||
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||
install -o root -cs $? $@
|
||||
|
||||
# clean up local files
|
||||
clean:
|
||||
rm -f *.o *.bak $(DRIVER)
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
||||
MAN=
|
||||
|
||||
BINDIR?= /usr/sbin
|
||||
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
* Added support for 3c503 boards.
|
||||
*/
|
||||
|
||||
#include "../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <minix/com.h>
|
||||
|
|
|
@ -7,7 +7,7 @@ specific code, the rest is in dp8390.c
|
|||
Created: March 15, 1994 by Philip Homburg <philip@f-mnx.phicoh.com>
|
||||
*/
|
||||
|
||||
#include "../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
|
||||
#include <net/gen/ether.h>
|
||||
#include <net/gen/eth_io.h>
|
||||
|
|
|
@ -6,7 +6,7 @@ Initialization of PCI DP8390-based ethernet cards
|
|||
Created: April 2000 by Philip Homburg <philip@f-mnx.phicoh.com>
|
||||
*/
|
||||
|
||||
#include "../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
|
|
|
@ -4,7 +4,7 @@ wdeth.c
|
|||
Created: March 14, 1994 by Philip Homburg
|
||||
*/
|
||||
|
||||
#include "../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
|
||||
#include <net/gen/ether.h>
|
||||
#include <net/gen/eth_io.h>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
** $Id$
|
||||
*/
|
||||
|
||||
#include "drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <minix/com.h>
|
||||
#include <net/gen/ether.h>
|
||||
#include <net/gen/eth_io.h>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
** $Id$
|
||||
*/
|
||||
|
||||
#include "drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <net/gen/ether.h>
|
||||
#include <net/gen/eth_io.h>
|
||||
#include "dp.h"
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
** $Id$
|
||||
*/
|
||||
|
||||
#include "drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <minix/com.h>
|
||||
#include <net/gen/ether.h>
|
||||
#include <net/gen/eth_io.h>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
** $Id$
|
||||
*/
|
||||
|
||||
#include "drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <minix/com.h>
|
||||
#include <net/gen/ether.h>
|
||||
#include <net/gen/eth_io.h>
|
||||
|
|
|
@ -1,42 +1,17 @@
|
|||
##
|
||||
## Makefile for ISA ethernet drivers May 02, 2000
|
||||
##
|
||||
PROG= dpeth
|
||||
SRCS= 3c501.c 3c509.c 3c503.c ne.c wd.c 8390.c devio.c netbuff.c dp.c
|
||||
|
||||
## Programs, flags, etc.
|
||||
DRIVER = dpeth
|
||||
DPADD+= ${LIBSYS}
|
||||
LDADD+= -lsys
|
||||
|
||||
debug = 0
|
||||
MAN=
|
||||
|
||||
CC = exec cc
|
||||
LD = $(CC)
|
||||
CPPFLAGS= -I.. -I/usr/include -Ddebug=$(debug) $(CPROFILE)
|
||||
CFLAGS = -ws $(CPPFLAGS)
|
||||
LDFLAGS = -i -o $@
|
||||
BINDIR?= /usr/sbin
|
||||
|
||||
SRCS = 3c501.c 3c509.c 3c503.c ne.c wd.c 8390.c devio.c netbuff.c dp.c
|
||||
OBJS = 3c501.o 3c509.o 3c503.o ne.o wd.o 8390.o devio.o netbuff.o dp.o
|
||||
LIBS = -lsys
|
||||
debug= 0
|
||||
CPPFLAGS+= -Ddebug=$(debug)
|
||||
|
||||
## Build rules
|
||||
all build: $(DRIVER)
|
||||
|
||||
$(DRIVER): $(OBJS)
|
||||
$(CC) $(OBJS) $(LIBS) $(LDFLAGS)
|
||||
install -S 16k $(DRIVER)
|
||||
|
||||
## Install with other drivers
|
||||
install: /usr/sbin/$(DRIVER)
|
||||
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||
install -o root -cs $? $@
|
||||
|
||||
## Generate dependencies
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
||||
|
||||
## Clean directory
|
||||
clean:
|
||||
@rm -f $(DRIVER) *.o *.BAK
|
||||
|
||||
|
||||
## end
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
** $Id$
|
||||
*/
|
||||
|
||||
#include "drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <net/gen/ether.h>
|
||||
#include <net/gen/eth_io.h>
|
||||
#include "dp.h"
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
** DL_STAT_REPLY)
|
||||
*/
|
||||
|
||||
#include "drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <minix/endpoint.h>
|
||||
#include <net/gen/ether.h>
|
||||
#include <net/gen/eth_io.h>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
** $Id$
|
||||
*/
|
||||
|
||||
#include "drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <net/gen/ether.h>
|
||||
#include <net/gen/eth_io.h>
|
||||
#include "dp.h"
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
** $Id$
|
||||
*/
|
||||
|
||||
#include "drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <net/gen/ether.h>
|
||||
#include <net/gen/eth_io.h>
|
||||
#include "dp.h"
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
** $Id$
|
||||
*/
|
||||
|
||||
#include "drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <net/gen/ether.h>
|
||||
#include <net/gen/eth_io.h>
|
||||
#include "dp.h"
|
||||
|
|
|
@ -1,42 +1,14 @@
|
|||
#
|
||||
# Makefile for the Intel Pro/1000 driver.
|
||||
#
|
||||
DRIVER = e1000
|
||||
PROG= e1000
|
||||
SRCS= e1000.c
|
||||
|
||||
#
|
||||
# Directories.
|
||||
#
|
||||
u = /usr
|
||||
i = $u/include
|
||||
s = $i/sys
|
||||
m = $i/minix
|
||||
b = $i/ibm
|
||||
d = ..
|
||||
DPADD+= ${LIBSYS} ${LIBTIMERS}
|
||||
LDADD+= -lsys -ltimers
|
||||
|
||||
#
|
||||
# Build Programs, Flags and Variables.
|
||||
#
|
||||
CC = exec cc
|
||||
CFLAGS = -I$i $(CPROFILE)
|
||||
LDFLAGS = -i
|
||||
LIBS = -lsys -ltimers
|
||||
OBJ = e1000.o
|
||||
MAN=
|
||||
|
||||
# build local binary
|
||||
all build: $(DRIVER)
|
||||
$(DRIVER): $(OBJ)
|
||||
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
||||
install -S 128k $(DRIVER)
|
||||
|
||||
# install with other drivers
|
||||
install: /usr/sbin/$(DRIVER)
|
||||
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||
install -o root -cs $? $@
|
||||
|
||||
# clean up local files
|
||||
clean:
|
||||
rm -f *.o $(DRIVER)
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
||||
BINDIR?= /usr/sbin
|
||||
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* Gigabit Ethernet Controllers.
|
||||
*/
|
||||
|
||||
#include "../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <stdlib.h>
|
||||
#include <net/gen/ether.h>
|
||||
#include <net/gen/eth_io.h>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#ifndef __E1000_H
|
||||
#define __E1000_H
|
||||
|
||||
#include "../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <stdlib.h>
|
||||
#include <net/hton.h>
|
||||
#include <net/gen/ether.h>
|
||||
|
|
|
@ -1,29 +1,14 @@
|
|||
# Makefile for filter driver
|
||||
DRIVER = filter
|
||||
PROG= filter
|
||||
SRCS= main.c sum.c driver.c util.c optset.c crc.c md5.c
|
||||
|
||||
# programs, flags, etc.
|
||||
CC = cc
|
||||
CFLAGS = -I.. -DDEBUG=1 -DDEBUG2=0
|
||||
LDFLAGS =
|
||||
LIBS = -lsys
|
||||
DPADD+= ${LIBSYS}
|
||||
LDADD+= -lsys
|
||||
|
||||
OBJ = main.o sum.o driver.o util.o optset.o crc.o md5.o
|
||||
MAN=
|
||||
|
||||
# build local binary
|
||||
all build: $(DRIVER)
|
||||
$(DRIVER): $(OBJ)
|
||||
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
||||
|
||||
# install with other drivers
|
||||
install: /usr/sbin/$(DRIVER)
|
||||
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||
install -o root -c $? $@
|
||||
|
||||
# clean up local files
|
||||
clean:
|
||||
rm -f *.o *.bak $(DRIVER)
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
||||
BINDIR?= /usr/sbin
|
||||
|
||||
CPPFLAGS+= -DDEBUG=1 -DDEBUG2=0
|
||||
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -1,39 +1,12 @@
|
|||
# Makefile for the floppy disk driver (FLOPPY)
|
||||
DRIVER = floppy
|
||||
PROG= floppy
|
||||
SRCS= floppy.c liveupdate.c
|
||||
|
||||
# directories
|
||||
u = /usr
|
||||
i = $u/include
|
||||
s = $i/sys
|
||||
m = $i/minix
|
||||
b = $i/ibm
|
||||
d = ..
|
||||
DPADD+= ${LIBDRIVER} ${LIBSYS} ${LIBTIMERS}
|
||||
LDADD+= -ldriver -lsys -ltimers
|
||||
|
||||
# programs, flags, etc.
|
||||
MAKE = exec make
|
||||
CC = exec cc
|
||||
CFLAGS = -I$i $(CPROFILE)
|
||||
LDFLAGS = -i -L../libdriver
|
||||
LIBS = -ldriver -lsys -ltimers
|
||||
|
||||
OBJ = floppy.o liveupdate.o
|
||||
|
||||
# build local binary
|
||||
all build: $(DRIVER)
|
||||
$(DRIVER): $(OBJ)
|
||||
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
||||
install -S 16k $(DRIVER)
|
||||
|
||||
# install with other drivers
|
||||
install: /sbin/$(DRIVER)
|
||||
/sbin/$(DRIVER): $(DRIVER)
|
||||
install -o root -cs $? $@
|
||||
|
||||
# clean up local files
|
||||
clean:
|
||||
rm -f $(DRIVER) *.o *.bak
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c > .depend
|
||||
MAN=
|
||||
|
||||
BINDIR?= /sbin
|
||||
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "../drivers.h"
|
||||
#include "../libdriver/driver.h"
|
||||
#include "../libdriver/drvlib.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <minix/driver.h>
|
||||
#include <minix/drvlib.h>
|
||||
|
||||
|
|
|
@ -1,38 +1,12 @@
|
|||
# Makefile for Intel Pro/100 driver (FXP)
|
||||
DRIVER = fxp
|
||||
PROG= fxp
|
||||
SRCS= fxp.c mii.c
|
||||
|
||||
# directories
|
||||
u = /usr
|
||||
i = $u/include
|
||||
s = $i/sys
|
||||
m = $i/minix
|
||||
b = $i/ibm
|
||||
d = ..
|
||||
DPADD+= ${LIBSYS} ${LIBTIMERS}
|
||||
LDADD+= -lsys -ltimers
|
||||
|
||||
# programs, flags, etc.
|
||||
CC = exec cc
|
||||
CFLAGS = -I$i $(CPROFILE)
|
||||
LDFLAGS = -i
|
||||
LIBS = -lsys -ltimers
|
||||
|
||||
OBJ = fxp.o mii.o
|
||||
|
||||
# build local binary
|
||||
all build: $(DRIVER)
|
||||
$(DRIVER): $(OBJ)
|
||||
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
||||
install -S 128k $(DRIVER)
|
||||
|
||||
# install with other drivers
|
||||
install: /usr/sbin/$(DRIVER)
|
||||
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||
install -o root -cs $? $@
|
||||
|
||||
# clean up local files
|
||||
clean:
|
||||
rm -f *.o *.bak $(DRIVER)
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
||||
MAN=
|
||||
|
||||
BINDIR?= /usr/sbin
|
||||
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
* Created: Nov 2004 by Philip Homburg <philip@f-mnx.phicoh.com>
|
||||
*/
|
||||
|
||||
#include "../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <net/hton.h>
|
||||
|
|
|
@ -6,7 +6,7 @@ Created: Nov 2004 by Philip Homburg <philip@f-mnx.phicoh.com>
|
|||
Media Independent (Ethernet) Interface functions
|
||||
*/
|
||||
|
||||
#include "../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
#if __minix_vmd
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
|
|
@ -1,44 +1,12 @@
|
|||
#
|
||||
# Makefile for the hello driver.
|
||||
#
|
||||
DRIVER = hello
|
||||
PROG= hello
|
||||
SRCS= hello.c
|
||||
|
||||
#
|
||||
# Directories.
|
||||
#
|
||||
u = /usr
|
||||
i = $u/include
|
||||
s = $i/sys
|
||||
m = $i/minix
|
||||
b = $i/ibm
|
||||
d = ..
|
||||
DPADD+= ${LIBDRIVER} ${LIBSYS}
|
||||
LDADD+= -ldriver -lsys
|
||||
|
||||
#
|
||||
# Build Programs, Flags and Variables.
|
||||
#
|
||||
CC = exec cc
|
||||
CFLAGS = -I$i $(CPROFILE)
|
||||
LDFLAGS = -i -L../libdriver
|
||||
LIBS = -ldriver -lsys
|
||||
OBJ = hello.o
|
||||
MAN=
|
||||
|
||||
# build local binary
|
||||
all build: $(DRIVER)
|
||||
$(DRIVER): $(OBJ)
|
||||
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
||||
install -S 128k $(DRIVER)
|
||||
BINDIR?= /usr/sbin
|
||||
|
||||
# install with other drivers
|
||||
install: /usr/sbin/$(DRIVER)
|
||||
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||
install -o root -cs $? $@
|
||||
|
||||
# clean up local files
|
||||
clean:
|
||||
rm -f *.o $(DRIVER)
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
||||
|
||||
# Include generated dependencies.
|
||||
include .depend
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include "../drivers.h"
|
||||
#include "../libdriver/driver.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <minix/driver.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <minix/ds.h>
|
||||
|
|
|
@ -1,38 +1,12 @@
|
|||
# Makefile for Intel Pro/100 driver (FXP)
|
||||
DRIVER = lance
|
||||
# Makefile for Lance driver
|
||||
PROG= lance
|
||||
SRCS= lance.c
|
||||
|
||||
# directories
|
||||
u = /usr
|
||||
i = $u/include
|
||||
s = $i/sys
|
||||
m = $i/minix
|
||||
b = $i/ibm
|
||||
d = ..
|
||||
DPADD+= ${LIBSYS}
|
||||
LDADD+= -lsys
|
||||
|
||||
# programs, flags, etc.
|
||||
CC = exec cc
|
||||
CFLAGS = -I$i $(CPROFILE)
|
||||
LDFLAGS = -i
|
||||
LIBS = -lsys
|
||||
#-lutils -ltimers
|
||||
MAN=
|
||||
|
||||
OBJ = lance.o
|
||||
|
||||
# build local binary
|
||||
all build: $(DRIVER)
|
||||
$(DRIVER): $(OBJ)
|
||||
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
||||
install -S 128k $(DRIVER)
|
||||
|
||||
# install with other drivers
|
||||
install: /usr/sbin/$(DRIVER)
|
||||
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||
install -o root -cs $? $@
|
||||
|
||||
# clean up local files
|
||||
clean:
|
||||
rm -f *.o *.bak $(DRIVER)
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
||||
BINDIR?= /usr/sbin
|
||||
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
#define VERBOSE 0 /* Verbose debugging output */
|
||||
#define LANCE_FKEY 0 /* Use function key to dump Lance stats */
|
||||
|
||||
#include "../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
|
||||
#include <net/hton.h>
|
||||
#include <net/gen/ether.h>
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
# Makefile for driver library
|
||||
|
||||
# Directories
|
||||
u = /usr
|
||||
i = $u/include
|
||||
s = $i/sys
|
||||
b = $i/ibm
|
||||
m = $i/minix
|
||||
|
||||
# Programs, flags, etc.
|
||||
CC = exec cc
|
||||
CFLAGS = -I$i $(CPROFILE)
|
||||
LDFLAGS = -i
|
||||
LIBS = -lsys
|
||||
LIB = libdriver.a
|
||||
|
||||
OBJECTS = driver.o drvlib.o mq.o
|
||||
|
||||
all build install: $(LIB)
|
||||
|
||||
$(LIB): $(OBJECTS)
|
||||
ar rc $(LIB) $(OBJECTS)
|
||||
|
||||
# $(CC) -c $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
||||
|
||||
clean:
|
||||
rm -f *.o *.bak *.a
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
||||
|
||||
|
|
@ -1,39 +1,12 @@
|
|||
# Makefile for log driver
|
||||
DRIVER = log
|
||||
PROG= log
|
||||
SRCS= log.c diag.c liveupdate.c
|
||||
|
||||
# directories
|
||||
u = /usr
|
||||
i = $u/include
|
||||
s = $i/sys
|
||||
m = $i/minix
|
||||
d = ..
|
||||
DPADD+= ${LIBDRIVER} ${LIBSYS}
|
||||
LDADD+= -ldriver -lsys
|
||||
|
||||
# programs, flags, etc.
|
||||
MAKE = exec make
|
||||
CC = exec cc
|
||||
CFLAGS = -I$i $(CPROFILE)
|
||||
LDFLAGS = -i -L../libdriver
|
||||
LIBS = -ldriver -lsys
|
||||
LIB_DEP = ../libdriver/libdriver.a
|
||||
|
||||
OBJ = log.o diag.o liveupdate.o
|
||||
|
||||
# build local binary
|
||||
all build: $(DRIVER)
|
||||
$(DRIVER): $(OBJ) $(LIB_DEP)
|
||||
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
||||
install -S 32kb $(DRIVER)
|
||||
|
||||
# install with other drivers
|
||||
install: $(DRIVER)
|
||||
install -o root -cs $(DRIVER) /sbin/$(DRIVER)
|
||||
|
||||
# clean up local files
|
||||
clean:
|
||||
rm -f $(DRIVER) *.o *.bak
|
||||
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c > .depend
|
||||
MAN=
|
||||
|
||||
BINDIR?= /sbin
|
||||
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Includes. */
|
||||
#include "../drivers.h"
|
||||
#include "../libdriver/driver.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <minix/driver.h>
|
||||
#include <minix/type.h>
|
||||
#include <minix/const.h>
|
||||
#include <minix/com.h>
|
||||
|
|
|
@ -1,56 +1,7 @@
|
|||
# Makefile for memory driver (MEMORY)
|
||||
DRIVER = memory
|
||||
# Makefile for memory driver and ramdisk
|
||||
|
||||
# directories
|
||||
u = /usr
|
||||
i = $u/include
|
||||
s = $i/sys
|
||||
m = $i/minix
|
||||
b = $i/ibm
|
||||
d = ..
|
||||
|
||||
# programs, flags, etc.
|
||||
MAKE = exec make
|
||||
CC = exec cc
|
||||
CFLAGS = -I$i
|
||||
LDFLAGS = -i -L../libdriver
|
||||
LIBS = -ldriver -lsys
|
||||
|
||||
# imgrd_s.s is the ACK assembler version of the ramdisk. For more portability,
|
||||
# use the C version imgrd.c. However, the C compiler takes too much memory
|
||||
# compiling imgrd.c.
|
||||
IMGRD=imgrd_s.o
|
||||
#IMGRD=imgrd.c
|
||||
|
||||
OBJ = memory.o $(IMGRD)
|
||||
|
||||
# build local binary
|
||||
all build: $(DRIVER)
|
||||
|
||||
$(DRIVER): ramdisk_image $(OBJ)
|
||||
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
||||
install -S 8k $(DRIVER)
|
||||
|
||||
imgrd.o: ramdisk/image.c
|
||||
|
||||
imgrd_s.o: ramdisk/image.s
|
||||
TMPDIR=/usr/tmp $(CC) -T /usr/tmp -c imgrd_s.s
|
||||
|
||||
ramdisk_image:
|
||||
cd ramdisk && make
|
||||
|
||||
# install with other drivers
|
||||
install: /usr/sbin/$(DRIVER)
|
||||
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||
install -o root -cs $? $@
|
||||
|
||||
# clean up local files
|
||||
clean:
|
||||
rm -f $(DRIVER) *.o *.bak
|
||||
cd ramdisk && make clean
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" memory.c ../libdriver/*.c > .depend
|
||||
cd ramdisk && make depend
|
||||
.include <minix.own.mk>
|
||||
|
||||
SUBDIR= ramdisk .WAIT memory_driver
|
||||
|
||||
.include <minix.subdir.mk>
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
#
|
||||
.sect .text; .sect .rom; .sect .data
|
||||
|
||||
! export symbols
|
||||
.define _imgrd, _imgrd_size
|
||||
|
||||
.sect .data
|
||||
_imgrd:
|
||||
0:
|
||||
#include "ramdisk/image.s"
|
||||
1:
|
||||
|
||||
! Use local labels to compute the size of _imgrd.
|
||||
_imgrd_size:
|
||||
.data4 [1b] - [0b]
|
17
drivers/memory/memory_driver/Makefile
Normal file
17
drivers/memory/memory_driver/Makefile
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Makefile for memory driver (MEMORY)
|
||||
.include <minix.own.mk>
|
||||
|
||||
PROG= memory
|
||||
SRCS= memory.c imgrd.c
|
||||
|
||||
DPADD+= ${LIBDRIVER} ${LIBSYS}
|
||||
LDADD+= -ldriver -lsys
|
||||
|
||||
MAN=
|
||||
|
||||
BINDIR?= /usr/sbin
|
||||
|
||||
CPPFLAGS.imgrd.c += -I${.CURDIR}/../ramdisk -T /usr/tmp
|
||||
|
||||
.include <minix.prog.mk>
|
||||
.include <minix.subdir.mk>
|
|
@ -8,7 +8,7 @@ Ramdisk that is part of the image
|
|||
|
||||
unsigned char imgrd[]=
|
||||
{
|
||||
#include "ramdisk/image.c"
|
||||
#include "image.c"
|
||||
};
|
||||
|
||||
size_t imgrd_size= sizeof(imgrd);
|
|
@ -15,15 +15,15 @@
|
|||
* Apr 20, 1992 device dependent/independent split (Kees J. Bot)
|
||||
*/
|
||||
|
||||
#include "../drivers.h"
|
||||
#include "../libdriver/driver.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <minix/driver.h>
|
||||
#include <sys/ioc_memory.h>
|
||||
#include <minix/ds.h>
|
||||
#include <minix/vm.h>
|
||||
#include <sys/mman.h>
|
||||
#include "../../kernel/const.h"
|
||||
#include "../../kernel/config.h"
|
||||
#include "../../kernel/type.h"
|
||||
#include "../../../kernel/const.h"
|
||||
#include "../../../kernel/config.h"
|
||||
#include "../../../kernel/type.h"
|
||||
|
||||
#include <machine/vm.h>
|
||||
|
|
@ -6,17 +6,14 @@ EXTRA=system.conf passwd
|
|||
|
||||
MAKEDEV=/usr/bin/MAKEDEV
|
||||
|
||||
all: image.c image.s
|
||||
all: image.c
|
||||
|
||||
clean:
|
||||
rm -rf $(PROGRAMS) $(EXTRA) bintoc image image.c image.s t proto.gen
|
||||
rm -rf $(PROGRAMS) $(EXTRA) bintoc image image.c t proto.gen
|
||||
|
||||
image.c: bintoc image
|
||||
./bintoc -o $@ image
|
||||
|
||||
image.s: image.c
|
||||
sed < image.c > $@ 's/^/.data1 /;s/,$$//' || { rm -f $@; false; }
|
||||
|
||||
# Note for cross compilation: this executable has to be compiled for the
|
||||
# host system
|
||||
bintoc: bintoc.c
|
||||
|
@ -85,8 +82,8 @@ sh: ../../../commands/ash/sh
|
|||
../../../commands/ash/sh:
|
||||
cd ../../../commands/ash && make sh
|
||||
|
||||
service: ../../../servers/rs/service
|
||||
install -s ../../../servers/rs/$@ $@
|
||||
service: ../../../servers/rs/service/service
|
||||
install -s ../../../servers/rs/service/$@ $@
|
||||
|
||||
../../../servers/rs/service:
|
||||
cd ../../../servers/rs && make service
|
||||
|
@ -103,10 +100,7 @@ system.conf: ../../../etc/system.conf
|
|||
passwd: ../../../etc/passwd
|
||||
install -s ../../../etc/$@ $@
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
||||
|
||||
proto.gen: $(MAKEDEV) proto.sh proto
|
||||
sh -e proto.sh >proto.gen
|
||||
|
||||
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -1,40 +1,12 @@
|
|||
# Makefile for the Orinoco wireless card (Prism chipset)
|
||||
DRIVER = orinoco
|
||||
|
||||
# directories
|
||||
u = /usr
|
||||
i = $u/include
|
||||
s = $i/sys
|
||||
m = $i/minix
|
||||
b = $i/ibm
|
||||
d = ..
|
||||
|
||||
# programs, flags, etc.
|
||||
CC = exec cc
|
||||
CFLAGS = -I$i $(CPROFILE)
|
||||
LDFLAGS = -i
|
||||
LIBS = -lsys -ltimers
|
||||
|
||||
OBJ = orinoco.o hermes.o
|
||||
|
||||
# build local binary
|
||||
all build: $(DRIVER)
|
||||
$(DRIVER): $(OBJ)
|
||||
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
||||
install -S 100kw $(DRIVER)
|
||||
|
||||
# install with other drivers
|
||||
install: /usr/sbin/$(DRIVER)
|
||||
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||
install -o root -cs $? $@
|
||||
|
||||
# clean up local files
|
||||
clean:
|
||||
rm -f $(DRIVER) *.o *.bak
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
||||
PROG= orinoco
|
||||
SRCS= orinoco.c hermes.c
|
||||
|
||||
DPADD+= ${LIBSYS} ${LIBTIMERS}
|
||||
LDADD+= -lsys -ltimers
|
||||
|
||||
MAN=
|
||||
|
||||
BINDIR?= /usr/sbin
|
||||
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#ifndef _HERMES_H
|
||||
#define _HERMES_H
|
||||
|
||||
#include "../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <net/gen/ether.h>
|
||||
#include <net/gen/eth_io.h>
|
||||
#include <net/hton.h>
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <string.h>
|
||||
#include <minix/syslib.h>
|
||||
#include <minix/type.h>
|
||||
|
|
|
@ -1,38 +1,12 @@
|
|||
# Makefile for PCI support
|
||||
DRIVER = pci
|
||||
PROG= pci
|
||||
SRCS= main.c pci.c pci_table.c
|
||||
|
||||
# directories
|
||||
u = /usr
|
||||
i = $u/include
|
||||
s = $i/sys
|
||||
m = $i/minix
|
||||
b = $i/ibm
|
||||
d = ..
|
||||
DPADD+= ${LIBSYS} ${LIBTIMERS}
|
||||
LDADD+= -lsys -ltimers
|
||||
|
||||
# programs, flags, etc.
|
||||
CC = cc
|
||||
CFLAGS = -I$i $(CPROFILE)
|
||||
LDFLAGS = -i
|
||||
LIBS = -lsys -ltimers
|
||||
|
||||
OBJ = main.o pci.o pci_table.o
|
||||
|
||||
# build local binary
|
||||
all build: $(DRIVER)
|
||||
$(DRIVER): $(OBJ)
|
||||
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
||||
install -S 32k $(DRIVER)
|
||||
|
||||
# install with other drivers
|
||||
install: /usr/sbin/$(DRIVER)
|
||||
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||
install -o root -cs $? $@
|
||||
|
||||
# clean up local files
|
||||
clean:
|
||||
rm -f *.o *.bak $(DRIVER)
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
||||
MAN=
|
||||
|
||||
BINDIR?= /usr/sbin
|
||||
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
main.c
|
||||
*/
|
||||
|
||||
#include "../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
|
||||
#include <minix/rs.h>
|
||||
#include <minix/endpoint.h>
|
||||
|
|
|
@ -8,7 +8,7 @@ Configure devices on the PCI bus
|
|||
Created: Jan 2000 by Philip Homburg <philip@cs.vu.nl>
|
||||
*/
|
||||
|
||||
#include "../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <assert.h>
|
||||
#include <machine/pci.h>
|
||||
#include <machine/vm.h>
|
||||
|
|
|
@ -13,7 +13,7 @@ See the Linux PCI ID Repository <http://pciids.sourceforge.net/>.
|
|||
* 2004-08-08 (asw) add Intel 82371AB (0x8086, 0x7100)
|
||||
*/
|
||||
|
||||
#include "../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
#include "pci.h"
|
||||
#if __minix_vmd
|
||||
#include "config.h"
|
||||
|
|
|
@ -1,39 +1,12 @@
|
|||
# Makefile for Centronics printer driver (PRINTER)
|
||||
DRIVER = printer
|
||||
PROG= printer
|
||||
SRCS= printer.c liveupdate.c
|
||||
|
||||
# directories
|
||||
u = /usr
|
||||
i = $u/include
|
||||
s = $i/sys
|
||||
m = $i/minix
|
||||
b = $i/ibm
|
||||
d = ..
|
||||
DPADD+= ${LIBSYS}
|
||||
LDADD+= -lsys
|
||||
|
||||
# programs, flags, etc.
|
||||
CC = exec cc
|
||||
CFLAGS = -I$i $(CPROFILE)
|
||||
LDFLAGS = -i
|
||||
LIBS = -lsys
|
||||
|
||||
OBJ = printer.o liveupdate.o
|
||||
|
||||
# build local binary
|
||||
all build: $(DRIVER)
|
||||
$(DRIVER): $(OBJ)
|
||||
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
||||
install $(DRIVER)
|
||||
|
||||
# install with other drivers
|
||||
install: /usr/sbin/$(DRIVER)
|
||||
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||
install -o root -c $? $@
|
||||
# install -o root -cs $? $@
|
||||
|
||||
# clean up local files
|
||||
clean:
|
||||
rm -f *.o *.bak $(DRIVER)
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
||||
MAN=
|
||||
|
||||
BINDIR?= /usr/sbin
|
||||
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
|
||||
/* State management variables. */
|
||||
EXTERN int writing;
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
*/
|
||||
|
||||
#include <minix/endpoint.h>
|
||||
#include "../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
|
||||
/* Control bits (in port_base + 2). "+" means positive logic and "-" means
|
||||
* negative logic. Most of the signals are negative logic on the pins but
|
||||
|
|
|
@ -1,47 +1,15 @@
|
|||
# Makefile for random driver (RANDOM)
|
||||
DRIVER = random
|
||||
PROG= random
|
||||
SRCS= main.c random.c sha2.c rijndael_api.c rijndael_alg.c
|
||||
|
||||
# directories
|
||||
u = /usr
|
||||
i = $u/include
|
||||
s = $i/sys
|
||||
m = $i/minix
|
||||
b = $i/ibm
|
||||
d = ..
|
||||
.PATH: ${.CURDIR}/aes
|
||||
|
||||
# programs, flags, etc.
|
||||
MAKE = exec make
|
||||
CC = exec cc
|
||||
CFLAGS = -I$i $(CPROFILE)
|
||||
LDFLAGS = -i -L../libdriver
|
||||
LIBS = -ldriver -lsys
|
||||
LIB_DEPS=../libdriver/libdriver.a
|
||||
DPADD+= ${LIBDRIVER} ${LIBSYS}
|
||||
LDADD+= -ldriver -lsys
|
||||
|
||||
OBJ = main.o random.o sha2.o aes/rijndael_api.o aes/rijndael_alg.o
|
||||
MAN=
|
||||
|
||||
# build local binary
|
||||
all build: $(DRIVER)
|
||||
$(DRIVER): $(OBJ) $(LIB_DEPS)
|
||||
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
||||
install -S 8k $(DRIVER)
|
||||
|
||||
aes/rijndael_api.o:
|
||||
$(CC) -c -o $@ aes/rijndael_api.c
|
||||
|
||||
aes/rijndael_alg.o:
|
||||
$(CC) -c -o $@ aes/rijndael_alg.c
|
||||
|
||||
# install with other drivers
|
||||
install: /usr/sbin/$(DRIVER)
|
||||
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||
install -o root -cs $? $@
|
||||
|
||||
# clean up local files
|
||||
clean:
|
||||
rm -f $(DRIVER) *.o *.bak aes/*.o
|
||||
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c aes/*.c > .depend
|
||||
BINDIR?= /usr/sbin
|
||||
|
||||
.include <minix.prog.mk>
|
||||
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
* /dev/random - random number generator
|
||||
*/
|
||||
|
||||
#include "../drivers.h"
|
||||
#include "../libdriver/driver.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <minix/driver.h>
|
||||
#include <minix/type.h>
|
||||
|
||||
#include "assert.h"
|
||||
|
|
|
@ -7,7 +7,7 @@ The random number generator collects data from the kernel and compressed
|
|||
that data into a seed for a psuedo random number generator.
|
||||
*/
|
||||
|
||||
#include "../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
#include "../../kernel/const.h"
|
||||
#include "assert.h"
|
||||
|
||||
|
|
|
@ -1,31 +1,14 @@
|
|||
# Makefile for readclock 'driver'
|
||||
DRIVER = readclock.drv
|
||||
PROG= readclock.drv
|
||||
SRCS= readclock.c
|
||||
|
||||
# programs, flags, etc.
|
||||
MAKE = exec make
|
||||
CC = exec cc
|
||||
CFLAGS=-D_MINIX=1 -D_POSIX_SOURCE=1 -D_SYSTEM=1
|
||||
LDFLAGS = -i
|
||||
LIBS = -lsys
|
||||
DPADD+= ${LIBSYS}
|
||||
LDADD+= -lsys
|
||||
|
||||
OBJ = readclock.o
|
||||
MAN=
|
||||
|
||||
# build local binary
|
||||
all build: $(DRIVER)
|
||||
$(DRIVER): $(OBJ)
|
||||
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
||||
install $(DRIVER)
|
||||
|
||||
# install with other drivers
|
||||
install: /sbin/$(DRIVER)
|
||||
/sbin/$(DRIVER): $(DRIVER)
|
||||
install -o root -cs $? $@
|
||||
|
||||
# clean up local files
|
||||
clean:
|
||||
rm -f $(DRIVER) *.o *.bak
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
||||
BINDIR?= /sbin
|
||||
|
||||
CPPFLAGS+= -D_MINIX=1 -D_POSIX_SOURCE=1 -D_SYSTEM=1
|
||||
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -1,39 +1,12 @@
|
|||
# Makefile for the Realtek RTL8139 ethernet driver (RTL8139)
|
||||
DRIVER = rtl8139
|
||||
PROG= rtl8139
|
||||
SRCS= rtl8139.c liveupdate.c
|
||||
|
||||
# directories
|
||||
u = /usr
|
||||
i = $u/include
|
||||
s = $i/sys
|
||||
m = $i/minix
|
||||
b = $i/ibm
|
||||
d = ..
|
||||
DPADD+= ${LIBSYS} ${LIBTIMERS}
|
||||
LDADD+= -lsys -ltimers
|
||||
|
||||
# programs, flags, etc.
|
||||
MAKE = exec make
|
||||
CC = exec cc
|
||||
CFLAGS = -I$i $(CPROFILE)
|
||||
LDFLAGS = -i
|
||||
LIBS = -lsys -ltimers
|
||||
|
||||
OBJ = rtl8139.o liveupdate.o
|
||||
|
||||
# build local binary
|
||||
all build: $(DRIVER)
|
||||
$(DRIVER): $(OBJ)
|
||||
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
||||
install -S 64kw $(DRIVER)
|
||||
|
||||
# install with other drivers
|
||||
install: /usr/sbin/$(DRIVER)
|
||||
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||
install -o root -cs $? $@
|
||||
|
||||
# clean up local files
|
||||
clean:
|
||||
rm -f $(DRIVER) *.o *.bak
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
||||
MAN=
|
||||
|
||||
BINDIR?= /usr/sbin
|
||||
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -4,7 +4,7 @@ ibm/rtl8139.h
|
|||
Created: Aug 2003 by Philip Homburg <philip@cs.vu.nl>
|
||||
*/
|
||||
|
||||
#include "../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -1,39 +1,12 @@
|
|||
# Makefile for the Realtek RTL8169 ethernet driver (RTL8169)
|
||||
DRIVER = rtl8169
|
||||
PROG= rtl8169
|
||||
SRCS= rtl8169.c
|
||||
|
||||
# directories
|
||||
u = /usr
|
||||
i = $u/include
|
||||
s = $i/sys
|
||||
m = $i/minix
|
||||
b = $i/ibm
|
||||
d = ..
|
||||
DPADD+= ${LIBSYS} ${LIBTIMERS}
|
||||
LDADD+= -lsys -ltimers
|
||||
|
||||
# programs, flags, etc.
|
||||
MAKE = exec make
|
||||
CC = exec cc
|
||||
CFLAGS = -I$i $(CPROFILE)
|
||||
LDFLAGS = -i
|
||||
LIBS = -lsys -ltimers
|
||||
|
||||
OBJ = rtl8169.o
|
||||
|
||||
# build local binary
|
||||
all build: $(DRIVER)
|
||||
$(DRIVER): $(OBJ)
|
||||
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
||||
install -S 64kw $(DRIVER)
|
||||
|
||||
# install with other drivers
|
||||
install: /usr/sbin/$(DRIVER)
|
||||
/usr/sbin/$(DRIVER): $(DRIVER)
|
||||
install -o root -cs $? $@
|
||||
|
||||
# clean up local files
|
||||
clean:
|
||||
rm -f $(DRIVER) *.o *.bak
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
||||
MAN=
|
||||
|
||||
BINDIR?= /usr/sbin
|
||||
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -1,39 +1,7 @@
|
|||
# Makefile for the Sound Blaster 16 driver (SB16)
|
||||
# Makefile for the Sound Blaster 16 (SB16) driver
|
||||
|
||||
# directories
|
||||
u = /usr
|
||||
i = $u/include
|
||||
s = $i/sys
|
||||
m = $i/minix
|
||||
b = $i/ibm
|
||||
d = ..
|
||||
|
||||
# programs, flags, etc.
|
||||
CC = exec cc
|
||||
CFLAGS = -I$i $(CPROFILE)
|
||||
LDFLAGS = -i
|
||||
LIBS = -lsys
|
||||
|
||||
|
||||
# build local binary
|
||||
all build: sb16_dsp sb16_mixer
|
||||
sb16_dsp: sb16.o sb16_dsp.o sb16_dsp_liveupdate.o
|
||||
$(CC) -o $@ $(LDFLAGS) sb16.o sb16_dsp.o sb16_dsp_liveupdate.o $(LIBS)
|
||||
sb16_mixer: sb16.o sb16_mixer.o
|
||||
$(CC) -o $@ $(LDFLAGS) sb16.o sb16_mixer.o $(LIBS)
|
||||
|
||||
# install with other drivers
|
||||
install: /usr/sbin/sb16_dsp /usr/sbin/sb16_mixer
|
||||
/usr/sbin/sb16_dsp: sb16_dsp
|
||||
install -o root -c $? $@
|
||||
/usr/sbin/sb16_mixer: sb16_mixer
|
||||
install -o root -c $? $@
|
||||
|
||||
# clean up local files
|
||||
clean:
|
||||
rm -f *.o *.bak sb16 sb16_dsp sb16_mixer
|
||||
|
||||
depend:
|
||||
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
||||
.include <minix.own.mk>
|
||||
|
||||
SUBDIR= common .WAIT dsp mixer
|
||||
|
||||
.include <minix.subdir.mk>
|
||||
|
|
13
drivers/sb16/Makefile.inc
Normal file
13
drivers/sb16/Makefile.inc
Normal file
|
@ -0,0 +1,13 @@
|
|||
.include <minix.own.mk>
|
||||
|
||||
LIBCOMMON != cd ${.CURDIR}/../common && ${PRINTOBJDIR}
|
||||
CPPFLAGS+=-I${.CURDIR}/../common
|
||||
DPADD+= ${LIBCOMMON}/libcommon.a
|
||||
LDADD+= -L${LIBCOMMON} -lcommon
|
||||
|
||||
DPADD+= ${LIBSYS}
|
||||
LDADD+= -lsys
|
||||
|
||||
.if exists(${.CURDIR}/../../Makefile.inc)
|
||||
.include "${.CURDIR}/../../Makefile.inc"
|
||||
.endif
|
8
drivers/sb16/common/Makefile
Normal file
8
drivers/sb16/common/Makefile
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Makefile for the Sound Blaster 16 (SB16) common
|
||||
|
||||
LIBISPRIVATE= yes
|
||||
|
||||
LIB= common
|
||||
SRCS= sb16.c
|
||||
|
||||
.include <minix.lib.mk>
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef SB16_H
|
||||
#define SB16_H
|
||||
|
||||
#include "../drivers.h"
|
||||
#include <minix/drivers.h>
|
||||
#include <sys/ioc_sound.h>
|
||||
#include <minix/sound.h>
|
||||
|
9
drivers/sb16/dsp/Makefile
Normal file
9
drivers/sb16/dsp/Makefile
Normal file
|
@ -0,0 +1,9 @@
|
|||
# Makefile for the Sound Blaster 16 (SB16) dsp
|
||||
PROG= sb16_dsp
|
||||
SRCS= sb16_dsp.c sb16_dsp_liveupdate.c
|
||||
|
||||
MAN=
|
||||
|
||||
BINDIR?= /usr/sbin
|
||||
|
||||
.include <minix.prog.mk>
|
9
drivers/sb16/mixer/Makefile
Normal file
9
drivers/sb16/mixer/Makefile
Normal file
|
@ -0,0 +1,9 @@
|
|||
# Makefile for the Sound Blaster 16 (SB16) mixer
|
||||
PROG= sb16_mixer
|
||||
SRCS= sb16_mixer.c
|
||||
|
||||
MAN=
|
||||
|
||||
BINDIR?= /usr/sbin
|
||||
|
||||
.include <minix.prog.mk>
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue