中级makefile

TARGET=log4ctest
OBJS
=main.o other.o mylog.o
INC
=
LIBPATH
=

%.o:%.cpp
g
++ -Wall -c -g -I$(INC) -I. $< -o $@

$(TARGET):$(OBJS)
g
++ $(OBJS) -llog4c -o $(TARGET)

.PHONY:clean

clean:
rm
*.o $(TARGET)

完美

相关文章:

  • 2022-12-23
  • 2022-02-07
  • 2022-02-08
  • 2021-10-24
  • 2021-07-04
  • 2021-11-23
  • 2021-12-14
  • 2022-02-13
猜你喜欢
  • 2022-01-02
  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
  • 2022-02-01
  • 2021-11-02
  • 2022-12-23
相关资源
相似解决方案