mirror of
https://github.com/Comp211-SP24/lab-04-Rushilwiz.git
synced 2025-04-03 03:40:20 -04:00
24 lines
371 B
Makefile
24 lines
371 B
Makefile
CC=gcc
|
|
CFLAGS=-c -Wall -Werror -g
|
|
|
|
all: lab04
|
|
|
|
lab04: bit_utils.o instructions.o lab04.o
|
|
${CC} $^ -o lab04
|
|
|
|
bit_utils.o: bit_utils.c bit_utils.h
|
|
$(CC) $(CFLAGS) bit_utils.c
|
|
|
|
instructions.o: instructions.c instructions.h bit_utils.h
|
|
$(CC) $(CFLAGS) instructions.c
|
|
|
|
lab04.o: lab04.c instructions.h
|
|
$(CC) $(CFLAGS) lab04.c
|
|
|
|
run: lab04
|
|
./lab04
|
|
|
|
clean:
|
|
rm -f lab04 *.o
|
|
|