1 |
|
# Makefile.in for Frodo (generic Unix/X11) |
2 |
|
|
3 |
|
## Version information |
4 |
< |
VERSION = 4 |
5 |
< |
REVISION = 1 |
4 |
> |
VERSION = 4 |
5 |
> |
REVISION = 3 |
6 |
|
|
7 |
+ |
## System specific configuration |
8 |
|
@SET_MAKE@ |
9 |
< |
CXX = @CXX@ |
9 |
< |
LIBS = @LIBS@ |
10 |
< |
CFLAGS = @CFLAGS@ -I./ -DFRODO_HPUX_REV=@HPUX_REV@ -DKBD_LANG=@KBD_LANG@ |
9 |
> |
SHELL = /bin/sh |
10 |
|
|
11 |
< |
INSTALL = @INSTALL@ |
11 |
> |
prefix = @prefix@ |
12 |
> |
exec_prefix = @exec_prefix@ |
13 |
> |
bindir = @bindir@ |
14 |
> |
datadir = @datadir@ |
15 |
> |
|
16 |
> |
DESTDIR = |
17 |
> |
|
18 |
> |
CXX = @CXX@ |
19 |
> |
CFLAGS = @CFLAGS@ @GLADE_CFLAGS@ -I./ -DKBD_LANG=@KBD_LANG@ |
20 |
> |
DEFS = @DEFS@ -DDATADIR=\"$(datadir)/frodo/\" -DBINDIR=\"$(bindir)/\" |
21 |
> |
LDFLAGS = @LDFLAGS@ |
22 |
> |
LIBS = @LIBS@ @GLADE_LIBS@ |
23 |
> |
INSTALL = @INSTALL@ |
24 |
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
25 |
< |
INSTALL_DATA = @INSTALL_DATA@ |
15 |
< |
prefix = @prefix@ |
16 |
< |
exec_prefix = @exec_prefix@ |
17 |
< |
bindir = @bindir@ |
18 |
< |
libdir = @libdir@ |
19 |
< |
sysconfdir = @sysconfdir@ |
20 |
< |
|
21 |
< |
.SUFFIXES: .o .cpp .h |
25 |
> |
INSTALL_DATA = @INSTALL_DATA@ |
26 |
|
|
27 |
|
## Files |
28 |
< |
OBJS = main.o Display.o Prefs.o SID.o REU.o IEC.o 1541fs.o \ |
28 |
> |
GUIOBJS = @GUIOBJS@ |
29 |
> |
OBJS = $(GUIOBJS) main.o Display.o Prefs.o SID.o REU.o IEC.o 1541fs.o \ |
30 |
|
1541d64.o 1541t64.o 1541job.o SAM.o CmdPipe.o |
31 |
|
SLOBJS = $(OBJS) C64.o CPUC64.o VIC.o CIA.o CPU1541.o |
32 |
< |
PCOBJS = $(OBJS) C64_PC.o CPUC64_PC.o VIC.o CIA.o CPU1541_PC.o |
28 |
< |
PCFLAGS = -DPRECISE_CPU_CYCLES=1 -DPRECISE_CIA_CYCLES=1 -DPC_IS_POINTER=0 |
32 |
> |
SLFLAGS = -DPRECISE_CPU_CYCLES=1 -DPRECISE_CIA_CYCLES=1 -DPC_IS_POINTER=0 |
33 |
|
SCOBJS = $(OBJS) C64_SC.o CPUC64_SC.o VIC_SC.o CIA_SC.o CPU1541_SC.o CPU_common.o |
34 |
|
SCFLAGS = -DFRODO_SC |
35 |
< |
SRCS = main.cpp Display.cpp Prefs.cpp SID.cpp REU.cpp IEC.cpp 1541fs.cpp \ |
35 |
> |
GUISRCS = @GUISRCS@ |
36 |
> |
SRCS = $(GUISRCS) main.cpp Display.cpp Prefs.cpp SID.cpp REU.cpp IEC.cpp 1541fs.cpp \ |
37 |
|
1541d64.cpp 1541t64.cpp 1541job.cpp SAM.cpp CmdPipe.cpp C64.cpp \ |
38 |
< |
C64_PC.cpp C64_SC.cpp CPUC64.cpp CPUC64_PC.cpp CPUC64_SC.cpp \ |
39 |
< |
VIC.cpp VIC_SC.cpp CIA.cpp CIA_SC.cpp CPU1541.cpp CPU1541_PC.cpp \ |
40 |
< |
CPU1541_SC.cpp CPU_common.cpp |
38 |
> |
C64_SC.cpp CPUC64.cpp CPUC64_SC.cpp VIC.cpp VIC_SC.cpp CIA.cpp \ |
39 |
> |
CIA_SC.cpp CPU1541.cpp CPU1541_PC.cpp CPU1541_SC.cpp CPU_common.cpp |
40 |
> |
|
41 |
> |
## Rules |
42 |
> |
.PHONY: install installdirs uninstall clean distclean depend dep |
43 |
> |
.SUFFIXES: |
44 |
> |
.SUFFIXES: .o .cpp .h |
45 |
|
|
46 |
< |
all: Frodo FrodoPC FrodoSC |
46 |
> |
all: Frodo FrodoSC |
47 |
|
|
48 |
|
Frodo: $(SLOBJS) |
49 |
< |
$(CXX) -o Frodo $(SLOBJS) $(LDFLAGS) $(LIBS) |
41 |
< |
cp Frodo .. |
42 |
< |
|
43 |
< |
FrodoPC: $(PCOBJS) |
44 |
< |
$(CXX) -o FrodoPC $(PCOBJS) $(LDFLAGS) $(LIBS) |
45 |
< |
cp FrodoPC .. |
49 |
> |
$(CXX) -o Frodo $(LDFLAGS) $(SLOBJS) $(LIBS) |
50 |
|
|
51 |
|
FrodoSC: $(SCOBJS) |
52 |
< |
$(CXX) -o FrodoSC $(SCOBJS) $(LDFLAGS) $(LIBS) |
53 |
< |
cp FrodoSC .. |
52 |
> |
$(CXX) -o FrodoSC $(LDFLAGS) $(SCOBJS) $(LIBS) |
53 |
> |
|
54 |
> |
install: Frodo FrodoSC installdirs |
55 |
> |
$(INSTALL_PROGRAM) Frodo $(DESTDIR)$(bindir)/Frodo |
56 |
> |
$(INSTALL_PROGRAM) FrodoSC $(DESTDIR)$(bindir)/FrodoSC |
57 |
> |
$(INSTALL_PROGRAM) Frodo_GUI.tcl $(DESTDIR)$(bindir)/Frodo_GUI.tcl |
58 |
> |
$(INSTALL_DATA) ../Kernal\ ROM $(DESTDIR)$(datadir)/frodo/Kernal\ ROM |
59 |
> |
$(INSTALL_DATA) glade/Frodo.glade $(DESTDIR)$(datadir)/frodo/Frodo.glade |
60 |
> |
|
61 |
> |
installdirs: |
62 |
> |
$(SHELL) mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(datadir)/frodo |
63 |
> |
|
64 |
> |
uninstall: |
65 |
> |
rm -f $(DESTDIR)$(bindir)/Frodo |
66 |
> |
rm -f $(DESTDIR)$(bindir)/FrodoSC |
67 |
> |
rm -f $(DESTDIR)$(bindir)/Frodo_GUI.tcl |
68 |
> |
rm -f $(DESTDIR)$(datadir)/frodo/Kernal\ ROM |
69 |
> |
rmdir $(DESTDIR)$(datadir)/frodo |
70 |
|
|
71 |
|
clean: |
72 |
< |
rm -f $(SLOBJS) $(PCOBJS) $(SCOBJS) |
73 |
< |
rm -f Frodo FrodoPC FrodoSC |
72 |
> |
rm -f $(SLOBJS) $(SCOBJS) |
73 |
> |
rm -f Frodo FrodoSC |
74 |
> |
rm -f core* *.core *~ *.bak |
75 |
|
|
76 |
|
distclean: clean |
77 |
|
rm -rf autom4te.cache |
82 |
|
makedepend $(CPPFLAGS) -Y. $(SRCS) 2>/dev/null |
83 |
|
|
84 |
|
.cpp.o: |
85 |
< |
$(CC) $(INCLUDES) $(CFLAGS) -o $@ -c $*.cpp |
65 |
< |
|
66 |
< |
.cpp.s: |
67 |
< |
$(CC) $(INCLUDES) $(CFLAGS) $(EXTRAFLAGS) -o $@ -S $*.cpp -g0 |
85 |
> |
$(CXX) $(DEFS) $(CFLAGS) -o $@ -c $*.cpp |
86 |
|
|
87 |
< |
C64_PC.o: C64.cpp C64.h C64_x.i CmdPipe.h CPUC64.h CPU1541.h VIC.h SID.h CIA.h REU.h IEC.h 1541job.h Display.h Prefs.h |
88 |
< |
$(CC) $(INCLUDES) $(CFLAGS) $(PCFLAGS) -o $@ -c $*.cpp |
87 |
> |
C64.o: C64.cpp |
88 |
> |
$(CXX) $(DEFS) $(CFLAGS) $(SLFLAGS) -o $@ -c $*.cpp |
89 |
|
|
90 |
< |
CPUC64_PC.o: CPUC64.cpp CPUC64.h CPU_emulline.i C64.h VIC.h SID.h CIA.h REU.h IEC.h Display.h Version.h |
91 |
< |
$(CC) $(INCLUDES) $(CFLAGS) $(PCFLAGS) -o $@ -c $*.cpp |
90 |
> |
C64_SC.o: C64_SC.cpp |
91 |
> |
$(CXX) $(DEFS) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp |
92 |
|
|
93 |
< |
CPU1541_PC.o: CPU1541.cpp CPU1541.h CPU_emulline.i 1541job.h C64.h CIA.h Display.h |
94 |
< |
$(CC) $(INCLUDES) $(CFLAGS) $(PCFLAGS) -o $@ -c $*.cpp |
93 |
> |
CPUC64.o: CPUC64.cpp |
94 |
> |
$(CXX) $(DEFS) $(CFLAGS) $(SLFLAGS) -o $@ -c $*.cpp |
95 |
|
|
96 |
< |
C64_SC.o: C64_SC.cpp C64.h C64_x.i CmdPipe.h CPUC64.h CPU1541.h VIC.h SID.h CIA.h REU.h IEC.h 1541job.h Display.h Prefs.h |
97 |
< |
$(CC) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp |
96 |
> |
CPUC64_SC.o: CPUC64_SC.cpp |
97 |
> |
$(CXX) $(DEFS) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp |
98 |
|
|
99 |
< |
CPUC64_SC.o: CPUC64_SC.cpp CPUC64.h CPU_emulcycle.i CPU_common.h C64.h VIC.h SID.h CIA.h REU.h IEC.h Display.h Version.h |
100 |
< |
$(CC) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp |
99 |
> |
CPU1541.o: CPU1541.cpp |
100 |
> |
$(CXX) $(DEFS) $(CFLAGS) $(SLFLAGS) -o $@ -c $*.cpp |
101 |
|
|
102 |
< |
CPU1541_SC.o: CPU1541_SC.cpp CPU1541.h CPU_emulcycle.i CPU_common.h 1541job.h C64.h CIA.h Display.h |
103 |
< |
$(CC) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp |
102 |
> |
CPU1541_SC.o: CPU1541_SC.cpp |
103 |
> |
$(CXX) $(DEFS) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp |
104 |
|
|
105 |
< |
VIC_SC.o: VIC_SC.cpp VIC.h C64.h CPUC64.h Display.h Prefs.h |
106 |
< |
$(CC) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp |
105 |
> |
VIC_SC.o: VIC_SC.cpp |
106 |
> |
$(CXX) $(DEFS) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp |
107 |
|
|
108 |
< |
CIA_SC.o: CIA_SC.cpp CIA.h CPUC64.h CPU1541.h VIC.h Prefs.h |
109 |
< |
$(CC) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp |
108 |
> |
CIA_SC.o: CIA_SC.cpp |
109 |
> |
$(CXX) $(DEFS) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp |
110 |
|
|
111 |
|
#------------------------------------------------------------------------- |
112 |
|
# DO NOT DELETE THIS LINE -- make depend depends on it. |