Skip to content

Instantly share code, notes, and snippets.

@gyuque
Created March 5, 2018 18:33
Show Gist options
  • Save gyuque/27a6e0fc4501bb2c981312b6dd1a57c3 to your computer and use it in GitHub Desktop.
Save gyuque/27a6e0fc4501bb2c981312b6dd1a57c3 to your computer and use it in GitHub Desktop.
PRODUCT = RasterTest
ASMSOURCES = RasterTest.asm \
MainScreen.asm \
Video.asm \
DynSprite.asm \
initreg.asm
#-------------------------------------------------------------------------------
CL65 = ../cc65/bin/cl65.exe
LD65 = ../cc65/bin/ld65.exe
OBJECTS = $(addprefix objs/,$(notdir $(ASMSOURCES:.asm=.o)))
LIBRARIES =
#-------------------------------------------------------------------------------
all : $(OBJECTS) $(LIBRARIES)
$(LD65) -o $(PRODUCT).smc --config $(PRODUCT).cfg --obj $(OBJECTS)
.SUFFIXES : .asm .o
objs/%.o : %.asm
$(CL65) -t none -o objs/$*.o -c $*.asm
clean :
rm -f objs/*.o
rm -f *.smc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment