16 |
|
DESTDIR = |
17 |
|
|
18 |
|
CXX = @CXX@ |
19 |
< |
CFLAGS = @CFLAGS@ -I./ -DFRODO_HPUX_REV=@HPUX_REV@ -DKBD_LANG=@KBD_LANG@ |
19 |
> |
CFLAGS = @CFLAGS@ -I./ -DKBD_LANG=@KBD_LANG@ |
20 |
|
DEFS = @DEFS@ -DDATADIR=\"$(datadir)/frodo/\" -DBINDIR=\"$(bindir)/\" |
21 |
|
LDFLAGS = @LDFLAGS@ |
22 |
|
LIBS = @LIBS@ |
28 |
|
OBJS = main.o Display.o Prefs.o SID.o REU.o IEC.o 1541fs.o \ |
29 |
|
1541d64.o 1541t64.o 1541job.o SAM.o CmdPipe.o |
30 |
|
SLOBJS = $(OBJS) C64.o CPUC64.o VIC.o CIA.o CPU1541.o |
31 |
< |
PCOBJS = $(OBJS) C64_PC.o CPUC64_PC.o VIC.o CIA.o CPU1541_PC.o |
32 |
< |
PCFLAGS = -DPRECISE_CPU_CYCLES=1 -DPRECISE_CIA_CYCLES=1 -DPC_IS_POINTER=0 |
31 |
> |
SLFLAGS = -DPRECISE_CPU_CYCLES=1 -DPRECISE_CIA_CYCLES=1 -DPC_IS_POINTER=0 |
32 |
|
SCOBJS = $(OBJS) C64_SC.o CPUC64_SC.o VIC_SC.o CIA_SC.o CPU1541_SC.o CPU_common.o |
33 |
|
SCFLAGS = -DFRODO_SC |
34 |
|
SRCS = main.cpp Display.cpp Prefs.cpp SID.cpp REU.cpp IEC.cpp 1541fs.cpp \ |
42 |
|
.SUFFIXES: |
43 |
|
.SUFFIXES: .o .cpp .h |
44 |
|
|
45 |
< |
all: Frodo FrodoPC FrodoSC |
45 |
> |
all: Frodo FrodoSC |
46 |
|
|
47 |
|
Frodo: $(SLOBJS) |
48 |
|
$(CXX) -o Frodo $(LDFLAGS) $(SLOBJS) $(LIBS) |
49 |
|
|
51 |
– |
FrodoPC: $(PCOBJS) |
52 |
– |
$(CXX) -o FrodoPC $(LDFLAGS) $(PCOBJS) $(LIBS) |
53 |
– |
|
50 |
|
FrodoSC: $(SCOBJS) |
51 |
|
$(CXX) -o FrodoSC $(LDFLAGS) $(SCOBJS) $(LIBS) |
52 |
|
|
53 |
< |
install: Frodo FrodoPC FrodoSC installdirs |
53 |
> |
install: Frodo FrodoSC installdirs |
54 |
|
$(INSTALL_PROGRAM) Frodo $(DESTDIR)$(bindir)/Frodo |
59 |
– |
$(INSTALL_PROGRAM) FrodoPC $(DESTDIR)$(bindir)/FrodoPC |
55 |
|
$(INSTALL_PROGRAM) FrodoSC $(DESTDIR)$(bindir)/FrodoSC |
56 |
|
$(INSTALL_PROGRAM) Frodo_GUI.tcl $(DESTDIR)$(bindir)/Frodo_GUI.tcl |
62 |
– |
$(INSTALL_DATA) ../1541\ ROM $(DESTDIR)$(datadir)/frodo/1541\ ROM |
63 |
– |
$(INSTALL_DATA) ../Basic\ ROM $(DESTDIR)$(datadir)/frodo/Basic\ ROM |
64 |
– |
$(INSTALL_DATA) ../Char\ ROM $(DESTDIR)$(datadir)/frodo/Char\ ROM |
57 |
|
$(INSTALL_DATA) ../Kernal\ ROM $(DESTDIR)$(datadir)/frodo/Kernal\ ROM |
58 |
|
|
59 |
|
installdirs: |
61 |
|
|
62 |
|
uninstall: |
63 |
|
rm -f $(DESTDIR)$(bindir)/Frodo |
72 |
– |
rm -f $(DESTDIR)$(bindir)/FrodoPC |
64 |
|
rm -f $(DESTDIR)$(bindir)/FrodoSC |
65 |
|
rm -f $(DESTDIR)$(bindir)/Frodo_GUI.tcl |
75 |
– |
rm -f $(DESTDIR)$(datadir)/frodo/1541\ ROM |
76 |
– |
rm -f $(DESTDIR)$(datadir)/frodo/Basic\ ROM |
77 |
– |
rm -f $(DESTDIR)$(datadir)/frodo/Char\ ROM |
66 |
|
rm -f $(DESTDIR)$(datadir)/frodo/Kernal\ ROM |
67 |
|
rmdir $(DESTDIR)$(datadir)/frodo |
68 |
|
|
69 |
|
clean: |
70 |
< |
rm -f $(SLOBJS) $(PCOBJS) $(SCOBJS) |
71 |
< |
rm -f Frodo FrodoPC FrodoSC |
70 |
> |
rm -f $(SLOBJS) $(SCOBJS) |
71 |
> |
rm -f Frodo FrodoSC |
72 |
|
rm -f core* *.core *~ *.bak |
73 |
|
|
74 |
|
distclean: clean |
81 |
|
|
82 |
|
.cpp.o: |
83 |
|
$(CXX) $(DEFS) $(CFLAGS) -o $@ -c $*.cpp |
96 |
– |
|
97 |
– |
C64_PC.o: C64.cpp C64.h C64_x.h CmdPipe.h CPUC64.h CPU1541.h VIC.h SID.h CIA.h REU.h IEC.h 1541job.h Display.h Prefs.h |
98 |
– |
$(CXX) $(DEFS) $(CFLAGS) $(PCFLAGS) -o $@ -c $*.cpp |
99 |
– |
|
100 |
– |
CPUC64_PC.o: CPUC64.cpp CPUC64.h CPU_emulline.h C64.h VIC.h SID.h CIA.h REU.h IEC.h Display.h Version.h |
101 |
– |
$(CXX) $(DEFS) $(CFLAGS) $(PCFLAGS) -o $@ -c $*.cpp |
84 |
|
|
85 |
< |
CPU1541_PC.o: CPU1541.cpp CPU1541.h CPU_emulline.h 1541job.h C64.h CIA.h Display.h |
86 |
< |
$(CXX) $(DEFS) $(CFLAGS) $(PCFLAGS) -o $@ -c $*.cpp |
85 |
> |
C64.o: C64.cpp |
86 |
> |
$(CXX) $(DEFS) $(CFLAGS) $(SLFLAGS) -o $@ -c $*.cpp |
87 |
|
|
88 |
< |
C64_SC.o: C64_SC.cpp C64.h C64_x.h CmdPipe.h CPUC64.h CPU1541.h VIC.h SID.h CIA.h REU.h IEC.h 1541job.h Display.h Prefs.h |
88 |
> |
C64_SC.o: C64_SC.cpp |
89 |
|
$(CXX) $(DEFS) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp |
90 |
|
|
91 |
< |
CPUC64_SC.o: CPUC64_SC.cpp CPUC64.h CPU_emulcycle.h CPU_common.h C64.h VIC.h SID.h CIA.h REU.h IEC.h Display.h Version.h |
91 |
> |
CPUC64.o: CPUC64.cpp |
92 |
> |
$(CXX) $(DEFS) $(CFLAGS) $(SLFLAGS) -o $@ -c $*.cpp |
93 |
> |
|
94 |
> |
CPUC64_SC.o: CPUC64_SC.cpp |
95 |
|
$(CXX) $(DEFS) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp |
96 |
|
|
97 |
< |
CPU1541_SC.o: CPU1541_SC.cpp CPU1541.h CPU_emulcycle.h CPU_common.h 1541job.h C64.h CIA.h Display.h |
97 |
> |
CPU1541.o: CPU1541.cpp |
98 |
> |
$(CXX) $(DEFS) $(CFLAGS) $(SLFLAGS) -o $@ -c $*.cpp |
99 |
> |
|
100 |
> |
CPU1541_SC.o: CPU1541_SC.cpp |
101 |
|
$(CXX) $(DEFS) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp |
102 |
|
|
103 |
< |
VIC_SC.o: VIC_SC.cpp VIC.h C64.h CPUC64.h Display.h Prefs.h |
103 |
> |
VIC_SC.o: VIC_SC.cpp |
104 |
|
$(CXX) $(DEFS) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp |
105 |
|
|
106 |
< |
CIA_SC.o: CIA_SC.cpp CIA.h CPUC64.h CPU1541.h VIC.h Prefs.h |
106 |
> |
CIA_SC.o: CIA_SC.cpp |
107 |
|
$(CXX) $(DEFS) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp |
108 |
|
|
109 |
|
#------------------------------------------------------------------------- |