这是更动过之后的makefile
ARFLAGS := rcv
AR := ar
default: lib //这行是多加的
$(OBJ_FILES)
@$(CXX) $(CXXFLAGS) $(OBJ_FILES) -o $(TARGET)
@echo " LD $(TARGET)"
lib: libcircuit.a
libcircuit.a: $(OBJ_FILES)
$(AR) $(ARFLAGS) libcircuit.a $(OBJ_FILES)
厄..不知道问题出在哪边,麻烦助教了~"~
sajim@ubuntu:~/桌面/PA4/package_src/Circuit$ make
YACC src/circuit/readVlog/readVlogYacc.y ->
src/circuit/readVlog/readVlogYacc.c
make: bison: Command not found
LEX src/circuit/readVlog/readVlogLex.l ->
src/circuit/readVlog/readVlogLex.c
make: flex: Command not found
YACC src/circuit/readVlog/readVlogYacc.y ->
src/circuit/readVlog/readVlogYacc.c
make: bison: Command not found
LEX src/circuit/readVlog/readVlogLex.l ->
src/circuit/readVlog/readVlogLex.c
make: flex: Command not found
CXX src/main.cpp -> obj/main.o
CXX src/circuit/circuit.cpp -> obj/circuit.o
CXX src/circuit/gate.cpp -> obj/gate.o
CXX src/circuit/net.cpp -> obj/net.o
这个是我执行完make的画面~