SDL = -L/usr/lib -lSDL2 OBJECTS_CPU = cpu/6502.o cpu/addressing.o cpu/instructions.o cpu/table.o BUILD_STATIC_LIBRARY = ar -rcs $@ $^ # Executable Targets default: computer.a video.a gcc -o ../build/apple-c -lncurses main.c $^ interpreter: computer.a gcc -o ../build/interpreter interpreter.c $^ # Internal Libraries computer.a: $(OBJECTS_CPU) apple.o $(BUILD_STATIC_LIBRARY) video.a: video/ncurses.o $(BUILD_STATIC_LIBRARY) *.o: *.c gcc -c $^ # Clean clean: rm *.a rm *.o rm cpu/*.o rm video/*.o