aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 2d5df69006b3af4de698c5ee1e844b0dd97a400d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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