1 |
|
# Makefile.in for Frodo (generic Unix/X11) |
2 |
|
|
3 |
|
## Version information |
4 |
< |
VERSION = 4 |
5 |
< |
REVISION = 1 |
4 |
> |
VERSION = 4 |
5 |
> |
REVISION = 2 |
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@ |
12 |
< |
INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
13 |
< |
INSTALL_DATA = @INSTALL_DATA@ |
14 |
< |
prefix = @prefix@ |
16 |
< |
exec_prefix = @exec_prefix@ |
17 |
< |
bindir = @bindir@ |
18 |
< |
libdir = @libdir@ |
19 |
< |
sysconfdir = @sysconfdir@ |
11 |
> |
prefix = @prefix@ |
12 |
> |
exec_prefix = @exec_prefix@ |
13 |
> |
bindir = @bindir@ |
14 |
> |
datadir = @datadir@ |
15 |
|
|
16 |
< |
.SUFFIXES: .o .cpp .h |
16 |
> |
DESTDIR = |
17 |
> |
|
18 |
> |
CXX = @CXX@ |
19 |
> |
CFLAGS = @CFLAGS@ -I./ -DFRODO_HPUX_REV=@HPUX_REV@ -DKBD_LANG=@KBD_LANG@ |
20 |
> |
DEFS = @DEFS@ -DDATADIR=\"$(datadir)/frodo/\" |
21 |
> |
LDFLAGS = @LDFLAGS@ |
22 |
> |
LIBS = @LIBS@ |
23 |
> |
INSTALL = @INSTALL@ |
24 |
> |
INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
25 |
> |
INSTALL_DATA = @INSTALL_DATA@ |
26 |
|
|
27 |
|
## Files |
28 |
|
OBJS = main.o Display.o Prefs.o SID.o REU.o IEC.o 1541fs.o \ |
38 |
|
VIC.cpp VIC_SC.cpp CIA.cpp CIA_SC.cpp CPU1541.cpp CPU1541_PC.cpp \ |
39 |
|
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 |
47 |
|
|
48 |
|
Frodo: $(SLOBJS) |
49 |
< |
$(CXX) -o Frodo $(SLOBJS) $(LDFLAGS) $(LIBS) |
41 |
< |
cp Frodo .. |
49 |
> |
$(CXX) -o Frodo $(LDFLAGS) $(SLOBJS) $(LIBS) |
50 |
|
|
51 |
|
FrodoPC: $(PCOBJS) |
52 |
< |
$(CXX) -o FrodoPC $(PCOBJS) $(LDFLAGS) $(LIBS) |
45 |
< |
cp FrodoPC .. |
52 |
> |
$(CXX) -o FrodoPC $(LDFLAGS) $(PCOBJS) $(LIBS) |
53 |
|
|
54 |
|
FrodoSC: $(SCOBJS) |
55 |
< |
$(CXX) -o FrodoSC $(SCOBJS) $(LDFLAGS) $(LIBS) |
56 |
< |
cp FrodoSC .. |
55 |
> |
$(CXX) -o FrodoSC $(LDFLAGS) $(SCOBJS) $(LIBS) |
56 |
> |
|
57 |
> |
install: Frodo FrodoPC FrodoSC installdirs |
58 |
> |
$(INSTALL_PROGRAM) Frodo $(DESTDIR)$(bindir)/Frodo |
59 |
> |
$(INSTALL_PROGRAM) FrodoPC $(DESTDIR)$(bindir)/FrodoPC |
60 |
> |
$(INSTALL_PROGRAM) FrodoSC $(DESTDIR)$(bindir)/FrodoSC |
61 |
> |
$(INSTALL_DATA) ../1541\ ROM $(DESTDIR)$(datadir)/frodo/1541\ ROM |
62 |
> |
$(INSTALL_DATA) ../Basic\ ROM $(DESTDIR)$(datadir)/frodo/Basic\ ROM |
63 |
> |
$(INSTALL_DATA) ../Char\ ROM $(DESTDIR)$(datadir)/frodo/Char\ ROM |
64 |
> |
$(INSTALL_DATA) ../Kernal\ ROM $(DESTDIR)$(datadir)/frodo/Kernal\ ROM |
65 |
> |
|
66 |
> |
installdirs: |
67 |
> |
$(SHELL) mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(datadir)/frodo |
68 |
> |
|
69 |
> |
uninstall: |
70 |
> |
rm -f $(DESTDIR)$(bindir)/Frodo |
71 |
> |
rm -f $(DESTDIR)$(bindir)/FrodoPC |
72 |
> |
rm -f $(DESTDIR)$(bindir)/FrodoSC |
73 |
> |
rm -f $(DESTDIR)$(datadir)/frodo/1541\ ROM |
74 |
> |
rm -f $(DESTDIR)$(datadir)/frodo/Basic\ ROM |
75 |
> |
rm -f $(DESTDIR)$(datadir)/frodo/Char\ ROM |
76 |
> |
rm -f $(DESTDIR)$(datadir)/frodo/Kernal\ ROM |
77 |
> |
rmdir $(DESTDIR)$(datadir)/frodo |
78 |
|
|
79 |
|
clean: |
80 |
|
rm -f $(SLOBJS) $(PCOBJS) $(SCOBJS) |
81 |
|
rm -f Frodo FrodoPC FrodoSC |
82 |
+ |
rm -f core* *.core *~ *.bak |
83 |
|
|
84 |
|
distclean: clean |
85 |
|
rm -rf autom4te.cache |
90 |
|
makedepend $(CPPFLAGS) -Y. $(SRCS) 2>/dev/null |
91 |
|
|
92 |
|
.cpp.o: |
93 |
< |
$(CC) $(INCLUDES) $(CFLAGS) -o $@ -c $*.cpp |
93 |
> |
$(CXX) $(DEFS) $(CFLAGS) -o $@ -c $*.cpp |
94 |
|
|
95 |
< |
.cpp.s: |
96 |
< |
$(CC) $(INCLUDES) $(CFLAGS) $(EXTRAFLAGS) -o $@ -S $*.cpp -g0 |
68 |
< |
|
69 |
< |
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 |
70 |
< |
$(CC) $(INCLUDES) $(CFLAGS) $(PCFLAGS) -o $@ -c $*.cpp |
95 |
> |
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 |
96 |
> |
$(CXX) $(DEFS) $(CFLAGS) $(PCFLAGS) -o $@ -c $*.cpp |
97 |
|
|
98 |
< |
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 |
99 |
< |
$(CC) $(INCLUDES) $(CFLAGS) $(PCFLAGS) -o $@ -c $*.cpp |
98 |
> |
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 |
99 |
> |
$(CXX) $(DEFS) $(CFLAGS) $(PCFLAGS) -o $@ -c $*.cpp |
100 |
|
|
101 |
< |
CPU1541_PC.o: CPU1541.cpp CPU1541.h CPU_emulline.i 1541job.h C64.h CIA.h Display.h |
102 |
< |
$(CC) $(INCLUDES) $(CFLAGS) $(PCFLAGS) -o $@ -c $*.cpp |
101 |
> |
CPU1541_PC.o: CPU1541.cpp CPU1541.h CPU_emulline.h 1541job.h C64.h CIA.h Display.h |
102 |
> |
$(CXX) $(DEFS) $(CFLAGS) $(PCFLAGS) -o $@ -c $*.cpp |
103 |
|
|
104 |
< |
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 |
105 |
< |
$(CC) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp |
104 |
> |
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 |
105 |
> |
$(CXX) $(DEFS) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp |
106 |
|
|
107 |
< |
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 |
108 |
< |
$(CC) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp |
107 |
> |
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 |
108 |
> |
$(CXX) $(DEFS) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp |
109 |
|
|
110 |
< |
CPU1541_SC.o: CPU1541_SC.cpp CPU1541.h CPU_emulcycle.i CPU_common.h 1541job.h C64.h CIA.h Display.h |
111 |
< |
$(CC) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp |
110 |
> |
CPU1541_SC.o: CPU1541_SC.cpp CPU1541.h CPU_emulcycle.h CPU_common.h 1541job.h C64.h CIA.h Display.h |
111 |
> |
$(CXX) $(DEFS) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp |
112 |
|
|
113 |
|
VIC_SC.o: VIC_SC.cpp VIC.h C64.h CPUC64.h Display.h Prefs.h |
114 |
< |
$(CC) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp |
114 |
> |
$(CXX) $(DEFS) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp |
115 |
|
|
116 |
|
CIA_SC.o: CIA_SC.cpp CIA.h CPUC64.h CPU1541.h VIC.h Prefs.h |
117 |
< |
$(CC) $(INCLUDES) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp |
117 |
> |
$(CXX) $(DEFS) $(CFLAGS) $(SCFLAGS) -o $@ -c $*.cpp |
118 |
|
|
119 |
|
#------------------------------------------------------------------------- |
120 |
|
# DO NOT DELETE THIS LINE -- make depend depends on it. |