This commit is contained in:
2018-11-04 19:45:09 +01:00
parent 918dd9e0ae
commit 02187e81f8
5 changed files with 35 additions and 20 deletions

View File

@@ -13,22 +13,23 @@ ELF = ${SRC:.c=.out}
# targets
all: ${ELF}
:
:
asm: ${ASM}
:
:
# rules
${ELF}: ${OBJ}
${CC} ${OBJ} -o ${ELF}
${CC} ${OBJ} -o ${ELF}
# object
%.o: %.c
${CC} -c ${CFLAGS} $< -o $@
${CC} -c ${CFLAGS} $< -o $@
%.s: %.c
${CC} ${AFLAGS} $< -o $@
${CC} ${AFLAGS} $< -o $@
# cleanall
clean:
${RM} -f ${ELF} ${OBJ} ${ASM}
${RM} -f ${ELF} ${OBJ} ${ASM}