blob: 02e886fac1c9326b9f4d9296c0251ab64bd53a45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
### lwp stuff
SRCS += lwp.c lock.c iomgr.c timer.c fasttime.c preempt.c q.c
OBJS += process.o
CLEANFILES += process.o
.PATH: ${.CURDIR}/../src/lwp
CFLAGS += -DAFS_BSD_ENV -DFD_SPEED_HACK -I${.CURDIR}/../src/lwp
process.o: process.S
HOST_CPU=${MACHINE_ARCH}; \
case "$$HOST_CPU" in \
sparc) CPUDEF="-Dsparc" ;; \
i*86*) CPUDEF="-DAFS_386i_ENV" ;; \
m68k) CPUDEF="-Dmc68000" ;; \
mips) CPUDEF="-Dmips" ;; \
alpha) CPUDEF="-Dalpha" ;; \
hppa*) CPUDEF="" ;; \
powerpc) CPUDEF="-D__powerpc__" ;; \
rs6000) CPUDEF="-DRIOS" ;; \
*) echo "Unknown host_cpu, good luck" ;; \
esac; \
OSDEF="-DAFS_NETBSD_ENV"; \
${CC} ${CFLAGS} $$CPUDEF $$OSDEF -c ${.CURDIR}/../src/lwp/process.S
|