# The DragonFly Loader # # .if ${MACHINE_ARCH} == "x86_64" .MAKEFLAGS: MACHINE_ARCH=i386 MACHINE_PLATFORM=pc32 REALLY_X86_64=true .else .MAKEFLAGS: REALLY_X86_64=false .endif .if exists(../${MACHINE_PLATFORM}/Makefile.inc) .include "../${MACHINE_PLATFORM}/Makefile.inc" .endif SRCS= subs.c config.c cmds.c .if HAVE_PNP CFLAGS+= -DHAVE_PNP .endif .ifmake testmain CFLAGS+= -DTESTMAIN -D_TESTMAIN SRCS+= testmain.c PROG= testmain OBJS+= rel_open.o rel_open.o: ../common/rel_open.c .include .else OBJS+= stack_protector.o LIB= dloader INTERNALLIB= yes stack_protector.o: ../../libkern/stack_protector.c .include .endif CFLAGS+= -I${.CURDIR} CFLAGS+= -I${.CURDIR}/../common