Browse Source

Rename BIN to OUT, as the output of the compilation might also be something else

master
Alex D. 9 months ago
parent
commit
f276753dc9
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
  1. 8
      c/Makefile
  2. 2
      c/config.mk
  3. 8
      cxx/Makefile
  4. 2
      cxx/config.mk

8
c/Makefile

@ -2,16 +2,16 @@ include config.mk
OBJ = ${SRC:.c=.o}
all: ${OBJ} ${BIN}
all: ${OBJ} ${OUT}
%.o: %.c
${CC} -o $@ -c ${CFLAGS} $<
clean:
rm -f ${OBJ} ${BIN}
rm -f ${OBJ} ${OUT}
ifneq (${BIN},)
${BIN}: ${OBJ}
ifneq (${OUT},)
${OUT}: ${OBJ}
${CC} -o "$@" ${LDFLAGS} $^
endif

2
c/config.mk

@ -22,7 +22,7 @@ LIB =\
INCDIR =\
src/project/
BIN = project
OUT = project
# Conditionals / Appends
LDFLAGS +=\

8
cxx/Makefile

@ -2,16 +2,16 @@ include config.mk
OBJ = ${SRC:.cpp=.o}
all: ${OBJ} ${BIN}
all: ${OBJ} ${OUT}
%.o: %.cpp
${CXX} -o $@ -c ${CXXFLAGS} $<
clean:
rm -f ${OBJ} ${BIN}
rm -f ${OBJ} ${OUT}
ifneq (${BIN},)
${BIN}: ${OBJ}
ifneq (${OUT},)
${OUT}: ${OBJ}
${CXX} -o "$@" ${LDFLAGS} $^
endif

2
cxx/config.mk

@ -21,7 +21,7 @@ LIB =\
INCDIR =\
src/project/
BIN = project
OUT = project
# Conditionals / Appends
LDFLAGS +=\

Loading…
Cancel
Save