commit 400016a010702c23b82db89825d49b6cdd9362b6 Author: Jeremy Rand Date: Wed Jul 23 08:20:45 2014 -0500 Create a basic build infrastructure diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..acd5894 --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +APP=a2048 + +SYS=$(APP).system.sys +MAPFILE=$(APP).map + +INSTALL_DIR=~/Documents/"Apple ]["/Transfer + +SRCS=$(wildcard *.c) +ASM=$(wildcard *.s) + +C_OBJS=$(SRCS:.c=.o) +ASM_OBJS=$(ASM:.s=.o) +OBJS=$(C_OBJS) $(ASM_OBJS) + +PLATFORM=apple2 +PLATFORM_CFG=-C apple2-system.cfg + + +all: $(SYS) + +%.o: %.s + ca65 -t $(PLATFORM) -o $@ $< + +$(SYS): $(ASM_OBJS) $(SRCS) + cl65 -t $(PLATFORM) $(PLATFORM_CFG) --mapfile $(MAPFILE) -o $(SYS) $(SRCS) $(addprefix --obj ,$(ASM_OBJS)) + +clean: + rm -f $(SYS) $(OBJS) $(GEN_ASM) $(MAPFILE) + +install: $(SYS) + cp $(SYS) $(INSTALL_DIR) diff --git a/apple2048.c b/apple2048.c new file mode 100644 index 0000000..150228c --- /dev/null +++ b/apple2048.c @@ -0,0 +1,12 @@ +#include +#include +#include + + +int main(void) +{ + printf("DOES THIS WORK...\n"); + while (!kbhit()) { + } + return 0; +}