Make appropriate outputting.
Fix Makefile and add optional rebuild shorcut function. Fix outputs in simplex.cpp
This commit is contained in:
@@ -36,3 +36,32 @@ test: simplex.out
|
||||
|
||||
clean:
|
||||
rm -rf $(BUILD)
|
||||
rm -rf simplex.out
|
||||
|
||||
rebuild:
|
||||
rm -rf $(BUILD)
|
||||
rm -rf simplex.out
|
||||
|
||||
mkdir -p $(BUILD)
|
||||
$(GXX) -c $(flags) $(TOOLS)/elimination.cpp -o $(BUILD)/elimination.obj
|
||||
$(GXX) -c $(flags) $(TOOLS)/math.cpp -o $(BUILD)/math.obj
|
||||
$(GXX) -c $(flags) $(TOOLS)/matrix.cpp -o $(BUILD)/matrix.obj
|
||||
$(GXX) -c $(flags) simplex.cpp -o $(BUILD)/simplex.obj
|
||||
$(GXX) -c $(flags) main.cpp -o $(BUILD)/main.obj
|
||||
|
||||
$(GXX) $(BUILD)/*.obj $(flags) -o simplex.out
|
||||
|
||||
$(BUILD)/elimination.obj: $(TOOLS)/elimination.cpp
|
||||
$(GXX) -c $(flags) $(TOOLS)/elimination.cpp -o $(BUILD)/elimination.obj
|
||||
|
||||
$(BUILD)/math.obj: $(TOOLS)/math.cpp
|
||||
$(GXX) -c $(flags) $(TOOLS)/math.cpp -o $(BUILD)/math.obj
|
||||
|
||||
$(BUILD)/matrix.obj: $(TOOLS)/matrix.cpp
|
||||
$(GXX) -c $(flags) $(TOOLS)/matrix.cpp -o $(BUILD)/matrix.obj
|
||||
|
||||
$(BUILD)/simplex.obj: simplex.cpp
|
||||
$(GXX) -c $(flags) simplex.cpp -o $(BUILD)/simplex.obj
|
||||
|
||||
$(BUILD)/main.obj: main.cpp
|
||||
$(GXX) -c $(flags) main.cpp -o $(BUILD)/main.obj
|
||||
|
||||
Reference in New Issue
Block a user