Makefile revision 1.1.1.1
1# $NetBSD: Makefile,v 1.1.1.1 2023/03/21 16:37:28 christos Exp $ 2 3NOCTF= 4#HOSTPROG_CXX= 1 5 6.include <bsd.own.mk> 7 8.include "../Makefile.inc" 9 10LIBISPRIVATE= yes 11LIB= ctf 12GDBARCHDIR= ${.CURDIR}/arch/${GDB_MACHINE_ARCH} 13 14.include "${GDBARCHDIR}/defs.mk" 15 16SRCS= ${G_OBJECTS:.o=.c} 17GCPPFLAGS= ${G_INTERNAL_CFLAGS} 18CPPFLAGS+= -I${.CURDIR} \ 19 -I. \ 20 -I${DIST} \ 21 -I${DIST}/libctf \ 22 -I${DIST}/gnulib/import \ 23 -I${.CURDIR}/../libgnulib/arch/${GDB_MACHINE_ARCH} \ 24 -I${.CURDIR}/../libgnulib/arch/${GDB_MACHINE_ARCH}/import \ 25 -I${.CURDIR}/../libbfd/arch/${GDB_MACHINE_ARCH} \ 26 -I${GDBARCHDIR} \ 27 -I${DIST}/bfd \ 28 -I${DIST}/include \ 29 -Dsighandler_t=sig_t \ 30 -DHAVE_DECL_STPCPY \ 31 -DTARGET_SYSTEM_ROOT=\"\" \ 32 -DTARGET_SYSTEM_ROOT_RELOCATABLE=0 \ 33 -DBINDIR=\"${BINDIR}\" \ 34 ${GCPPFLAGS:M-D*} 35 36CWARNFLAGS.clang+= -Wno-switch 37 38CLEANDIRFILES+= ctf-error.h 39 40${G_OBJECTS} ${G_OBJECTS:.o=.d}: ctf-error.h 41 42ctf-error.h: ${DIST}/libctf/mkerrors.sed ${DIST}/include/ctf-api.h 43 ${TOOL_SED} -nf ${DIST}/libctf/mkerrors.sed < ${DIST}/include/ctf-api.h > $@ 44 45 46.include "../../Makefile.inc" 47.include <bsd.lib.mk> 48 49# Force c++ 50#CWARNFLAGS.clang+= -Wno-deprecated 51#HOST_CC:= ${HOST_CXX} 52#CC:= ${CXX} 53#CFLAGS:= ${CXXFLAGS} -std=gnu++11 -Wno-error=stack-protector 54 55.PATH: ${DIST}/libctf ${GDBARCHDIR} 56