blob: 81278126530a5528d59bcdf18b3c4e6ff9d1f11c (
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 ../$@ 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*
|