-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (21 loc) · 951 Bytes
/
Makefile
File metadata and controls
30 lines (21 loc) · 951 Bytes
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
INCLUDES= -I ./include
LIBRARIES= -L lib -l SDL2-2.0.0
FLAGS= -g -Wall
COMPILER= gcc
OBJECTS=./build/chip8memory.o ./build/chip8stack.o ./build/chip8keyboard.o ./build/chip8.o ./build/chip8screen.o
all: ${OBJECTS}
${COMPILER} ${FLAGS} ${INCLUDES} ${LIBRARIES} ./src/main.c ${OBJECTS} -o ./bin/main
./build/chip8memory.o:src/chip8memory.c
${COMPILER} ${FLAGS} ${INCLUDES} ./src/chip8memory.c -c -o ./build/chip8memory.o
./build/chip8stack.o:src/chip8stack.c
${COMPILER} ${FLAGS} ${INCLUDES} ./src/chip8stack.c -c -o ./build/chip8stack.o
./build/chip8keyboard.o:src/chip8keyboard.c
${COMPILER} ${FLAGS} ${INCLUDES} ./src/chip8keyboard.c -c -o ./build/chip8keyboard.o
./build/chip8.o:src/chip8.c
${COMPILER} ${FLAGS} ${INCLUDES} ./src/chip8.c -c -o ./build/chip8.o
./build/chip8screen.o:src/chip8screen.c
${COMPILER} ${FLAGS} ${INCLUDES} ./src/chip8screen.c -c -o ./build/chip8screen.o
clean:
rm -rf build/*
# windows
# del build\*