Makefile linking works, but not well
How do I implement the make file to link everything together correctly? What I have: CC = g++ # Compiler flags: # -g - debugging info. # -Wall - used to turn on most compiler warnings. CFLAGS = -g -Wall # The build target TARGET = icbins # To bring exe up to date: $(TARGET): main.o m1/cell.o m1/abstractions.o m1/expression.o m1/arithmetic.o m1/logic.o m1/cell.o m1/grid.o parsing/token.o parsing/lexer.o parsing/parser.o interface/icbins.o $(CC) $(CFLAGS) -o $(TARGET) main.o m1/cell.o m1/abstractions.o m1/expression.o m1/arithmetic.o m1/logic.o m1/cell.o m1/grid.o parsing/token.o -lncurses main.
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.