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 -g -o ../apple-c -lncurses main.c $^ interpreter: computer.a video.a gcc -o ../interpreter -lncurses 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