diff options
author | JozanLeClerc <JozanLeClerc@noemail.net> | 2020-11-25 21:19:53 +0000 |
---|---|---|
committer | JozanLeClerc <JozanLeClerc@noemail.net> | 2020-11-25 21:19:53 +0000 |
commit | 696d903136d538a73a4ea042ed4acef70a9fceed (patch) | |
tree | 01582a6ff1bcaf9977082212417d3aa8b6c49770 /Makefile | |
parent | Going full C (diff) | |
download | bsdsetsid-696d903136d538a73a4ea042ed4acef70a9fceed.tar.gz bsdsetsid-696d903136d538a73a4ea042ed4acef70a9fceed.tar.bz2 bsdsetsid-696d903136d538a73a4ea042ed4acef70a9fceed.tar.xz bsdsetsid-696d903136d538a73a4ea042ed4acef70a9fceed.tar.zst bsdsetsid-696d903136d538a73a4ea042ed4acef70a9fceed.zip |
Starting C
FossilOrigin-Name: 374ecea8addea6075973631703e13eefc5dfb545
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -11,7 +11,7 @@ # ======================== # # bsdsetsid: Makefile -# 2020-11-21 18:33 +# Wed Nov 25 22:16:00 CET 2020 # Joe # # BSD Makefile @@ -25,32 +25,33 @@ DESTDIR := MAKEOBJDIR := ./ SRCS = c_bsdsetsid -SRCS += e_err -SRCS += u_hexdec -SRCS += u_print -SRCS += u_strlen -SRCS += u_strncmp -SRCS := ${SRCS:S/$/.S/g} +SRCS := ${SRCS:S/$/.c/g} SRCS := ${SRCS:S/^/${SRCS_DIR}/g} OBJS := ${SRCS:=.o} NAME := bsdsetsid +CFLAGS += -std=c89 +CFLAGS += -Wall +CFLAGS += -Wextra +CFLAGS += -Werror +CFLAGS += -pedantic + RM := rm -f RMDIR := rmdir -p MKDIR := mkdir -p .OBJDIR: ./ -.SUFFIXES: .S.o .o -.S.S.o: - ${AS} -o ${.TARGET:S/src/obj/} ${.IMPSRC} +.SUFFIXES: .c.o .c +.c.c.o: + ${CC} -c ${CFLAGS} -o ${.TARGET:S/src/obj/} ${.IMPSRC} ${OBJS_DIR}: ${MKDIR} ${OBJS_DIR} ${NAME}: ${OBJS} - ${CC} -o ${.TARGET} ${.ALLSRC:S/src/obj/} + ${CC} ${CFLAGS} -o ${.TARGET} ${.ALLSRC:S/src/obj/} all: ${OBJS_DIR} ${NAME} @@ -64,4 +65,3 @@ clean: # Files prefixes index # -------------------- # c_ -> core program related -# u_ -> utils related |