# Executable Targets default: apple-c apple-c: computer.a video.a gcc -o ../$@ main.c $^ -lncurses -lSDL # Internal Static Libraries computer.a: cpu/6502.o cpu/addressing.o cpu/instructions.o cpu/table.o apple.o ar -rcs $@ $^ video.a: video/mode.o video/ncurses.o video/sdl.o ar -rcs $@ $^ # Object Files *.o: *.c gcc -c $^ # Clean clean: rm *.a *.o cpu/*.o video/*.o ../apple-c*