blob: 1502ab7c7f988ad386cdd43c8b83851194c0b6b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Executable Targets
default: apple-c
apple-c: computer.a video.a
gcc -o ../$@ -lncurses -lSDL main.c $^
# 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*
|