diff options
author | JozanLeClerc <JozanLeClerc@noemail.net> | 2020-11-18 14:47:40 +0000 |
---|---|---|
committer | JozanLeClerc <JozanLeClerc@noemail.net> | 2020-11-18 14:47:40 +0000 |
commit | 74ea3ddf1053c35f205b0a2b3d15678c357c4964 (patch) | |
tree | 6d64e5f9026bf2bf6cca4d2dfb32d28a4f6b8ec2 /Makefile | |
parent | First check-in (diff) | |
download | bsdsetsid-74ea3ddf1053c35f205b0a2b3d15678c357c4964.tar.gz bsdsetsid-74ea3ddf1053c35f205b0a2b3d15678c357c4964.tar.bz2 bsdsetsid-74ea3ddf1053c35f205b0a2b3d15678c357c4964.tar.xz bsdsetsid-74ea3ddf1053c35f205b0a2b3d15678c357c4964.tar.zst bsdsetsid-74ea3ddf1053c35f205b0a2b3d15678c357c4964.zip |
This is the beginning
FossilOrigin-Name: 6db238a60f5173c98996ae2a135f762a21fdce4f
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2d5df69 --- /dev/null +++ b/Makefile @@ -0,0 +1,54 @@ +# ======================== +# ===== =============== +# ====== ================ +# ====== ================ +# ====== ==== ==== == +# ====== === == = = +# ====== === = == = +# = === === = == ==== +# = === === = == = = +# == ===== ==== == +# ======================== +# +# bsdsetsid: Makefile +# 2020-11-13 13:22 +# Joe +# +# BSD Makefile + +default: all + +SRCS_DIR := src/ +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 + +LD := ld.lld +LDFLAGS := + +NAME := bsdsetsid + +RM := rm -f + +.SUFFIXES: .S .o + +.S.o: + ${ASM} ${ASMFLAGS} -o ${.TARGET} ${.IMPSRC} + +${NAME}: ${OBJS} + ${LD} -o ${.TARGET} ${.ALLSRC} + +all: ${NAME} + +clean: + ${RM} ${OBJS} ${NAME} + +.PHONY: all clean |