mirror of
https://github.com/tuz358/cpu-emulator.git
synced 2025-12-16 20:17:04 +03:00
19 lines
315 B
Makefile
19 lines
315 B
Makefile
CC = g++
|
|
CFLAGS = -Wall
|
|
DEST = /usr/local/bin
|
|
OBJS = main.o emulator.o instructions.o memory.o utils.o
|
|
PROGRAM = cpu-emulator
|
|
|
|
$(PROGRAM): $(OBJS)
|
|
$(CC) $(OBJS) $(CFLAGS) -o $(PROGRAM)
|
|
make clean
|
|
|
|
.cpp.o:
|
|
$(CC) -c $< $(CFLAGS)
|
|
|
|
clean:
|
|
rm -f ./*.o
|
|
|
|
install: $(PROGRAM)
|
|
install -s $(PROGRAM) $(DEST)
|