aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJozanLeClerc <JozanLeClerc@noemail.net>2020-11-18 15:13:02 +0000
committerJozanLeClerc <JozanLeClerc@noemail.net>2020-11-18 15:13:02 +0000
commit9bc8ca088ab64fea2f815e1aa1971bdde23ef0d1 (patch)
tree5918dbfcabdbfca4daa25919da5224e30536a414 /Makefile
parentThis is the beginning (diff)
downloadbsdsetsid-9bc8ca088ab64fea2f815e1aa1971bdde23ef0d1.tar.gz
bsdsetsid-9bc8ca088ab64fea2f815e1aa1971bdde23ef0d1.tar.bz2
bsdsetsid-9bc8ca088ab64fea2f815e1aa1971bdde23ef0d1.tar.xz
bsdsetsid-9bc8ca088ab64fea2f815e1aa1971bdde23ef0d1.tar.zst
bsdsetsid-9bc8ca088ab64fea2f815e1aa1971bdde23ef0d1.zip
In progress
FossilOrigin-Name: ff7fff8d77d6179426bd8ca6c7585423605896e3
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}