User:Simonea

Enrolled in ECE 597 at Rose-Hulman Institute of Technology, working on ECE597 Interactive Pong

Lab 5 Part C
I found the following makefile to work, while the suggested alterations and the file in "solutions/lab05c_x86_configuro/app" did not work for me:
 * 1) Makefile
 * 2) x86 makefile for lab 5 part c.
 * 3) **NOTE: ensure that the values in setpaths.mak are set properly for where
 * 4) 	 the actual packages are
 * 1) **NOTE: ensure that the values in setpaths.mak are set properly for where
 * 2) 	 the actual packages are
 * 1) 	 the actual packages are

include ../../setpaths.mak

CC := $(LINUX86_GCC) CC_ROOT := $(LINUX86_DIR) CFLAGS := -g LINKER_FLAGS := -lstdc++
 * 1) Variables

CONFIG := app_cfg XDC:=$(XDC_INSTALL_DIR)/xdc CONFIGURO:= $(XDC_INSTALL_DIR)/xs xdc.tools.configuro export XDCPATH:=/home/user/rtsc_primer/examples;$(XDCROOT) TARGET  := gnu.targets.Linux86 PLATFORM := host.platforms.PC
 * 1) Configuro Vars

.PHONY:all all:app.x86U

.PHONY : clean clean : @rm -rf app.x86U @rm -rf app.o	@rm -rf $(CONFIG)

app.x86U : app.o $(CONFIG)/linker.cmd @$(CC) $(CFLAGS) $(LINKER_FLAGS) $^ -o $@ @echo $@ successfully created
 * 1) Primary

%.o : %.c compiler.opt @$(CC) $(CFLAGS) $(shell cat $(CONFIG)/compiler.opt) -c $< -o $@

compiler.opt linker.cmd : $(CONFIG).cfg @$(CONFIGURO) -c $(CC_ROOT) -t $(TARGET) -p $(PLATFORM) -o $(CONFIG) $^ @echo "Configuro has completed; it's results are in $(CONFIG) "