# Just call this "Makefile" (Exactly, without quotes) #some programs CPP = g++ RM = del # your source files, with .o e.g. OBJ = main.o other.o hi/hi.o BIN = nameOfProgram.exe CXXFLAGS = -I"/path/to/boost" #other things you need LDFLAGS = -L"/path/to/boost" #other things you need, you might not need this #note from here, long spaces HAVE to be tabs all: $(BIN) @echo Program build, running... @echo. $(BIN) $(BIN): $(OBJ) $(CPP) $(OBJ) -o $(BIN) $(LDFLAGS) main.o: main.cpp $(CPP) -c main.cpp -o main.o $(CXXFLAGS) other.o: other.cpp $(CPP) -c other.cpp -o other.o $(CXXFLAGS) hi/hi.o: hi/hi.cpp $(CPP) -c hi/hi.cpp -o hi/hi.o $(CXXFLAGS) clean: del *.o del $(BIN) .PHONY: clean |