24 lines
523 B
Makefile
24 lines
523 B
Makefile
CCFLAGS = -g -O3 -Iinc/ -I.
|
|
|
|
|
|
main: main.o kernel.o mmu.o process.o random.o
|
|
gcc $(CCFLAGS) -o main main.o kernel.o mmu.o process.o random.o
|
|
|
|
main.o: src/main.c config.h
|
|
gcc $(CCFLAGS) -c -o main.o src/main.c
|
|
|
|
kernel.o: src/kernel.c config.h
|
|
gcc $(CCFLAGS) -c -o kernel.o src/kernel.c
|
|
|
|
mmu.o: src/mmu.c config.h
|
|
gcc $(CCFLAGS) -c -o mmu.o src/mmu.c
|
|
|
|
process.o: src/process.c config.h
|
|
gcc $(CCFLAGS) -c -o process.o src/process.c
|
|
|
|
random.o: src/random.c
|
|
gcc $(CCFLAGS) -c -o random.o src/random.c
|
|
|
|
clean:
|
|
rm *.o main
|