depend::
mkdep kernel
- mkdep servers
- mkdep drivers
cd kernel && $(MAKE) $@
cd servers && $(MAKE) $@
cd drivers && $(MAKE) $@
cd commands && $(MAKE) all
cd tools && $(MAKE) all
cd servers && $(MAKE) all
+ cd drivers && $(MAKE) all
install::
cd boot && $(MAKE) all 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
LINKS+= ${BINDIR}/pax ${BINDIR}/cpio
CFLAGS+= -O -D_POSIX_SOURCE -DNET2_STAT=1 -D_MINIX=1
-LDFLAGS+= -i
.include <minix.prog.mk>
# 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>
# 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>
# 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>
-#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 */
# 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>
* 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>
# 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>
--- /dev/null
+.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
***** Minix 3 Audio drivers *****
Directories:
-framework/ Generic driver framework
+common/ Generic driver framework
es1370/ ES1370 driver
es1371/ ES1371 driver
--- /dev/null
+# Makefile for the common audio framework
+
+LIBISPRIVATE= yes
+
+LIB= common
+SRCS= audio_fw.c liveupdate.c
+
+.include <minix.lib.mk>
#ifndef AUDIO_FW_H
#define AUDIO_FW_H
-#include "../../drivers.h"
+#include <minix/drivers.h>
#include <sys/ioc_sound.h>
# 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>
#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,
#include <machine/pci.h>
-#include "../framework/audio_fw.h"
+#include "audio_fw.h"
#include "es1370.h"
#include "ak4531.h"
#include "pci_helper.h"
/* best viewed with tabsize=4 */
#include <sys/types.h>
-#include "../../drivers.h"
+#include <minix/drivers.h>
#include <sys/ioc_sound.h>
/* best viewed with tabsize 4 */
-#include "../../drivers.h"
+#include <minix/drivers.h>
#include <stdlib.h>
#include <stdio.h>
# 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>
#include <machine/pci.h>
-#include "../framework/audio_fw.h"
+#include "audio_fw.h"
#include "es1371.h"
#include "AC97.h"
#include "sample_rate_converter.h"
/* 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>
/* best viewed with tabsize 4 */
-#include "../../drivers.h"
+#include <minix/drivers.h>
#include <stdlib.h>
#include <stdio.h>
-#include "../../drivers.h"
+#include <minix/drivers.h>
#include <sys/types.h>
#include "pci_helper.h"
+++ /dev/null
-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
# 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>
#define SB16_H
#include <minix/sound.h>
-#include "../framework/audio_fw.h"
+#include "audio_fw.h"
#define AUDIO 0
#define MIXER 1
# 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>
* 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>
##
## 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>
* 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>
* 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>
# 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>
* Added support for 3c503 boards.
*/
-#include "../drivers.h"
+#include <minix/drivers.h>
#include <stdlib.h>
#include <minix/com.h>
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>
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>
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>
** $Id$
*/
-#include "drivers.h"
+#include <minix/drivers.h>
#include <minix/com.h>
#include <net/gen/ether.h>
#include <net/gen/eth_io.h>
** $Id$
*/
-#include "drivers.h"
+#include <minix/drivers.h>
#include <net/gen/ether.h>
#include <net/gen/eth_io.h>
#include "dp.h"
** $Id$
*/
-#include "drivers.h"
+#include <minix/drivers.h>
#include <minix/com.h>
#include <net/gen/ether.h>
#include <net/gen/eth_io.h>
** $Id$
*/
-#include "drivers.h"
+#include <minix/drivers.h>
#include <minix/com.h>
#include <net/gen/ether.h>
#include <net/gen/eth_io.h>
##
## 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>
** $Id$
*/
-#include "drivers.h"
+#include <minix/drivers.h>
#include <net/gen/ether.h>
#include <net/gen/eth_io.h>
#include "dp.h"
** 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>
** $Id$
*/
-#include "drivers.h"
+#include <minix/drivers.h>
#include <net/gen/ether.h>
#include <net/gen/eth_io.h>
#include "dp.h"
** $Id$
*/
-#include "drivers.h"
+#include <minix/drivers.h>
#include <net/gen/ether.h>
#include <net/gen/eth_io.h>
#include "dp.h"
** $Id$
*/
-#include "drivers.h"
+#include <minix/drivers.h>
#include <net/gen/ether.h>
#include <net/gen/eth_io.h>
#include "dp.h"
#
# 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 = ..
-
-#
-# Build Programs, Flags and Variables.
-#
-CC = exec cc
-CFLAGS = -I$i $(CPROFILE)
-LDFLAGS = -i
-LIBS = -lsys -ltimers
-OBJ = e1000.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 $? $@
+DPADD+= ${LIBSYS} ${LIBTIMERS}
+LDADD+= -lsys -ltimers
-# clean up local files
-clean:
- rm -f *.o $(DRIVER)
+MAN=
-depend:
- mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
+BINDIR?= /usr/sbin
+.include <minix.prog.mk>
* Gigabit Ethernet Controllers.
*/
-#include "../drivers.h"
+#include <minix/drivers.h>
#include <stdlib.h>
#include <net/gen/ether.h>
#include <net/gen/eth_io.h>
#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>
# 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>
# 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>
-#include "../drivers.h"
-#include "../libdriver/driver.h"
-#include "../libdriver/drvlib.h"
+#include <minix/drivers.h>
+#include <minix/driver.h>
+#include <minix/drvlib.h>
# 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>
* 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>
Media Independent (Ethernet) Interface functions
*/
-#include "../drivers.h"
+#include <minix/drivers.h>
#if __minix_vmd
#include "config.h"
#endif
-#
# 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
\ No newline at end of file
+.include <minix.prog.mk>
-#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>
-# 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>
#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>
+++ /dev/null
-# 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
-
-
# 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>
/* 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>
-# 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>
+++ /dev/null
-#
-.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]
--- /dev/null
+# 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>
unsigned char imgrd[]=
{
-#include "ramdisk/image.c"
+#include "image.c"
};
size_t imgrd_size= sizeof(imgrd);
* 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>
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
../../../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
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>
# 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>
#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>
*
*/
-#include "../drivers.h"
+#include <minix/drivers.h>
#include <string.h>
#include <minix/syslib.h>
#include <minix/type.h>
# 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>
main.c
*/
-#include "../drivers.h"
+#include <minix/drivers.h>
#include <minix/rs.h>
#include <minix/endpoint.h>
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>
* 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"
# 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>
-#include "../drivers.h"
+#include <minix/drivers.h>
/* State management variables. */
EXTERN int writing;
*/
#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
# 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>
* /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"
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"
# 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>
# 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>
Created: Aug 2003 by Philip Homburg <philip@cs.vu.nl>
*/
-#include "../drivers.h"
+#include <minix/drivers.h>
#include <stdlib.h>
#include <stdio.h>
# 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>
*
*/
-#include "../drivers.h"
+#include <minix/drivers.h>
#include <stdlib.h>
#include <stdio.h>
-# 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>
--- /dev/null
+.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
--- /dev/null
+# Makefile for the Sound Blaster 16 (SB16) common
+
+LIBISPRIVATE= yes
+
+LIB= common
+SRCS= sb16.c
+
+.include <minix.lib.mk>
#ifndef SB16_H
#define SB16_H
-#include "../drivers.h"
+#include <minix/drivers.h>
#include <sys/ioc_sound.h>
#include <minix/sound.h>
--- /dev/null
+# 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>
--- /dev/null
+# Makefile for the Sound Blaster 16 (SB16) mixer
+PROG= sb16_mixer
+SRCS= sb16_mixer.c
+
+MAN=
+
+BINDIR?= /usr/sbin
+
+.include <minix.prog.mk>
# Makefile for the Texas Instruments PCI1225 PC Card controller driver (ti1225)
-DRIVER = ti1225
+PROG= ti1225
+SRCS= ti1225.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 = ti1225.o
-
-# build local binary
-all build: $(DRIVER)
-$(DRIVER): $(OBJ)
- $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
- install -S 8k $(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>
Created: Dec 2005 by Philip Homburg
*/
-#include "../drivers.h"
+#include <minix/drivers.h>
#include <machine/pci.h>
#include <machine/vm.h>
# Makefile for terminal driver (TTY)
-DRIVER = tty
-include /etc/make.conf
+.include <minix.own.mk>
-# directories
-u = /usr
-i = $u/include
-s = $i/sys
-m = $i/minix
-b = $i/ibm
-d = ..
+PROG= tty
+SRCS= tty.c console.c keyboard.c pty.c rs232.c
-# programs, flags, etc.
-MAKE = exec make
-CC = exec cc
-CPPFLAGS = -I.. -I../.. -I$i
-CFLAGS = $(CPPFLAGS)
-LDFLAGS = -i
-LIBS = -lsys -ltimers
+DPADD+= ${LIBSYS} ${LIBTIMERS}
+LDADD+= -lsys -ltimers
-OBJ = tty.o console.o keyboard.o pty.o rs232.o
+MAN=
-# build local binary
-all build: $(DRIVER)
-$(DRIVER): $(OBJ)
- $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
- install -S 16k $(DRIVER)
-
-# install with other drivers
-install:
- cd keymaps && $(MAKE) -$(MAKEFLAGS) install
-
-#/sbin/$(DRIVER): $(DRIVER)
-# install -o root -cs $? $@
-
-# clean up local files
-clean:
- cd keymaps && $(MAKE) -$(MAKEFLAGS) $@
- rm -f $(DRIVER) *.o *.bak
-
-depend:
- mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
+BINDIR?= /sbin
+SUBDIR= keymaps
+# Needs kernel/const.h, etc
+CPPFLAGS+= -I ../..
+.include <minix.prog.mk>
+.include <minix.subdir.mk>
* and the scrolling function worries about wrapping.
*/
-#include <drivers.h>
+#include <minix/drivers.h>
#include <termios.h>
#include <sys/ioctl.h>
#include <sys/vm.h>
* Feb 04, 1994 loadable keymaps (Marcus Hampel)
*/
-#include <drivers.h>
+#include <minix/drivers.h>
#include <sys/ioctl.h>
#include <sys/kbdio.h>
#include <sys/time.h>
# Generate binary keymaps.
-LK = /usr/lib/keymaps
+.include <minix.own.mk>
-.SUFFIXES: .src .map
+FILES= dvorak.map french.map german.map italian.map japanese.map \
+ latin-america.map olivetti.map polish.map russian-cp866.map \
+ russian.map scandinavian.map spanish.map uk.map \
+ us-std-esc.map us-std.map us-swap.map
-.src.map:
- $(CC) -DKEYSRC=\"$<\" genmap.c
- ./a.out > $@
- @rm -f a.out
+.include "Makefile.inc"
-all: \
- dvorak.map \
- french.map \
- german.map \
- italian.map \
- japanese.map \
- latin-america.map \
- olivetti.map \
- polish.map \
- russian.map \
- russian-cp866.map \
- scandinavian.map \
- spanish.map \
- uk.map \
- us-std.map \
- us-std-esc.map \
- us-swap.map \
-
-install: \
- $(LK) \
- $(LK)/dvorak.map \
- $(LK)/french.map \
- $(LK)/german.map \
- $(LK)/italian.map \
- $(LK)/japanese.map \
- $(LK)/latin-america.map \
- $(LK)/olivetti.map \
- $(LK)/polish.map \
- $(LK)/russian.map \
- $(LK)/russian-cp866.map \
- $(LK)/scandinavian.map \
- $(LK)/spanish.map \
- $(LK)/uk.map \
- $(LK)/us-std.map \
- $(LK)/us-std-esc.map \
- $(LK)/us-swap.map \
-
-clean:
- rm -f a.out *.map
-
-$(LK):
- install -d $@
-
-$(LK)/dvorak.map: dvorak.map
- install -c $? $@
-
-$(LK)/french.map: french.map
- install -c $? $@
-
-$(LK)/german.map: german.map
- install -c $? $@
-
-$(LK)/italian.map: italian.map
- install -c $? $@
-
-$(LK)/japanese.map: japanese.map
- install -c $? $@
-
-$(LK)/latin-america.map: latin-america.map
- install -c $? $@
-
-$(LK)/olivetti.map: olivetti.map
- install -c $? $@
-
-$(LK)/polish.map: polish.map
- install -c $? $@
-
-$(LK)/russian.map: russian.map
- install -c $? $@
-
-$(LK)/russian-cp866.map: russian-cp866.map
- install -c $? $@
-
-$(LK)/scandinavian.map: scandinavian.map
- install -c $? $@
-
-$(LK)/spanish.map: spanish.map
- install -c $? $@
-
-$(LK)/uk.map: uk.map
- install -c $? $@
-
-$(LK)/us-std.map: us-std.map
- install -c $? $@
-
-$(LK)/us-std-esc.map: us-std-esc.map
- install -c $? $@
-
-$(LK)/us-swap.map: us-swap.map
- install -c $? $@
+.include <minix.prog.mk>
--- /dev/null
+FILESDIR= ${DESTDIR}/usr/lib/keymaps
+
+.SUFFIXES: .src .map
+
+.src.map:
+ ${_MKTARGET_CREATE}
+ $(CC) -DKEYSRC=\"$<\" genmap.c
+ ./a.out > $@
+ @rm -f a.out
+
+realall: ${FILES}
+
+clean:
+ rm -f ${FILES}
* end are to be read at the other end and vice-versa.
*/
-#include "../drivers.h"
+#include <minix/drivers.h>
#include <assert.h>
#include <termios.h>
#include <signal.h>
* Added support for Atari ST M68901 and YM-2149 --kub *
*---------------------------------------------------------------------------*/
-#include "../drivers.h"
+#include <minix/drivers.h>
#include <termios.h>
#include <signal.h>
#include "tty.h"
* Jul 13, 2004 support for function key observers (Jorrit N. Herder)
*/
-#include <drivers.h>
+#include <minix/drivers.h>
#include <termios.h>
#include <sys/ioc_tty.h>
#include <signal.h>
# Pull in <minix.sys.mk> here so we can override its .c.o rule
.include <minix.sys.mk>
+LIBISPRIVATE?= no
+
##### Basic targets
.PHONY: libinstall
realinstall: libinstall
LOBJS+=${LSRCS:.c=.ln} ${SRCS:M*.c:.c=.ln}
+.if ${LIBISPRIVATE} != "no"
+# No installation is required
+libinstall::
+.endif # ${LIBISPRIVATE} == "no" # {
+
ALLOBJS=
ALLOBJS+=${STOBJS}
rm -f a.out [Ee]rrs mklog core *.core ${CLEANFILES}
rm -f lib${LIB}.a ${STOBJS}
+.if !target(libinstall) # {
libinstall:: ${DESTDIR}${LIBDIR}/lib${LIB}.a
.PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}.a
.endif
${DESTDIR}${LIBDIR}/lib${LIB}.a: lib${LIB}.a __archiveinstall
+.endif # !target(libinstall) # }
+##### Pull in related .mk logic
+LINKSOWN?= ${LIBOWN}
+LINKSGRP?= ${LIBGRP}
+LINKSMODE?= ${LIBMODE}
.include <minix.files.mk>
+.include <minix.inc.mk>
+.include <minix.links.mk>
.include <minix.dep.mk>
.if ${COMPILER_TYPE} == "ack"
.endif
INSTPRIV?= ${INSTPRIV.unpriv} -N ${NETBSDSRCDIR}/etc
.endif
-STRIPFLAG?=
+STRIPFLAG?=
+#XXX: Strip flag for MINIX
+#STRIPFLAG?= -s
.if ${NEED_OWN_INSTALL_TARGET} != "no"
INSTALL_DIR?= ${INSTALL} ${INSTPRIV} -d
# LIBX11?=${DESTDIR}/usr/X11R7/lib/libX11.a
# etc..
+# .for _lib in \
+# archive asn1 bluetooth bsdmalloc bz2 c c_pic cdk com_err compat \
+# crypt crypto crypto_idea crypto_mdc2 crypto_rc5 \
+# curses dbm des edit event \
+# fetch form fl g2c gcc gnumalloc gssapi hdb heimntlm hx509 intl ipsec \
+# kadm5clnt kadm5srv kafs krb5 kvm l lber ldap ldap_r \
+# m magic menu objc ossaudio pam pcap pci pmc posix pthread pthread_dbg \
+# puffs radius resolv rmt roken rpcsvc rt rump rumpuser skey sl ss \
+# ssh ssl termcap usbhid util wrap y z bind9 dns lwres isccfg isccc isc \
+# \
+# rumpfs_cd9660fs rumpfs_efs rumpfs_ext2fs rumpfs_ffs rumpfs_hfs \
+# rumpfs_lfs rumpfs_msdosfs rumpfs_nfs rumpfs_ntfs rumpfs_syspuffs \
+# rumpfs_tmpfs rumpfs_udf rumpfs_ufs
.for _lib in \
- archive asn1 bluetooth bsdmalloc bz2 c c_pic cdk com_err compat \
- crypt crypto crypto_idea crypto_mdc2 crypto_rc5 \
- curses dbm des edit event \
- fetch form fl g2c gcc gnumalloc gssapi hdb heimntlm hx509 intl ipsec \
- kadm5clnt kadm5srv kafs krb5 kvm l lber ldap ldap_r \
- m magic menu objc ossaudio pam pcap pci pmc posix pthread pthread_dbg \
- puffs radius resolv rmt roken rpcsvc rt rump rumpuser skey sl ss \
- ssh ssl termcap usbhid util wrap y z bind9 dns lwres isccfg isccc isc \
- \
- rumpfs_cd9660fs rumpfs_efs rumpfs_ext2fs rumpfs_ffs rumpfs_hfs \
- rumpfs_lfs rumpfs_msdosfs rumpfs_nfs rumpfs_ntfs rumpfs_syspuffs \
- rumpfs_tmpfs rumpfs_udf rumpfs_ufs
+ c curses driver edit end m sys timers util
.ifndef LIB${_lib:tu}
LIB${_lib:tu}= ${DESTDIR}/usr/lib/lib${_lib}.a
.if ${COMPILER_TYPE} == "ack"
__proginstall: .USE
${_MKTARGET_INSTALL}
${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
- ${STRIPFLAG} ${.ALLSRC} ${.TARGET}
+ ${INSTALLFLAGS} ${STRIPFLAG} ${.ALLSRC} ${.TARGET}
__progdebuginstall: .USE
${_MKTARGET_INSTALL}
${INSTALL_FILE} -o ${DEBUGOWN} -g ${DEBUGGRP} -m ${DEBUGMODE} \
- ${.ALLSRC} ${.TARGET}
+ ${INSTALLFLAGS} ${.ALLSRC} ${.TARGET}
${TARGETS}: # ensure existence
+###### Minix rule to set up mem allocations for boot image services
+.if defined(INSTALLFLAGS)
+all: .PHONY memalloc
+
+memalloc: realall
+ ${INSTALL} ${INSTALLFLAGS} ${PROG}
+.endif
+
.endif # HOSTPROG
# Helpers for cross-compiling
HOST_CC?= cc
-HOST_CFLAGS?= -O
+#XXX: Temporarily disable -O for MINIX
+#HOST_CFLAGS?= -O
+HOST_CFLAGS?=
HOST_COMPILE.c?=${HOST_CC} ${HOST_CFLAGS} ${HOST_CPPFLAGS} -c
HOST_COMPILE.cc?= ${HOST_CXX} ${HOST_CXXFLAGS} ${HOST_CPPFLAGS} -c
.if defined(HOSTPROG_CXX)
.endif
HOST_CXX?= c++
-HOST_CXXFLAGS?= -O
+#XXX: Temporarily disable -O for MINIX
+#HOST_CXXFLAGS?= -O
+HOST_CXXFLAGS?=
HOST_CPP?= cpp
HOST_CPPFLAGS?=
# see src/doc/HACKS for details
DBG?= -O1
.else
-DBG?= -O
+#XXX: Temporarily disable -O for MINIX
+#DBG?= -O
+DBG?=
.endif
CFLAGS?= ${DBG}
LDFLAGS?=
INCS+= minix/a.out.h minix/bitmap.h minix/callnr.h minix/cdrom.h \
minix/com.h minix/config.h minix/const.h minix/cpufeature.h \
minix/crtso.h minix/debug.h minix/devio.h minix/dirent.h \
- minix/dir.h minix/dl_eth.h minix/dmap.h minix/ds.h \
- minix/endpoint.h minix/fslib.h minix/ioctl.h minix/ipc.h \
- minix/keymap.h minix/minlib.h minix/mq.h minix/partition.h \
- minix/paths.h minix/portio.h minix/profile.h \
- minix/queryparam.h minix/rs.h minix/safecopies.h \
- minix/sef.h minix/sound.h minix/sys_config.h \
- minix/sysinfo.h minix/syslib.h minix/sysutil.h minix/tty.h \
- minix/type.h minix/types.h minix/u64.h minix/vfsif.h \
- minix/vm.h
+ minix/dir.h minix/dl_eth.h minix/dmap.h minix/driver.h \
+ minix/drivers.h minix/drvlib.h minix/ds.h minix/endpoint.h \
+ minix/fslib.h minix/ioctl.h minix/ipc.h minix/keymap.h \
+ minix/minlib.h minix/mq.h minix/partition.h minix/paths.h \
+ minix/portio.h minix/profile.h minix/queryparam.h \
+ minix/rs.h minix/safecopies.h minix/sef.h minix/sound.h \
+ minix/sys_config.h minix/sysinfo.h minix/syslib.h \
+ minix/sysutil.h minix/tty.h minix/type.h minix/types.h \
+ minix/u64.h minix/vfsif.h minix/vm.h
INCS+= net/hton.h net/if.h net/ioctl.h net/netlib.h
INCS+= net/gen/arp_io.h net/gen/dhcp.h net/gen/ether.h \
net/gen/eth_hdr.h net/gen/eth_io.h net/gen/icmp.h \
#include <minix/bitmap.h>
#include <machine/interrupt.h> /* IRQ vectors and miscellaneous ports */
-#include <machine/bios.h> /* BIOS index numbers */
-#include <machine/ports.h> /* Well-known ports */
+#include <machine/bios.h> /* BIOS index numbers */
+#include <machine/ports.h> /* Well-known ports */
#include <string.h>
#include <signal.h>
.include <minix.own.mk>
-SUBDIR= csu libc libcurses libend libedit libm libsys libtimers libutil
+SUBDIR= csu libc libcurses libdriver libend libedit libm libsys \
+ libtimers libutil
.if ${COMPILER_TYPE} == "ack"
SUBDIR+= ack/libd ack/libe ack/libfp ack/liby
--- /dev/null
+# Makefile for libdriver
+
+LIB= driver
+
+SRCS= driver.c drvlib.c mq.c
+
+.include <minix.lib.mk>
*/
-#include "../drivers.h"
+#include <minix/drivers.h>
#include <sys/ioc_disk.h>
#include <minix/mq.h>
#include <minix/endpoint.h>
-#include "driver.h"
+#include <minix/driver.h>
/* Claim space for variables. */
u8_t *tmp_buf = NULL; /* the DMA buffer eventually */
* partition: partition a disk to the partition table(s) on it.
*/
-#include "driver.h"
-#include "drvlib.h"
+#include <minix/driver.h>
+#include <minix/drvlib.h>
#include <unistd.h>
/* Extended partition? */
# Makefile for all system servers.
#
-MAKE = exec make -$(MAKEFLAGS)
-usage:
- @echo "" >&2
- @echo "Makefile for all system servers." >&2
- @echo "Usage:" >&2
- @echo " make build # Compile all system servers locally" >&2
- @echo " make image # Compile servers in boot image" >&2
- @echo " make clean # Remove local compiler results" >&2
- @echo " make install # Install servers to /etc/servers/" >&2
- @echo " (requires root privileges)" >&2
- @echo "" >&2
+.include <minix.own.mk>
-build: all
-all install depend clean:
- cd ./pm && $(MAKE) $@
- cd ./vfs && $(MAKE) $@
- cd ./mfs && $(MAKE) $@
- cd ./pfs && $(MAKE) $@
- cd ./iso9660fs && $(MAKE) $@
- cd ./hgfs && $(MAKE) $@
- cd ./rs && $(MAKE) $@
- cd ./ds && $(MAKE) $@
- cd ./is && $(MAKE) $@
- cd ./vm && $(MAKE) $@
- cd ./init && $(MAKE) $@
- cd ./inet && $(MAKE) $@
- cd ./ipc && $(MAKE) $@
+SUBDIR= ds hgfs inet init ipc is iso9660fs mfs pfs pm rs vfs vm
-image:
- cd ./pm && $(MAKE) EXTRA_OPTS=$(EXTRA_OPTS) build
- cd ./vfs && $(MAKE) EXTRA_OPTS=$(EXTRA_OPTS) build
- cd ./pfs && $(MAKE) EXTRA_OPTS=$(EXTRA_OPTS) build
- cd ./mfs && $(MAKE) EXTRA_OPTS=$(EXTRA_OPTS) build
- cd ./rs && $(MAKE) EXTRA_OPTS=$(EXTRA_OPTS) build
- cd ./ds && $(MAKE) EXTRA_OPTS=$(EXTRA_OPTS) build
- cd ./vm && $(MAKE) EXTRA_OPTS=$(EXTRA_OPTS) build
- cd ./init && $(MAKE) EXTRA_OPTS=$(EXTRA_OPTS) build
+IMAGE_SUBDIR= ds init mfs pfs pm rs vfs vm
+.include <minix.subdir.mk>
# Makefile for Data Store Server (DS)
-SERVER = ds
+PROG= ds
+SRCS= main.c store.c
-# directories
-u = /usr
-i = $u/include
-s = $i/sys
-m = $i/minix
-b = $i/ibm
-k = $u/src/kernel
-p = $u/src/servers/pm
-f = $u/src/servers/fs
+DPADD+= ${LIBSYS}
+LDADD+= -lsys
-# programs, flags, etc.
-CC = exec cc
-CFLAGS = -I$i $(CPROFILE)
-LDFLAGS = -i
-LIBS = -lsys
-
-OBJ = main.o store.o
-
-# build local binary
-all build: $(SERVER)
-$(SERVER): $(OBJ)
- $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
- install -S 16k $@
-
-# install with other servers
-install: $(SERVER)
-
-# clean up local files
-clean:
- rm -f $(SERVER) *.o *.bak
-
-depend:
- mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
+MAN=
+BINDIR?= /usr/sbin
+.include <minix.prog.mk>
# Makefile for VMware Host/Guest File System (HGFS) server
-SERVER=hgfs
-LIBHGFSDIR=./libhgfs
-LIBHGFS=$(LIBHGFSDIR)/libhgfs.a
+.include <minix.own.mk>
-DEST=/sbin/$(SERVER)
-LIBS=-lsys -L$(LIBHGFSDIR) -lhgfs
+SUBDIR= libhgfs .WAIT hgfs_server
-OBJ=dentry.o handle.o inode.o link.o lookup.o main.o \
- misc.o mount.o name.o optset.o path.o read.o \
- stat.o table.o util.o verify.o write.o
-
-all build: $(SERVER)
-
-$(SERVER): $(LIBHGFS) $(OBJ)
- $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
-
-$(LIBHGFS):
- cd $(LIBHGFSDIR) && $(MAKE)
-
-install: $(SERVER)
- install -c $(SERVER) $(DEST)
-
-clean:
- cd $(LIBHGFSDIR) && $(MAKE) $@
- rm -f $(SERVER) $(OBJ)
-
-depend:
- cd $(LIBHGFSDIR) && $(MAKE) $@
- mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
+.include <minix.subdir.mk>
--- /dev/null
+.include <minix.own.mk>
+
+LIBHGFS != cd ${.CURDIR}/../libhgfs && ${PRINTOBJDIR}
+CPPFLAGS+=-I${.CURDIR}/../libhgfs
+DPADD+= ${LIBHGFS}/libhgfs.a
+LDADD+= -L${LIBHGFS} -lhgfs
+
+DPADD+= ${LIBSYS}
+LDADD+= -lsys
+
+.if exists(${.CURDIR}/../../Makefile.inc)
+.include "${.CURDIR}/../../Makefile.inc"
+.endif
--- /dev/null
+# Makefile for VMware Host/Guest File System (HGFS) server
+PROG= hgfs
+SRCS= dentry.c handle.c inode.c link.c lookup.c main.c \
+ misc.c mount.c name.c optset.c path.c read.c \
+ stat.c table.c util.c verify.c write.c
+
+MAN=
+
+BINDIR?= /sbin
+
+.include <minix.prog.mk>
#include <sys/stat.h>
#include <sys/queue.h>
-#include "libhgfs/hgfs.h"
+#include "hgfs.h"
#include "type.h"
#include "const.h"
# Makefile for HGFS library
-LIBNAME=libhgfs.a
-OBJ=backdoor.o attr.o channel.o dir.o error.o file.o \
- link.o misc.o path.o rpc.o time.o
+LIBISPRIVATE= yes
-AR=ar
-GAS2ACK=gas2ack -u
+LIB= hgfs
+SRCS= backdoor.S attr.c channel.c dir.c error.c file.c \
+ link.c misc.c path.c rpc.c time.c
-all build: $(LIBNAME)
-
-$(LIBNAME): $(OBJ)
- $(AR) cr $@ $(OBJ)
-
-backdoor.o: backdoor.S
- $(GAS2ACK) $< $@.s
- $(CC) $(CFLAGS) -c -o $@ $@.s
-
-clean distclean:
- rm -f $(LIBNAME) $(OBJ) *.o.s
-
-depend:
- mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
+.include <minix.lib.mk>
-# Part of libhgfs - (c) 2009, D.C. van Moolenbroek
+/* Part of libhgfs - (c) 2009, D.C. van Moolenbroek */
-.globl __libhgfs_backdoor
-.globl __libhgfs_backdoor_in
-.globl __libhgfs_backdoor_out
+.globl ___libhgfs_backdoor
+.globl ___libhgfs_backdoor_in
+.globl ___libhgfs_backdoor_out
.text
IO_PORT = 0x5659
.balign 16
-__libhgfs_backdoor:
+___libhgfs_backdoor:
pushl %ebx
pushl %esi
pushl %edi
ret
.balign 16
-__libhgfs_backdoor_in:
+___libhgfs_backdoor_in:
pushl %ebx
pushl %esi
pushl %edi
ret
.balign 16
-__libhgfs_backdoor_out:
+___libhgfs_backdoor_out:
pushl %ebx
pushl %esi
pushl %edi
# Makefile for inet.
+PROG= inet
+SRCS= buf.c clock.c inet.c inet_config.c \
+ mnx_eth.c mq.c qp.c sr.c \
+ udp.c arp.c eth.c event.c \
+ icmp.c io.c ip.c ip_ioctl.c \
+ ip_lib.c ip_read.c ip_write.c \
+ ipr.c rand256.c tcp.c tcp_lib.c \
+ tcp_recv.c tcp_send.c ip_eth.c \
+ ip_ps.c psip.c \
+ queryparam.c sha2.c version.c
-# Directories
-g = generic
+.PATH: ${.CURDIR}/generic
-# Programs, flags, and libraries
-CC = cc
-CPPFLAGS = -I. -D_MINIX
-CFLAGS = $(OPT) $(CPPFLAGS) $(CPROFILE)
-LDFLAGS =
-LIBS = -lsys
+DPADD+= ${LIBSYS}
+LDADD+= -lsys
-.c.o:
- $(CC) $(CFLAGS) -o $@ -c $<
+MAN=
-OBJ = buf.o clock.o inet.o inet_config.o \
- mnx_eth.o mq.o qp.o sr.o \
- $g/udp.o $g/arp.o $g/eth.o $g/event.o \
- $g/icmp.o $g/io.o $g/ip.o $g/ip_ioctl.o \
- $g/ip_lib.o $g/ip_read.o $g/ip_write.o \
- $g/ipr.o $g/rand256.o $g/tcp.o $g/tcp_lib.o \
- $g/tcp_recv.o $g/tcp_send.o $g/ip_eth.o \
- $g/ip_ps.o $g/psip.o \
- minix3/queryparam.o sha2.o
+BINDIR?= /usr/sbin
-all: inet
+CPPFLAGS+= -I${.CURDIR} -D_MINIX
-inet: $(OBJ)
- $(CC) -o $@ $(LDFLAGS) $(OBJ) version.c $(LIBS)
-
-install: inet
- install -c inet /usr/sbin/inet
-
-clean:
- rm -f $(OBJ) inet *.bak
-
-depend:
- mkdep "$(CC) -E $(CPPFLAGS)" *.c generic/*.c > .depend
-
-
-#
-# $PchId: Makefile.mnx3,v 1.1 2005/06/28 14:28:45 philip Exp $
-#
+.include <minix.prog.mk>
#include "generic/assert.h"
#include <sys/svrctl.h>
-#include <minix3/queryparam.h>
+#include "queryparam.h"
#include "generic/buf.h"
#include "generic/clock.h"
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
-#include <minix3/queryparam.h>
+#include "queryparam.h"
#if EXAMPLE
struct stat st[2];
# Makefile for the init program (INIT)
-SERVER = init
+PROG= init
+SRCS= init.c
-# directories
-u = /usr
-i = $u/include
-s = $i/sys
-h = $i/minix
-k = $u/src/kernel
+DPADD+= ${LIBSYS}
+LDADD+= -lsys
-# programs, flags, etc.
-CC = exec cc
-CFLAGS = -I$i -O -D_MINIX -D_POSIX_SOURCE
-LDFLAGS = -i
+MAN=
-OBJ = init.o
-
-# build local binary
-all build: $(SERVER)
-$(SERVER): $(OBJ)
- $(CC) $(CFLAGS) -o $@ $(LDFLAGS) $(OBJ) -lsys
- install -S 64k $@
-
-# install with other servers
-install: /usr/sbin/$(SERVER)
-/usr/sbin/$(SERVER): $(SERVER)
- install -o root -cs $? $@
-
-# clean up local files
-clean:
- rm -f $(SERVER) *.o *.bak
-
-depend:
- mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
+BINDIR?= /usr/sbin
+CPPFLAGS+= -O -D_MINIX -D_POSIX_SOURCE
+.include <minix.prog.mk>
# Makefile for IPC server
-SERVER = ipc
+PROG= ipc
+SRCS= main.c utility.c shm.c sem.c
-include /etc/make.conf
+DPADD+= ${LIBSYS}
+LDADD+= -lsys
-OBJ = main.o utility.o shm.o sem.o
-
-CPPFLAGS=
-CFLAGS = $(CPROFILE) $(CPPFLAGS)
-
-# build local binary
-
-all build: $(SERVER)
-
-install: $(SERVER)
- install -o root -c $(SERVER) /usr/sbin/$(SERVER)
-
-$(SERVER): $(OBJ)
- $(CC) -o $@ $(LDFLAGS) $(OBJ) -lsys
-
-# clean up local files
-clean:
- rm -f $(SERVER) *.o *.bak
-
-depend:
- mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
+MAN=
+BINDIR?= /usr/sbin
+.include <minix.prog.mk>
# Makefile for Information Server (IS)
-SERVER = is
+PROG= is
+SRCS= main.c dmp.c dmp_kernel.c dmp_pm.c dmp_fs.c dmp_rs.c dmp_ds.c dmp_vm.c
-include /etc/make.conf
+DPADD+= ${LIBSYS}
+LDADD+= -lsys
-# directories
-u = /usr
-i = $u/include
-s = $i/sys
-m = $i/minix
-b = $i/ibm
-k = $u/src/kernel
-p = $u/src/servers/pm
-f = $u/src/servers/fs
-
-# programs, flags, etc.
-CC = exec cc
-CPPFLAGS=-I$i
-CFLAGS = $(CPROFILE) $(CPPFLAGS)
-LDFLAGS = -i
-LIBS = -lsys
-
-OBJ = main.o dmp.o dmp_kernel.o dmp_pm.o dmp_fs.o dmp_rs.o dmp_ds.o dmp_vm.o
-
-# build local binary
-all build: $(SERVER)
-$(SERVER): $(OBJ)
- $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
-# install -S 256w $@
-
-# install with other servers
-install: $(SERVER)
- install -o root -c $(SERVER) /sbin/$(SERVER)
-
-# clean up local files
-clean:
- rm -f $(SERVER) *.o *.bak
-
-depend:
- mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
+MAN=
+BINDIR?= /sbin
+.include <minix.prog.mk>
# Makefile for ISO9660 fs
-SERVER = isofs
-NR_BUFS = 100
+PROG= isofs
+SRCS= main.c table.c mount.c super.c inode.c device.c \
+ utility.c misc.c path.c read.c stadir.c cache.c
-# directories
-u = /usr
-i = $u/include
-s = $i/sys
-h = $i/minix
+DPADD+= ${LIBSYS} ${LIBTIMERS}
+LDADD+= -lsys -ltimers
-# programs, flags, etc.
-CC = exec cc
-CFLAGS = -I$i $(EXTRA_OPTS) $(CPROFILE) -DNR_BUFS=$(NR_BUFS)
-LDFLAGS = -i
-LIBS = -lsys -ltimers
+MAN=
-OBJ = main.o table.o mount.o super.o inode.o device.o \
- utility.o misc.o path.o read.o stadir.o cache.o
+BINDIR?= /sbin
-# build local binary
-all build: $(SERVER)
-$(SERVER): $(OBJ)
- $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
- install -S 64k $(SERVER)
-
-install: $(SERVER)
- install $(SERVER) /sbin/$(SERVER)
-
-# clean up local files
-clean:
- rm -f $(SERVER) *.o *.bak *~
-
-depend:
- mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
+NR_BUFS= 100
+CPPFLAGS+= -DNR_BUFS=${NR_BUFS}
+.include <minix.prog.mk>
# Makefile for Minix File System (MFS)
-SERVER = mfs
-DEST=/sbin/$(SERVER)
-NR_BUFS=1024
-BS=4096
+PROG= mfs
+SRCS= cache.c device.c link.c \
+ mount.c misc.c open.c protect.c read.c \
+ stadir.c table.c time.c utility.c \
+ write.c inode.c main.c path.c super.c
-# directories
-u = /usr
-i = $u/include
-s = $i/sys
-h = $i/minix
+DPADD+= ${LIBSYS}
+LDADD+= -lsys
-# programs, flags, etc.
-CC = exec cc
-CFLAGS = -I$i $(EXTRA_OPTS) $(CPROFILE) -DNR_BUFS=$(NR_BUFS)
-LDFLAGS = -i
-LIBS = -lsys
-
-OBJ = cache.o device.o link.o \
- mount.o misc.o open.o protect.o read.o \
- stadir.o table.o time.o utility.o \
- write.o inode.o main.o path.o super.o
-
-# build local binary
-all build: $(SERVER)
-$(SERVER): $(OBJ)
- $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
-
-install: $(SERVER)
- -mv $(DEST) $(DEST).prev
- install $(SERVER) $(DEST)
-
-# clean up local files
-clean:
- rm -f $(SERVER) *.o *.bak
-
-depend:
- mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
+MAN=
+BINDIR?= /sbin
+NR_BUFS= 1024
+CPPFLAGS+= -DNR_BUFS=${NR_BUFS}
+.include <minix.prog.mk>
# Makefile for Pipe File System (PFS)
-SERVER = pfs
-NR_BUFS=256
-BS=4096
+PROG= pfs
+SRCS= open.c table.c inode.c main.c super.c link.c \
+ buffer.c read.c misc.c utility.c stadir.c
-# directories
-u = /usr
-i = $u/include
-s = $i/sys
-h = $i/minix
+DPADD+= ${LIBSYS}
+LDADD+= -lsys
-# programs, flags, etc.
-CC = exec cc
-CFLAGS = -I$i $(EXTRA_OPTS) $(CPROFILE) -DNR_BUFS=$(NR_BUFS)
-LDFLAGS = -i
-LIBS = -lsys
+MAN=
-OBJ = open.o table.o inode.o main.o super.o link.o \
- buffer.o read.o misc.o utility.o stadir.o
+BINDIR?= /usr/sbin
-# build local binary
-install all build: $(SERVER)
-$(SERVER): $(OBJ)
- $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
+NR_BUFS= 256
+CPPFLAGS+= -DNR_BUFS=${NR_BUFS}
-# clean up local files
-clean:
- rm -f $(SERVER) *.o *.bak
-
-depend:
- mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
+.include <minix.prog.mk>
# Makefile for Process Manager (PM)
-SERVER = pm
+PROG= pm
+SRCS= main.c forkexit.c break.c exec.c time.c timers.c alarm.c \
+ signal.c utility.c table.c trace.c getset.c misc.c \
+ profile.c dma.c mcontext.c
-include /etc/make.conf
+DPADD+= ${LIBSYS} ${LIBTIMERS}
+LDADD+= -lsys -ltimers
-# directories
-u = /usr
-i = $u/include
-s = $i/sys
-h = $i/minix
-k = $u/src/kernel
-
-# programs, flags, etc.
-CC = exec cc
-CPPFLAGS=-I$i
-CFLAGS = $(CPROFILE) $(CPPFLAGS)
-LDFLAGS = -i
-
-OBJ = main.o forkexit.o break.o exec.o time.o timers.o alarm.o \
- signal.o utility.o table.o trace.o getset.o misc.o \
- profile.o dma.o mcontext.o
-
-# build local binary
-all build: $(SERVER)
-$(SERVER): $(OBJ)
- $(CC) -o $@ $(LDFLAGS) $(OBJ) -lsys -ltimers
- install -S 32k $@
-
-# install with other servers
-install: /usr/sbin/$(SERVER)
-/usr/sbin/$(SERVER): $(SERVER)
- install -o root -cs $? $@
-
-# clean up local files
-clean:
- rm -f $(SERVER) *.o *.bak
-
-depend:
- mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
+MAN=
+BINDIR?= /usr/sbin
+INSTALLFLAGS+= -S 32k
+.include <minix.prog.mk>
# Makefile for Reincarnation Server (RS)
-SERVER = rs
-UTIL = service
+.include <minix.own.mk>
-include /etc/make.conf
+PROG= rs
+SRCS= exec.c main.c request.c manager.c table.c utility.c memory.c error.c
-# directories
-u = /usr
-i = $u/include
-s = $i/sys
-m = $i/minix
-b = $i/ibm
+DPADD+= ${LIBSYS}
+LDADD+= -lsys
-# programs, flags, etc.
-CC = exec cc
-CPPFLAGS =
-CFLAGS = -I$i $(CPROFILE) $(CPPFLAGS)
-LDFLAGS = -i
-LIBS = -lsys
+MAN=
-UTIL_OBJ = service.o
-OBJ = exec.o main.o request.o manager.o table.o utility.o memory.o error.o
-
-# build local binary
-all build: $(SERVER) $(UTIL)
-$(UTIL): $(UTIL_OBJ)
- $(CC) -o $@ $(LDFLAGS) $(UTIL_OBJ) $(UTIL_LIBS)
-$(SERVER): $(OBJ)
- $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
- install -S 850k $@
-
-# install with other servers
-install: /bin/$(UTIL) /usr/sbin/$(SERVER)
-/bin/$(UTIL): $(UTIL)
- install -c $? $@
-/usr/sbin/$(SERVER): $(SERVER)
- install -o root -c $? $@
-
-# clean up local files
-clean:
- rm -f $(UTIL) $(SERVER) *.o *.bak
-
-depend:
- mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
+BINDIR?= /usr/sbin
+INSTALLFLAGS+= -S 850k
+SUBDIR= service
+.include <minix.prog.mk>
+.include <minix.subdir.mk>
--- /dev/null
+# Makefile for service
+.include <minix.own.mk>
+
+PROG= service
+SRCS= service.c
+
+MAN=
+
+BINDIR?= /bin
+
+.include <minix.prog.mk>
-# Makefile for File System (FS)
-SERVER = vfs
+# Makefile for Virtual File System (VFS)
+PROG= vfs
+SRCS= main.c open.c read.c write.c pipe.c dmap.c \
+ path.c device.c mount.c link.c exec.c \
+ filedes.c stadir.c protect.c time.c \
+ lock.c misc.c utility.c select.c timers.c table.c \
+ vnode.c vmnt.c request.c fscall.c
-# directories
-u = /usr
-i = $u/include
-s = $i/sys
-h = $i/minix
+DPADD+= ${LIBSYS} ${LIBTIMERS}
+LDADD+= -lsys -ltimers
-# programs, flags, etc.
-CC = exec cc
-CFLAGS = -I$i $(EXTRA_OPTS) $(CPROFILE)
-LDFLAGS = -i
-LIBS = -lsys -ltimers
+MAN=
-OBJ = main.o open.o read.o write.o pipe.o dmap.o \
- path.o device.o mount.o link.o exec.o \
- filedes.o stadir.o protect.o time.o \
- lock.o misc.o utility.o select.o timers.o table.o \
- vnode.o vmnt.o request.o fscall.o
-
-# build local binary
-install all build: $(SERVER)
-
-$(SERVER): $(OBJ)
- $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
- install -S 16k $@
-
-# clean up local files
-clean:
- rm -f $(SERVER) *.o *.bak
-
-depend:
- mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
+BINDIR?= /usr/sbin
+INSTALLFLAGS+= -S 16k
+.include <minix.prog.mk>
# Makefile for VM server
-SERVER = vm
+.include <minix.own.mk>
-include /etc/make.conf
+PROG= vm
+SRCS= main.c alloc.c utility.c exec.c exit.c fork.c break.c \
+ signal.c mmap.c slaballoc.c region.c pagefaults.c addravl.c \
+ physravl.c rs.c queryexit.c map_mem.c
-OBJ = main.o alloc.o utility.o exec.o exit.o fork.o break.o \
- signal.o mmap.o slaballoc.o region.o pagefaults.o addravl.o \
- physravl.o rs.o queryexit.o map_mem.o
-ARCHOBJ = $(ARCH)/vm.o $(ARCH)/pagetable.o $(ARCH)/arch_pagefaults.o $(ARCH)/util.o
+#Arch-specific sources
+.PATH: ${.CURDIR}/arch/${ARCH}
+SRCS+= vm.c pagetable.c arch_pagefaults.c util.S
-CPPFLAGS=-I$(ARCH)
-CFLAGS = $(CPROFILE) $(CPPFLAGS)
+DPADD+= ${LIBSYS}
+LDADD+= -lsys
-# build local binary
+MAN=
-all build install: $(SERVER)
-
-$(SERVER): $(OBJ) phony
- cd $(ARCH) && $(MAKE)
- $(CC) -o $@ $(LDFLAGS) $(OBJ) $(ARCHOBJ) -lsys
-
-# clean up local files
-clean:
- rm -f $(SERVER) *.o *.bak
- cd $(ARCH) && $(MAKE) $@
-
-depend:
- cd $(ARCH) && $(MAKE) $@
- mkdep "$(CC) -E $(CPPFLAGS)" *.c $(ARCH)/*.c > .depend
-
-phony:
- @:
+BINDIR?= /usr/sbin
+CPPFLAGS+= -I${.CURDIR} -Iarch/${ARCH}
+.include <minix.prog.mk>
#include <stdio.h>
#include <fcntl.h>
-#include "../glo.h"
-#include "../proto.h"
-#include "../util.h"
+#include "glo.h"
+#include "proto.h"
+#include "util.h"
/*===========================================================================*
* arch_handle_pagefaults *
#include <fcntl.h>
#include <stdlib.h>
-#include "../proto.h"
-#include "../glo.h"
-#include "../util.h"
-#include "../vm.h"
-#include "../sanitycheck.h"
+#include "proto.h"
+#include "glo.h"
+#include "util.h"
+#include "vm.h"
+#include "sanitycheck.h"
#include "memory.h"
#include <stdint.h>
#include <machine/vm.h>
-#include "../vm.h"
+#include "vm.h"
/* An i386 pagetable. */
typedef struct {
--- /dev/null
+.globl _i386_invlpg
+
+.text
+
+/**===========================================================================* */
+/** i386_invlpg * */
+/**===========================================================================* */
+/* PUBLIC void i386_invlpg(u32_t addr) */
+/* Tell the processor to invalidate a tlb entry at virtual address addr. */
+_i386_invlpg:
+ push %ebp
+ mov %esp, %ebp
+ push %eax
+
+ mov 8(%ebp), %eax
+#ifdef __ACK__
+ invlpg %eax
+#else
+ invlpg (%eax)
+#endif
+
+ pop %eax
+ pop %ebp
+ ret
#include <errno.h>
#include <env.h>
-#include "../proto.h"
-#include "../vm.h"
-#include "../util.h"
+#include "proto.h"
+#include "vm.h"
+#include "util.h"
#include "memory.h"
+++ /dev/null
-
-include /etc/make.conf
-
-OBJ = vm.o pagetable.o arch_pagefaults.o util.o
-
-CPPFLAGS=-I.
-CFLAGS = $(CPROFILE) $(CPPFLAGS)
-
-all: $(OBJ)
-
-clean:
- rm -f $(OBJ)
-
-depend:
- mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
-
-
+++ /dev/null
-
-.sect .text; .sect .rom; .sect .data; .sect .bss
-
-.define _i386_invlpg
-
-.sect .text
-
-!*===========================================================================*
-!* i386_invlpg *
-!*===========================================================================*
-! PUBLIC void i386_invlpg(u32_t addr)
-! Tell the processor to invalidate a tlb entry at virtual address addr.
-_i386_invlpg:
- push ebp
- mov ebp, esp
- push eax
-
- mov eax, 8(ebp)
- invlpg eax
-
- pop eax
- pop ebp
- ret
../servers/pm/pm \
../servers/vfs/vfs \
../servers/rs/rs \
- ../drivers/memory/memory \
+ ../drivers/memory/memory_driver/memory \
../drivers/log/log \
../drivers/tty/tty \
../servers/ds/ds \
image: includes
cd ../kernel && $(MAKE) EXTRA_OPTS=$(EXTRA_OPTS)
- cd ../servers && $(MAKE) image
- cd ../drivers && $(MAKE) image
- installboot -image $@ $(PROGRAMS)
-
-image_small: includes
- cd ../kernel && $(MAKE) EXTRA_OPTS=$(EXTRA_OPTS)
- cd ../servers && $(MAKE) EXTRA_OPTS=-D_MINIX_SMALL=1 image
- cd ../drivers && $(MAKE) EXTRA_OPTS=$(EXTRA_OPTS) image
+ cd ../servers && $(MAKE) all
+ cd ../drivers && $(MAKE) all
installboot -image $@ $(PROGRAMS)
# rebuild the program or system libraries
services: includes
cd ../kernel && $(MAKE)
- cd ../servers && $(MAKE) install
- cd ../drivers && $(MAKE) install
+ cd ../servers && $(MAKE) all install
+ cd ../drivers && $(MAKE) all install
libraries: includes
cd ../lib && sh ack_build.sh clean obj depend all install
cd ../kernel && $(MAKE) $@
cd ../servers && $(MAKE) $@
cd ../drivers && $(MAKE) $@
- rm -rf *.bak image image_small *.iso *.iso.gz cdfdimage rootimage src
+ rm -rf *.bak image *.iso *.iso.gz cdfdimage rootimage src