Rename BIN to OUT, as the output of the compilation might also be something else
This commit is contained in:
parent
a72e2868b9
commit
f276753dc9
@ -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
|
||||
|
||||
|
@ -22,7 +22,7 @@ LIB =\
|
||||
INCDIR =\
|
||||
src/project/
|
||||
|
||||
BIN = project
|
||||
OUT = project
|
||||
|
||||
# Conditionals / Appends
|
||||
LDFLAGS +=\
|
||||
|
@ -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
|
||||
|
||||
|
@ -21,7 +21,7 @@ LIB =\
|
||||
INCDIR =\
|
||||
src/project/
|
||||
|
||||
BIN = project
|
||||
OUT = project
|
||||
|
||||
# Conditionals / Appends
|
||||
LDFLAGS +=\
|
||||
|
Loading…
Reference in New Issue
Block a user