diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-16 15:20:29 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-16 15:20:29 +0200 |
commit | 3525255be78b62a6efbf4aa54b19e1541c946376 (patch) | |
tree | 16b119194ab9a0208f54ebaeb26b540c94120996 /Makefile | |
parent | Learning BSD make (diff) | |
download | lowbat-bsd-3525255be78b62a6efbf4aa54b19e1541c946376.tar.gz lowbat-bsd-3525255be78b62a6efbf4aa54b19e1541c946376.tar.bz2 lowbat-bsd-3525255be78b62a6efbf4aa54b19e1541c946376.tar.xz lowbat-bsd-3525255be78b62a6efbf4aa54b19e1541c946376.tar.zst lowbat-bsd-3525255be78b62a6efbf4aa54b19e1541c946376.zip |
BSD make is bav
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -5,7 +5,7 @@ SHELL := /bin/sh SRCS_DIR = src ASRCS_DIR = asm # ------------------------------------------------------------------------------------------------ # -OBJS_DIR = obj +OBJS_DIR = cobj AOBJS_DIR = asmobj # =========================================== FILES ============================================== # SRCS = ${SRCS_DIR}/jo_main.c @@ -27,24 +27,21 @@ ASMFLAGS = -f ASMARCH = elf64_fbsd # ============================================ UNIX ============================================== # RM = rm -rf -MKDIR = mkdir +MKDIR = mkdir -p CP = cp MV = mv AWK = awk -F SED = sed # ============================================ RULES ============================================= # -# .include "./.depend" depend: - pwd ${CC} -I${SRCS_DIR}/ -E -MM ${SRCS} > .depend - -config: - ${MKDIR} ${OBJS_DIR} ${SED} 's/^/${OBJS_DIR}\//' .depend > .depend.tmp ${MV} .depend.tmp .depend + ${MKDIR} ${OBJS_DIR} -all: depend config +all: depend +# .include "./.depend" clean: ${RM} ${OBJS_DIR} |