summaryrefslogtreecommitdiff
path: root/usr.sbin/config/Makefile
blob: 51dbd1b01648d78d4b0657ffe7cb1eb21844cbde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#	$OpenBSD: Makefile,v 1.5 1999/10/04 20:00:50 deraadt Exp $

PROG=	config
BINDIR=	/usr/sbin
SRCS=	files.c gram.y hash.c main.c mkheaders.c mkioconf.c mkmakefile.c \
	mkswap.c pack.c scan.l sem.c util.c \
	ukc.c misc.c ukcutil.c cmd.c exec.c
.if (${MACHINE_ARCH} == "alpha")
CFLAGS+=-DECOFF_SUPPORT
SRCS+=  exec_ecoff.c
.elif (${MACHINE_ARCH} == "mips") || (${MACHINE_ARCH} == "powerpc") || \
    (${MACHINE_ARCH} == "hppa")
CFLAGS+=-DELF_SUPPORT
SRCS+=  exec_elf.c
.else
CFLAGS+=-DAOUT_SUPPORT
SRCS+=  exec_aout.c
.endif
.if (${MACHINE} == "pmax")
CFLAGS+=-DAOUT_SUPPORT
SRCS+=  exec_aout.c
.endif

CFLAGS+=-I${.CURDIR} -I.

# This program actually requires "flex" (not just any old lex).
# Also note that it does not use -ll
LEX=flex

LDADD=	-lkvm
DPADD=	${LIBKVM}

CLEANFILES=gram.c scan.c y.tab.h
MAN=	config.8

.include <bsd.prog.mk>

.depend: gram.c scan.c