115 lines
3.7 KiB
Text
115 lines
3.7 KiB
Text
$NetBSD: patch-aa,v 1.2 2011/11/23 23:27:07 joerg Exp $
|
|
|
|
--- Makefile.orig 2004-03-20 19:31:28.000000000 +0000
|
|
+++ Makefile
|
|
@@ -1,16 +1,17 @@
|
|
# Makefile para aliados
|
|
|
|
# Path to ncurses required in hp-ux.
|
|
-CPPFLAGS=-W -Wall -I/opt/ncurses/include
|
|
+#CPPFLAGS=-W -Wall -I/opt/ncurses/include
|
|
+CPPFLAGS+= ${CXXFLAGS}
|
|
|
|
# To compile with console emulation using curses.
|
|
-LDFLAGS=-lncurses -L/opt/ncurses/lib
|
|
+LDFLAGS+="-lncurses"
|
|
|
|
# To compile without console emulation.
|
|
#LDFLAGS=
|
|
#CURSESFLAGS=-DNO_CURSES
|
|
|
|
-all: aliados disassemble
|
|
+all: aliados
|
|
|
|
# If you want to build the versions with and without libz80 at the same time.
|
|
|
|
@@ -21,17 +22,17 @@ both: aliados aliadoslz disassemble
|
|
#------------------------------------------------
|
|
|
|
aliadoslz: aliadoslz.o cpmlz.o realconsole.o cpuz.o directory.o
|
|
- g++ $(CPPFLAGS) $(LDFLAGS) -o aliadoslz -lz80 \
|
|
+ $(CXX) $(CPPFLAGS) $(LDFLAGS) -o aliadoslz -lz80 \
|
|
aliadoslz.o cpmlz.o realconsole.o cpuz.o directory.o printer.o
|
|
|
|
aliadoslz.o: aliados.cpp cpm.h console.h realconsole.h printer.h
|
|
- g++ $(CPPFLAGS) -o aliadoslz.o -c aliados.cpp
|
|
+ $(CXX) $(CPPFLAGS) -o aliadoslz.o -c aliados.cpp
|
|
|
|
cpmlz.o: cpm.cpp cpm.h cpu.h console.h directory.h printer.h
|
|
- g++ $(CPPFLAGS) -o cpmlz.o -c cpm.cpp
|
|
+ $(CXX) $(CPPFLAGS) -o cpmlz.o -c cpm.cpp
|
|
|
|
cpuz.o: cpu.cpp cpu.h
|
|
- g++ $(CPPFLAGS) -o cpuz.o -c cpu.cpp
|
|
+ $(CXX) $(CPPFLAGS) -o cpuz.o -c cpu.cpp
|
|
|
|
#------------------------------------------------
|
|
# Version using ImcZ80.
|
|
@@ -41,7 +42,7 @@ cpuz.o: cpu.cpp cpu.h
|
|
|
|
# Uncomment this if you compile with ImcZ80 and with libz80.
|
|
#aliados: aliados.o cpm.o Z80.o realconsole.o cpu.o
|
|
-# g++ $(CPPFLAGS) $(LDFLAGS) -o aliados \
|
|
+# $(CXX) $(CPPFLAGS) $(LDFLAGS) -o aliados \
|
|
# aliados.o cpm.o realconsole.o Z80.o cpu.o \
|
|
# directory.o printer.o \
|
|
# -lz80
|
|
@@ -50,47 +51,47 @@ cpuz.o: cpu.cpp cpu.h
|
|
aliados: aliados.o cpm.o Z80.o realconsole.o cpu.o disasm.o \
|
|
directory.o printer.o
|
|
|
|
- g++ $(CPPFLAGS) -o aliados \
|
|
+ $(CXX) $(CPPFLAGS) -o aliados \
|
|
aliados.o cpm.o realconsole.o Z80.o cpu.o \
|
|
disasm.o directory.o printer.o \
|
|
$(LDFLAGS)
|
|
|
|
aliados.o: aliados.cpp cpm.h console.h realconsole.h printer.h
|
|
- g++ $(CPPFLAGS) -DUSE_ImcZ80 -c aliados.cpp
|
|
+ $(CXX) $(CPPFLAGS) -DUSE_ImcZ80 -c aliados.cpp
|
|
|
|
cpm.o: cpm.cpp cpm.h cpu.h console.h Z80.hxx directory.h printer.h
|
|
- g++ $(CPPFLAGS) -DUSE_ImcZ80 -c cpm.cpp
|
|
+ $(CXX) $(CPPFLAGS) -DUSE_ImcZ80 -c cpm.cpp
|
|
|
|
cpu.o: cpu.cpp cpu.h Z80.hxx disasm.h
|
|
- g++ $(CPPFLAGS) -DUSE_ImcZ80 -c cpu.cpp
|
|
+ $(CXX) $(CPPFLAGS) -DUSE_ImcZ80 -c cpu.cpp
|
|
|
|
Z80.o: Z80.cxx Z80.hxx z80ops.hxx cbops.hxx edops.hxx
|
|
- g++ -c Z80.cxx
|
|
+ $(CXX) -c Z80.cxx
|
|
|
|
#------------------------------------------------
|
|
# Common to all versions.
|
|
#------------------------------------------------
|
|
|
|
realconsole.o: realconsole.cpp realconsole.h console.h
|
|
- g++ $(CPPFLAGS) $(CURSESFLAGS) -c realconsole.cpp
|
|
+ $(CXX) $(CPPFLAGS) $(CURSESFLAGS) -c realconsole.cpp
|
|
|
|
disasm.o: disasm.cpp disasm.h cpu.h
|
|
- g++ $(CPPFLAGS) -c disasm.cpp
|
|
+ $(CXX) $(CPPFLAGS) -c disasm.cpp
|
|
|
|
directory.o: directory.cpp directory.h
|
|
- g++ $(CPPFLAGS) -c directory.cpp
|
|
+ $(CXX) $(CPPFLAGS) -c directory.cpp
|
|
|
|
printer.o: printer.cpp printer.h
|
|
- g++ $(CPPFLAGS) -c printer.cpp
|
|
+ $(CXX) $(CPPFLAGS) -c printer.cpp
|
|
|
|
# disassemble is a tiny disassembler that uses the disassemble code
|
|
# of the debugger. Works correctly only with .COM files.
|
|
|
|
disassemble.o: disassemble.cpp cpu.h disasm.h Z80.hxx
|
|
- g++ $(CPPFLAGS) -c disassemble.cpp
|
|
+ $(CXX) $(CPPFLAGS) -c disassemble.cpp
|
|
|
|
disassemble: disassemble.o cpu.o disasm.o Z80.o
|
|
- g++ $(CPPFLAGS) -o disassemble disassemble.o cpu.o disasm.o Z80.o
|
|
+ $(CXX) $(CPPFLAGS) -o disassemble disassemble.o cpu.o disasm.o Z80.o
|
|
|
|
tgz:
|
|
tar cf - Makefile *.cpp *.h *.cxx *.hxx \
|