#
# (C) 2009 AITnet - Sofia/Bulgaria - <misho@openbsd-bg.org>
# by Michael Pounov <misho@openbsd-bg.org>
#
# $Author: misho $
# $Id: Makefile.in,v 1.1.2.1 2011/06/08 09:08:44 misho Exp $
#
prefix = @prefix@
exec_prefix = @exec_prefix@
includedir = @includedir@
libdir = @libdir@
CC = @CC@
MKDEP = @MKDEP@
BIN = ../bin
INC = ../inc
LDADD = -laitcrc
CFEXEC_LDADD = ${LDADD} -laitcfg
#DUMPCFG_LDADD = ${LDADD} -laitcfg
DPATCH_LDADD = ${LDADD} -laitsync -lcrypto
DIRER_LDADD = ${LDADD} -lcrypto -laitio -laitsync
DIRCMP_LDADD = ${LDADD} -lcrypto -laitsync
#XMLER_LDADD = ${LDADD} -laitio ${libdir}/libaxl.a ${libdir}/libaxl-ns.a
XMLER_LDADD = ${LDADD} -laitio -laxl -laxl-ns
WDOG_LDADD =
CLOG_LDADD =
ATHCTL_LDADD =
DWDS_LDADD = ${LDADD} -laitio -laitcfg
SYSLOGD_LDADD = -lutil
PKGADM_LDADD =
CFLAGS = -I. -I${INC} -I${includedir} -I${includedir}/axl -Wall -O2 -fPIC -g -DINET6
LDFLAGS = -L. -L${libdir}
SRCS = ${CFEXEC_SRCS} ${UPDIMG_SRCS} ${GET1STETH_SRCS} ${DPATCH_SRCS} ${RCD_SRCS} \
${DIRER_SRCS} ${DIRCMP_SRCS} ${XMLER_SRCS} ${CLOG_SRCS} ${SYSLOGD_SRCS} \
${WDOG_SRCS} ${ATHCTL_SRCS} ${DWDS_SRCS} ${PKGADM_SRCS}
PROG = ${CFEXEC_PROG} ${UPDIMG_PROG} ${GET1STETH_PROG} ${DPATCH_PROG} ${RCD_PROG} \
${DIRER_PROG} ${DIRCMP_PROG} ${XMLER_PROG} ${CLOG_PROG} ${SYSLOGD_PROG} \
${WDOG_PROG} ${ATHCTL_PROG} ${DWDS_PROG} ${PKGADM_PROG}
CFEXEC_SRCS = cfexec.c
CFEXEC_OBJS = cfexec.o compile.o
CFEXEC_PROG = cfexec
UPDIMG_SRCS = updimg.c upd.c
UPDIMG_OBJS = updimg.o compile.o upd.o
UPDIMG_PROG = updimg
#DUMPCFG_SRCS = dumpcfg.c dumpz.c
#DUMPCFG_OBJS = dumpcfg.o compile.o dumpz.o
#DUMPCFG_PROG = dumpcfg
GET1STETH_SRCS = get1steth.c
GET1STETH_OBJS = get1steth.o compile.o
GET1STETH_PROG = get1steth
DPATCH_SRCS = dpatch.c
DPATCH_OBJS = dpatch.o compile.o
DPATCH_PROG = dpatch
RCD_SRCS = rcd.c
RCD_OBJS = rcd.o compile.o
RCD_PROG = rcd
DIRER_SRCS = direr.c
DIRER_OBJS = direr.o compile.o
DIRER_PROG = direr
DIRCMP_SRCS = dircmp.c
DIRCMP_OBJS = dircmp.o compile.o
DIRCMP_PROG = dircmp
XMLER_SRCS = xmler.c
XMLER_OBJS = xmler.o compile.o
XMLER_PROG = xmler
CLOG_SRCS = clog.c
CLOG_OBJS = clog.o compile.o
CLOG_PROG = clog
SYSLOGD_SRCS = syslogd.c
SYSLOGD_OBJS = syslogd.o compile.o
SYSLOGD_PROG = syslogd
WDOG_SRCS = wdog.c
WDOG_OBJS = wdog.o compile.o
WDOG_PROG = wdog
ATHCTL_SRCS = athctl.c
ATHCTL_OBJS = athctl.o compile.o
ATHCTL_PROG = athctl
DWDS_SRCS = dwds.c vap.c
DWDS_OBJS = dwds.o compile.o vap.o
DWDS_PROG = dwds
PKGADM_SRCS = pkgadm.c
PKGADM_OBJS = pkgadm.o
PKGADM_PROG = pkgadm
all: depend \
${PROG}
.c.o: ${SRCS} compile.c
${CC} -c ${CFLAGS} $<
depend:
./compile.sh
${MKDEP} ${CFLAGS} ${SRCS}
clean:
rm -f *.o .depend compile.c *~
install:
${CFEXEC_PROG}: ${CFEXEC_OBJS}
${CC} ${LDFLAGS} -o${BIN}/$@ ${CFEXEC_OBJS} ${CFEXEC_LDADD}
${UPDIMG_PROG}: ${UPDIMG_OBJS}
${CC} ${LDFLAGS} -o${BIN}/$@ ${UPDIMG_OBJS}
#${DUMPCFG_PROG}: ${DUMPCFG_OBJS}
# ${CC} ${LDFLAGS} -o${BIN}/$@ ${DUMPCFG_OBJS} ${DUMPCFG_LDADD}
${GET1STETH_PROG}: ${GET1STETH_OBJS}
${CC} ${LDFLAGS} -o${BIN}/$@ ${GET1STETH_OBJS}
${DPATCH_PROG}: ${DPATCH_OBJS}
${CC} ${LDFLAGS} -o${BIN}/$@ ${DPATCH_OBJS} ${DPATCH_LDADD}
${RCD_PROG}: ${RCD_OBJS}
${CC} ${LDFLAGS} -o${BIN}/$@ ${RCD_OBJS} ${LDADD}
${DIRER_PROG}: ${DIRER_OBJS}
${CC} ${LDFLAGS} -o${BIN}/$@ ${DIRER_OBJS} ${LDADD} ${DIRER_LDADD}
${DIRCMP_PROG}: ${DIRCMP_OBJS}
${CC} ${LDFLAGS} -o${BIN}/$@ ${DIRCMP_OBJS} ${LDADD} ${DIRCMP_LDADD}
${XMLER_PROG}: ${XMLER_OBJS}
${CC} ${LDFLAGS} -o${BIN}/$@ ${XMLER_OBJS} ${XMLER_LDADD}
${CLOG_PROG}: ${CLOG_OBJS}
${CC} ${LDFLAGS} -o${BIN}/$@ ${CLOG_OBJS} ${CLOG_LDADD}
${SYSLOGD_PROG}: ${SYSLOGD_OBJS}
${CC} ${LDFLAGS} -o${BIN}/$@ ${SYSLOGD_OBJS} ${SYSLOGD_LDADD}
${WDOG_PROG}: ${WDOG_OBJS}
${CC} ${LDFLAGS} -o${BIN}/$@ ${WDOG_OBJS} ${WDOG_LDADD}
${ATHCTL_PROG}: ${ATHCTL_OBJS}
${CC} ${LDFLAGS} -o${BIN}/$@ ${ATHCTL_OBJS} ${ATHCTL_LDADD}
${DWDS_PROG}: ${DWDS_OBJS}
${CC} ${LDFLAGS} -o${BIN}/$@ ${DWDS_OBJS} ${DWDS_LDADD}
${PKGADM_PROG}: ${PKGADM_OBJS}
${CC} ${LDFLAGS} -o${BIN}/$@ ${PKGADM_OBJS} ${PKGADM_LDADD}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>