blob: d12972c9b9f71e8555418a6722b9c0d28fc029ff (
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 -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
|