aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 7 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 2d5df69..7c56037 100644
--- a/Makefile
+++ b/Makefile
@@ -23,16 +23,15 @@ PREFIX := /usr/local/
DESTDIR :=
SRCS := ${SRCS_DIR}c_bsdsetsid.S
-SRCS += ${SRCS_DIR}u_write.S
OBJS = ${SRCS:.S=.o}
-ASM ?= yasm
-ASMFLAGS := -felf64
-ASMFLAGS += -pgas
+AS := yasm
+ASFLAGS := -felf64
+ASFLAGS += -pgas
-LD := ld.lld
-LDFLAGS :=
+LD := ld
+LDFLAGS := -melf_x86_64
NAME := bsdsetsid
@@ -41,10 +40,10 @@ RM := rm -f
.SUFFIXES: .S .o
.S.o:
- ${ASM} ${ASMFLAGS} -o ${.TARGET} ${.IMPSRC}
+ ${AS} ${ASFLAGS} -o ${.TARGET} ${.IMPSRC}
${NAME}: ${OBJS}
- ${LD} -o ${.TARGET} ${.ALLSRC}
+ ${LD} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
all: ${NAME}