]> wirehaze git hosting - ppos.git/blob - ppos/hardware/makefile

wirehaze git hosting

tasks implementation (ongoing)
[ppos.git] / ppos / hardware / makefile
1 # PingPongOS - PingPong Operating System
2 # Prof. Carlos A. Maziero, DINF UFPR
3 # Versão 2.0 -- Junho de 2025
4
5 # ATENÇÃO: ESTE ARQUIVO NÃO DEVE SER ALTERADO;
6 # ALTERAÇÕES SERÃO DESCARTADAS NA CORREÇÃO.
7
8 # flags são importados do makefile superior
9
10 HDR = $(wildcard *.h) # headers
11 SRC = $(wildcard *.c) # fontes C
12 ASM = $(wildcard *.s) # fontes assembly
13 OBJ = $(patsubst %.c,%.o,$(SRC)) # objetos .o
14 OBJ+= $(patsubst %.s,%.o,$(ASM)) # idem
15
16 # arquivo com a imagem do disco virtual
17 DISK = disk.dat
18
19 # regra default: reconstruir tudo
20 all : $(OBJ)
21 $(OBJ): $(SRC) $(HDR)
22
23 # testa o conteudo do disco
24 test:
25 @echo "Comparando imagens do disco:"
26 -@diff -qs $(DISK) $(DISK)-inicial || true
27 -@diff -qs $(DISK) $(DISK)-final || true
28
29 # reinicia o conteúdo do disco
30 reset:
31 -cp -f $(DISK)-inicial $(DISK)
32 @echo "Conteúdo do disco reiniciado"