--- /dev/null
+CPPFLAGS+= -D_MINIX -D_POSIX_SOURCE
+BINDIR?=/usr/sbin
BINDIR?= /sbin
-CPPFLAGS+= -D_MINIX=1 -D_POSIX_SOURCE=1 -D_SYSTEM=1
+CPPFLAGS+= -D_SYSTEM=1
.include <minix.prog.mk>
# Helpers for cross-compiling
HOST_CC?= cc
-#XXX: Temporarily disable -O for MINIX
-#HOST_CFLAGS?= -O
+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
.endif
HOST_CXX?= c++
-#XXX: Temporarily disable -O for MINIX
-#HOST_CXXFLAGS?= -O
+HOST_CXXFLAGS?= -O
HOST_CXXFLAGS?=
HOST_CPP?= cpp
# see src/doc/HACKS for details
DBG?= -O1
.else
-#XXX: Temporarily disable -O for MINIX
-#DBG?= -O
+DBG?= -O
DBG?=
.endif
CFLAGS?= ${DBG}
--- /dev/null
+CPPFLAGS+= -D_MINIX -D_POSIX_SOURCE
+AFLAGS+= -D_MINIX -D_POSIX_SOURCE
# routines are found in libc.a. (The printf and scanf need floating point
# for the %f formats, whether you use them or not.)
-CPPFLAGS+=-O -D_MINIX -D_POSIX_SOURCE -I${.CURDIR}/../../libc/stdio
+CPPFLAGS+=-I${.CURDIR}/../../libc/stdio
LIB= d
LIB= e
-AFLAGS+=-O -D_MINIX -D_POSIX_SOURCE -Was-ack
+AFLAGS+=-Was-ack
.include "${.CURDIR}/arch/${ARCH}/em/Makefile.inc"
.include "${.CURDIR}/arch/${ARCH}/head/Makefile.inc"
.fc.o:
${_MKTARGET_COMPILE}
cp ${.IMPSRC} tmp.c
- cc -O -I${.CURDIR} -D_MINIX -D_POSIX_SOURCE -S tmp.c
+ cc -I${.CURDIR} ${CFLAGS} -S tmp.c
sed -f ${.CURDIR}/FP.script tmp.s > ${.PREFIX}.s
cc -I${.CURDIR} -c -o ${.TARGET} ${.PREFIX}.s
rm -f tmp.c tmp.s ${PREFIX}.s
# Makefile for liby
-CPPFLAGS+=-O -D_MINIX -D_POSIX_SOURCE
-
LIB= y
SRCS= \
.PATH: ${.CURDIR}/${ARCH}
-AFLAGS+= -O -D_MINIX -D_POSIX_SOURCE
-
SRCS= crtso.S
OBJS= crtso.o
SRCS= bzlib.c blocksort.c compress.c crctable.c decompress.c \
huffman.c randtable.c
CPPFLAGS+= -I ${BZ2DIR}
-CPPFLAGS+= -O -D_MINIX -D_POSIX_SOURCE
INCS= bzlib.h
INCSDIR= /usr/include
LIB= c
-CPPFLAGS+=-O -D_MINIX -D_POSIX_SOURCE
-
.include "${.CURDIR}/ansi/Makefile.inc"
.include "${.CURDIR}/asyn/Makefile.inc"
.include "${.CURDIR}/ip/Makefile.inc"
# Makefile for libcurses
LIB= curses
-CPPFLAGS+= -O -D_MINIX -D_POSIX_SOURCE
SRCS= \
beep.c \
## -DUSE_TERMCAP Use the termcap library for terminal size
## see LDFLAGS, below, if you set this.
## -DNEED_PERROR Don't have (used in testit)
-DEFS=-DANSI_ARROWS -DHAVE_STDLIB -DHAVE_TCGETATTR -DHIDE -DUSE_DIRENT \
+CPPFLAGS+=-DANSI_ARROWS -DHAVE_STDLIB -DHAVE_TCGETATTR -DHIDE -DUSE_DIRENT \
-DHIST_SIZE=100 -DUSE_TERMCAP -DSYS_UNIX
-CPPFLAGS+=-O -D_MINIX -D_POSIX_SOURCE ${DEFS}
-
SRCS= editline.c complete.c sysunix.c
.include <minix.lib.mk>
LIB= sys
-CPPFLAGS+=-O -D_MINIX -D_POSIX_SOURCE
-
SRCS= \
alloc_util.c \
assert.c \
# Makefile for libtimers
-CPPFLAGS+=-O -D_MINIX -D_POSIX_SOURCE
-
LIB= timers
SRCS= \
# Makefile for libutil
-CPPFLAGS+=-O -D_MINIX -D_POSIX_SOURCE
-
LIB= util
SRCS= openpty.c sha2.c efun.c
--- /dev/null
+CPPFLAGS+= -D_MINIX -D_POSIX_SOURCE
+BINDIR?=/usr/sbin
BINDIR?= /usr/sbin
INSTALLFLAGS+= -S 64k
-CPPFLAGS+= -O -D_MINIX -D_POSIX_SOURCE
-
.include <minix.prog.mk>
# Makefile for the kernel image.
u=/usr
-CFLAGS= -O -D_MINIX -D_POSIX_SOURCE
MDEC= /usr/mdec
# Specify the programs that are part of the system image.