blob: 866334dd06d3a4e33321178312e753893a714bb0 (
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
28
29
30
31
32
33
34
35
36
37
|
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
|