--- embedtools/src/Makefile.in 2011/07/22 13:29:29 1.2.2.6 +++ embedtools/src/Makefile.in 2013/05/22 12:19:08 1.4.2.3 @@ -3,7 +3,7 @@ # by Michael Pounov # # $Author: misho $ -# $Id: Makefile.in,v 1.2.2.6 2011/07/22 13:29:29 misho Exp $ +# $Id: Makefile.in,v 1.4.2.3 2013/05/22 12:19:08 misho Exp $ # prefix = @prefix@ @@ -12,6 +12,7 @@ includedir = @includedir@ libdir = @libdir@ OS = @OS@ +MACHINE = @MACHINE@ CC = @CC@ MKDEP = @MKDEP@ @@ -19,29 +20,35 @@ MKDEP = @MKDEP@ BIN = ../bin INC = ../inc -LDADD = -laitcrc +LDADD = -lelwix CFEXEC_LDADD = ${LDADD} -laitcfg -#DUMPCFG_LDADD = ${LDADD} -laitcfg DPATCH_LDADD = ${LDADD} -laitsync -lcrypto -DIRER_LDADD = ${LDADD} -lcrypto -laitio -laitsync +DIRER_LDADD = ${LDADD} -lcrypto -laitsync DIRCMP_LDADD = ${LDADD} -lcrypto -laitsync #XMLER_LDADD = ${LDADD} -laitio ${libdir}/libaxl.a ${libdir}/libaxl-ns.a -XMLER_LDADD = ${LDADD} -laitio -laxl -laxl-ns +XMLER_LDADD = ${LDADD} -laitwww -laxl -laxl-ns WDOG_LDADD = ATHCTL_LDADD = -DWDS_LDADD = ${LDADD} -laitio -laitcfg -PKGADM_LDADD = +DWDS_LDADD = ${LDADD} -laitcfg CFI_LDADD = -PCENG_LDADD = +PCENG_LDADD = ${LDADD} -laitcfg +VOUCHER_LDADD = ${LDADD} -lcrypto -laitcfg -CFLAGS = -I. -I${INC} -I${includedir} -I${includedir}/axl -Wall -O2 -fPIC -g -DINET6 -LDFLAGS = -L. -L${libdir} -Wl,-R${libdir} +CFLAGS = -I. -I${INC} -I${includedir} -I${includedir}/axl @CFLAGS@ +LDFLAGS = -L. -L${libdir} -Wl,-R${libdir} @LDFLAGS@ -SRCS = ${CFEXEC_SRCS} ${UPDIMG_SRCS} ${GET1STETH_SRCS} ${DPATCH_SRCS} ${RCD_SRCS} \ - ${DIRER_SRCS} ${DIRCMP_SRCS} ${XMLER_SRCS} ${WDOG_SRCS} ${PKGADM_SRCS} ${PCENG_SRCS} -PROG = ${CFEXEC_PROG} ${UPDIMG_PROG} ${GET1STETH_PROG} ${DPATCH_PROG} ${RCD_PROG} \ - ${DIRER_PROG} ${DIRCMP_PROG} ${XMLER_PROG} ${WDOG_PROG} ${PKGADM_PROG} ${PCENG_PROG} +SRCS = ${CFEXEC_SRCS} ${UPDIMG_SRCS} ${GET1STETH_SRCS} ${DPATCH_SRCS} \ + ${DIRER_SRCS} ${DIRCMP_SRCS} ${XMLER_SRCS} ${WDOG_SRCS} \ + ${VOUCHER_SRCS} +PROG = ${CFEXEC_PROG} ${UPDIMG_PROG} ${GET1STETH_PROG} ${DPATCH_PROG} \ + ${DIRER_PROG} ${DIRCMP_PROG} ${XMLER_PROG} ${WDOG_PROG} \ + ${VOUCHER_PROG} +.if ${MACHINE} == "i386" && ${OS} == "FreeBSD" +SRCS += ${PCENG_SRCS} +PROG += ${PCENG_PROG} +.endif + CFEXEC_SRCS = cfexec.c CFEXEC_OBJS = cfexec.o compile.o CFEXEC_PROG = cfexec @@ -50,10 +57,6 @@ 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 @@ -62,10 +65,6 @@ 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 @@ -90,24 +89,24 @@ 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 - CFI_SRCS = cfi.c CFI_OBJS = cfi.o compile.o CFI_PROG = cfi -PCENG_SRCS = pceng.c -PCENG_OBJS = pceng.o compile.o +PCENG_SRCS = pceng.c pceng_run.c +PCENG_OBJS = pceng.o compile.o pceng_run.o PCENG_PROG = pceng +VOUCHER_SRCS = voucher.c +VOUCHER_OBJS = voucher.o compile.o +VOUCHER_PROG = voucher + all: depend \ ${PROG} \ ${OS} -FreeBSD: ${ATHCTL_PROG} ${DWDS_PROG} ${CFI_PROG} ${PCENG_PROG} +FreeBSD: ${ATHCTL_PROG} ${DWDS_PROG} ${CFI_PROG} OpenBSD: @@ -131,18 +130,12 @@ ${CFEXEC_PROG}: ${CFEXEC_OBJS} ${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} @@ -161,11 +154,11 @@ ${ATHCTL_PROG}: ${ATHCTL_OBJS} ${DWDS_PROG}: ${DWDS_OBJS} ${CC} ${LDFLAGS} -o${BIN}/$@ ${DWDS_OBJS} ${DWDS_LDADD} -${PKGADM_PROG}: ${PKGADM_OBJS} - ${CC} ${LDFLAGS} -o${BIN}/$@ ${PKGADM_OBJS} ${PKGADM_LDADD} - ${CFI_PROG}: ${CFI_OBJS} ${CC} ${LDFLAGS} -o${BIN}/$@ ${CFI_OBJS} ${CFI_LDADD} ${PCENG_PROG}: ${PCENG_OBJS} ${CC} ${LDFLAGS} -o${BIN}/$@ ${PCENG_OBJS} ${PCENG_LDADD} + +${VOUCHER_PROG}: ${VOUCHER_OBJS} + ${CC} ${LDFLAGS} -o${BIN}/$@ ${VOUCHER_OBJS} ${VOUCHER_LDADD}