mirror of
https://github.com/makarcz/vm6502.git
synced 2025-01-15 03:29:49 +00:00
b55462fb70
Start implementation of mass storage device emulation.
65 lines
1.9 KiB
Makefile
65 lines
1.9 KiB
Makefile
# Project: MKBasic
|
|
|
|
SDLBASE = $(SDLDIR)
|
|
SDLINCS = -I"$(SDLBASE)/include"
|
|
CPP = g++ -D__DEBUG__ -DLINUX
|
|
CC = gcc -D__DEBUG__
|
|
OBJ = main.o VMachine.o MKCpu.o Memory.o Display.o GraphDisp.o MemMapDev.o MKGenException.o ConsoleIO.o MassStorage.o
|
|
LINKOBJ = main.o VMachine.o MKCpu.o Memory.o Display.o GraphDisp.o MemMapDev.o MKGenException.o ConsoleIO.o MassStorage.o
|
|
BIN = vm65
|
|
SDLLIBS = -L/usr/local/lib -lSDL2main -lSDL2
|
|
LIBS = -static-libgcc -m32 -g3 -ltermcap -lncurses
|
|
CLIBS = -static-libgcc -m32 -g3
|
|
INCS =
|
|
CXXINCS =
|
|
CXXFLAGS = $(CXXINCS) -m32 -std=c++0x -Wall -pedantic -g3 -fpermissive
|
|
#CFLAGS = $(INCS) -m32 -std=c++0x -Wall -pedantic -g3
|
|
CFLAGS = $(INCS) -m32 -Wall -pedantic -g3
|
|
RM = rm -f
|
|
|
|
.PHONY: all all-before all-after clean clean-custom
|
|
|
|
all: all-before $(BIN) bin2hex all-after
|
|
|
|
clean: clean-custom
|
|
${RM} $(OBJ) $(BIN) bin2hex
|
|
|
|
$(BIN): $(OBJ)
|
|
$(CPP) $(LINKOBJ) -o $(BIN) $(LIBS) $(SDLLIBS)
|
|
|
|
main.o: main.cpp
|
|
$(CPP) -c main.cpp -o main.o $(CXXFLAGS) $(SDLINCS)
|
|
|
|
VMachine.o: VMachine.cpp
|
|
$(CPP) -c VMachine.cpp -o VMachine.o $(CXXFLAGS) $(SDLINCS)
|
|
|
|
MKBasic.o: MKBasic.cpp
|
|
$(CPP) -c MKBasic.cpp -o MKBasic.o $(CXXFLAGS)
|
|
|
|
MKCpu.o: MKCpu.cpp
|
|
$(CPP) -c MKCpu.cpp -o MKCpu.o $(CXXFLAGS) $(SDLINCS)
|
|
|
|
Memory.o: Memory.cpp
|
|
$(CPP) -c Memory.cpp -o Memory.o $(CXXFLAGS) $(SDLINCS)
|
|
|
|
Display.o: Display.cpp
|
|
$(CPP) -c Display.cpp -o Display.o $(CXXFLAGS)
|
|
|
|
bin2hex: bin2hex.c
|
|
$(CC) bin2hex.c -o bin2hex $(CFLAGS) $(CLIBS)
|
|
|
|
MKGenException.o: MKGenException.cpp
|
|
$(CPP) -c MKGenException.cpp -o MKGenException.o $(CXXFLAGS)
|
|
|
|
GraphDisp.o: GraphDisp.cpp GraphDisp.h
|
|
$(CPP) -c GraphDisp.cpp -o GraphDisp.o $(CXXFLAGS) $(SDLINCS)
|
|
|
|
MemMapDev.o: MemMapDev.cpp MemMapDev.h
|
|
$(CPP) -c MemMapDev.cpp -o MemMapDev.o $(CXXFLAGS) $(SDLINCS)
|
|
|
|
ConsoleIO.o: ConsoleIO.cpp ConsoleIO.h
|
|
$(CPP) -c ConsoleIO.cpp -o ConsoleIO.o $(CXXFLAGS)
|
|
|
|
MassStorage.o: MassStorage.cpp MassStorage.h
|
|
$(CPP) -c MassStorage.cpp -o MassStorage.o $(CXXFLAGS)
|