Skip to content

Instantly share code, notes, and snippets.

@harveyslash
Created April 13, 2018 21:41
Show Gist options
  • Save harveyslash/f487e7fd2808f48a059407ba6c832a8f to your computer and use it in GitHub Desktop.
Save harveyslash/f487e7fd2808f48a059407ba6c832a8f to your computer and use it in GitHub Desktop.
# Makefile for CCS Experiment 5 - merge sort
#
#
# Location of the processing programs
#
RASM = /home/fac/wrc/bin/rasm
RLINK = /home/fac/wrc/bin/rlink
#
# Suffixes to be used or created
#
.SUFFIXES: .asm .obj .lst .out
#
# Transformation rule: .asm into .obj
#
.asm.obj:
$(RASM) -l $*.asm > $*.lst
#
# Transformation rule: .obj into .out
#
.obj.out:
$(RLINK) -m -o $*.out $*.obj > $*.map
#
# Object files
#
OBJECTS = colony.obj print.obj propagate.obj # validator.obj # sort.obj
#
# Main target
#
colony.out: $(OBJECTS)
$(RLINK) -m -o colony.out $(OBJECTS) > colony.map
print.out: $(OBJECTS)
$(RLINK) -m -o print.out $(OBJECTS) > print.map
propagate.out: $(OBJECTS)
$(RLINK) -m -o propagate.out $(OBJECTS) > propagate.map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment