Compare commits

..

2 Commits

Author SHA1 Message Date
94d33b3d69
cs-2233: complete assignment 3 2024-02-12 15:36:06 -06:00
b292838433
cs-2124: complete Assignment 2 2024-02-12 15:36:06 -06:00
2 changed files with 12 additions and 296 deletions

View File

@ -0,0 +1,12 @@
cmake_minimum_required(VERSION 3.25)
set(SOURCES src/lib/vec.h src/lib/lib.h src/lib/lib.c)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY bin)
project(AssignmentOne LANGUAGES C)
add_executable(PartOne src/part_one.c ${SOURCES})
add_executable(PartTwo src/part_two.c ${SOURCES})
add_executable(PartThree src/part_three.c ${SOURCES})

View File

@ -1,296 +0,0 @@
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.28
# Default target executed when no arguments are given to make.
default_target: all
.PHONY : default_target
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
.NOTPARALLEL:
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Disable VCS-based implicit rules.
% : %,v
# Disable VCS-based implicit rules.
% : RCS/%
# Disable VCS-based implicit rules.
% : RCS/%,v
# Disable VCS-based implicit rules.
% : SCCS/s.%
# Disable VCS-based implicit rules.
% : s.%
.SUFFIXES: .hpux_make_needs_suffix_list
# Command-line flag to silence nested $(MAKE).
$(VERBOSE)MAKESILENT = -s
#Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /usr/bin/cmake
# The command to remove a file.
RM = /usr/bin/cmake -E rm -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /home/sam/Git/College/Spring-2023/CS-2124/Assignment-2
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /home/sam/Git/College/Spring-2023/CS-2124/Assignment-2
#=============================================================================
# Targets provided globally by CMake.
# Special rule for the target edit_cache
edit_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..."
/usr/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : edit_cache
# Special rule for the target edit_cache
edit_cache/fast: edit_cache
.PHONY : edit_cache/fast
# Special rule for the target rebuild_cache
rebuild_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..."
/usr/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : rebuild_cache
# Special rule for the target rebuild_cache
rebuild_cache/fast: rebuild_cache
.PHONY : rebuild_cache/fast
# The main all target
all: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /home/sam/Git/College/Spring-2023/CS-2124/Assignment-2/CMakeFiles /home/sam/Git/College/Spring-2023/CS-2124/Assignment-2//CMakeFiles/progress.marks
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 all
$(CMAKE_COMMAND) -E cmake_progress_start /home/sam/Git/College/Spring-2023/CS-2124/Assignment-2/CMakeFiles 0
.PHONY : all
# The main clean target
clean:
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 clean
.PHONY : clean
# The main clean target
clean/fast: clean
.PHONY : clean/fast
# Prepare targets for installation.
preinstall: all
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall
# Prepare targets for installation.
preinstall/fast:
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall/fast
# clear depends
depend:
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
.PHONY : depend
#=============================================================================
# Target rules for targets named PartOne
# Build rule for target.
PartOne: cmake_check_build_system
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 PartOne
.PHONY : PartOne
# fast build rule for target.
PartOne/fast:
$(MAKE) $(MAKESILENT) -f CMakeFiles/PartOne.dir/build.make CMakeFiles/PartOne.dir/build
.PHONY : PartOne/fast
#=============================================================================
# Target rules for targets named PartTwo
# Build rule for target.
PartTwo: cmake_check_build_system
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 PartTwo
.PHONY : PartTwo
# fast build rule for target.
PartTwo/fast:
$(MAKE) $(MAKESILENT) -f CMakeFiles/PartTwo.dir/build.make CMakeFiles/PartTwo.dir/build
.PHONY : PartTwo/fast
#=============================================================================
# Target rules for targets named PartThree
# Build rule for target.
PartThree: cmake_check_build_system
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 PartThree
.PHONY : PartThree
# fast build rule for target.
PartThree/fast:
$(MAKE) $(MAKESILENT) -f CMakeFiles/PartThree.dir/build.make CMakeFiles/PartThree.dir/build
.PHONY : PartThree/fast
src/lib/lib.o: src/lib/lib.c.o
.PHONY : src/lib/lib.o
# target to build an object file
src/lib/lib.c.o:
$(MAKE) $(MAKESILENT) -f CMakeFiles/PartOne.dir/build.make CMakeFiles/PartOne.dir/src/lib/lib.c.o
$(MAKE) $(MAKESILENT) -f CMakeFiles/PartTwo.dir/build.make CMakeFiles/PartTwo.dir/src/lib/lib.c.o
$(MAKE) $(MAKESILENT) -f CMakeFiles/PartThree.dir/build.make CMakeFiles/PartThree.dir/src/lib/lib.c.o
.PHONY : src/lib/lib.c.o
src/lib/lib.i: src/lib/lib.c.i
.PHONY : src/lib/lib.i
# target to preprocess a source file
src/lib/lib.c.i:
$(MAKE) $(MAKESILENT) -f CMakeFiles/PartOne.dir/build.make CMakeFiles/PartOne.dir/src/lib/lib.c.i
$(MAKE) $(MAKESILENT) -f CMakeFiles/PartTwo.dir/build.make CMakeFiles/PartTwo.dir/src/lib/lib.c.i
$(MAKE) $(MAKESILENT) -f CMakeFiles/PartThree.dir/build.make CMakeFiles/PartThree.dir/src/lib/lib.c.i
.PHONY : src/lib/lib.c.i
src/lib/lib.s: src/lib/lib.c.s
.PHONY : src/lib/lib.s
# target to generate assembly for a file
src/lib/lib.c.s:
$(MAKE) $(MAKESILENT) -f CMakeFiles/PartOne.dir/build.make CMakeFiles/PartOne.dir/src/lib/lib.c.s
$(MAKE) $(MAKESILENT) -f CMakeFiles/PartTwo.dir/build.make CMakeFiles/PartTwo.dir/src/lib/lib.c.s
$(MAKE) $(MAKESILENT) -f CMakeFiles/PartThree.dir/build.make CMakeFiles/PartThree.dir/src/lib/lib.c.s
.PHONY : src/lib/lib.c.s
src/part_one.o: src/part_one.c.o
.PHONY : src/part_one.o
# target to build an object file
src/part_one.c.o:
$(MAKE) $(MAKESILENT) -f CMakeFiles/PartOne.dir/build.make CMakeFiles/PartOne.dir/src/part_one.c.o
.PHONY : src/part_one.c.o
src/part_one.i: src/part_one.c.i
.PHONY : src/part_one.i
# target to preprocess a source file
src/part_one.c.i:
$(MAKE) $(MAKESILENT) -f CMakeFiles/PartOne.dir/build.make CMakeFiles/PartOne.dir/src/part_one.c.i
.PHONY : src/part_one.c.i
src/part_one.s: src/part_one.c.s
.PHONY : src/part_one.s
# target to generate assembly for a file
src/part_one.c.s:
$(MAKE) $(MAKESILENT) -f CMakeFiles/PartOne.dir/build.make CMakeFiles/PartOne.dir/src/part_one.c.s
.PHONY : src/part_one.c.s
src/part_three.o: src/part_three.c.o
.PHONY : src/part_three.o
# target to build an object file
src/part_three.c.o:
$(MAKE) $(MAKESILENT) -f CMakeFiles/PartThree.dir/build.make CMakeFiles/PartThree.dir/src/part_three.c.o
.PHONY : src/part_three.c.o
src/part_three.i: src/part_three.c.i
.PHONY : src/part_three.i
# target to preprocess a source file
src/part_three.c.i:
$(MAKE) $(MAKESILENT) -f CMakeFiles/PartThree.dir/build.make CMakeFiles/PartThree.dir/src/part_three.c.i
.PHONY : src/part_three.c.i
src/part_three.s: src/part_three.c.s
.PHONY : src/part_three.s
# target to generate assembly for a file
src/part_three.c.s:
$(MAKE) $(MAKESILENT) -f CMakeFiles/PartThree.dir/build.make CMakeFiles/PartThree.dir/src/part_three.c.s
.PHONY : src/part_three.c.s
src/part_two.o: src/part_two.c.o
.PHONY : src/part_two.o
# target to build an object file
src/part_two.c.o:
$(MAKE) $(MAKESILENT) -f CMakeFiles/PartTwo.dir/build.make CMakeFiles/PartTwo.dir/src/part_two.c.o
.PHONY : src/part_two.c.o
src/part_two.i: src/part_two.c.i
.PHONY : src/part_two.i
# target to preprocess a source file
src/part_two.c.i:
$(MAKE) $(MAKESILENT) -f CMakeFiles/PartTwo.dir/build.make CMakeFiles/PartTwo.dir/src/part_two.c.i
.PHONY : src/part_two.c.i
src/part_two.s: src/part_two.c.s
.PHONY : src/part_two.s
# target to generate assembly for a file
src/part_two.c.s:
$(MAKE) $(MAKESILENT) -f CMakeFiles/PartTwo.dir/build.make CMakeFiles/PartTwo.dir/src/part_two.c.s
.PHONY : src/part_two.c.s
# Help Target
help:
@echo "The following are some of the valid targets for this Makefile:"
@echo "... all (the default if no target is provided)"
@echo "... clean"
@echo "... depend"
@echo "... edit_cache"
@echo "... rebuild_cache"
@echo "... PartOne"
@echo "... PartThree"
@echo "... PartTwo"
@echo "... src/lib/lib.o"
@echo "... src/lib/lib.i"
@echo "... src/lib/lib.s"
@echo "... src/part_one.o"
@echo "... src/part_one.i"
@echo "... src/part_one.s"
@echo "... src/part_three.o"
@echo "... src/part_three.i"
@echo "... src/part_three.s"
@echo "... src/part_two.o"
@echo "... src/part_two.i"
@echo "... src/part_two.s"
.PHONY : help
#=============================================================================
# Special targets to cleanup operation of make.
# Special rule to run CMake to check the build system integrity.
# No rule that depends on this can have commands that come from listfiles
# because they might be regenerated.
cmake_check_build_system:
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
.PHONY : cmake_check_build_system