ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/Makefile.in
(Generate patch)

Comparing BasiliskII/src/Unix/Makefile.in (file contents):
Revision 1.5 by cebix, 1999-10-03T17:45:08Z vs.
Revision 1.16 by cebix, 2000-07-13T13:47:05Z

# Line 2 | Line 2
2  
3   ## System specific configuration
4   @SET_MAKE@
5 + SHELL = /bin/sh
6  
7 < prefix=@prefix@
8 < exec_prefix=@exec_prefix@
9 < bindir=$(exec_prefix)/bin
10 < sharedir=$(prefix)/share/BasiliskII
11 < mandir=$(prefix)/man
7 > prefix = @prefix@
8 > exec_prefix = @exec_prefix@
9 > bindir = @bindir@
10 > datadir = @datadir@
11 > mandir = @mandir@
12 > man1dir = $(mandir)/man1
13  
14   CC = @CC@
15   CXX = @CXX@
16   CFLAGS = @CFLAGS@
17   CXXFLAGS = @CXXFLAGS@
18   CPPFLAGS = @CPPFLAGS@ -I../include -I. @CPUINCLUDES@
19 < DEFS = @DEFS@ @DEFINES@ -D_REENTRANT -DSHAREDIR=\"$(sharedir)\"
19 > DEFS = @DEFS@ @DEFINES@ -D_REENTRANT -DDATADIR=\"$(datadir)/$(APP)\"
20   LDFLAGS = @LDFLAGS@
21   LIBS = @LIBS@
22   SYSSRCS = @SYSSRCS@
# Line 24 | Line 26 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s
26   INSTALL_DATA = @INSTALL_DATA@
27  
28   ## Files
29 < SRCS=../prefs.cpp ../rom_patches.cpp ../slot_rom.cpp ../rsrc_patches.cpp ../emul_op.cpp \
30 <    ../macos_util.cpp ../xpram.cpp ../timer.cpp ../adb.cpp ../serial.cpp ../ether.cpp ../sony.cpp \
31 <    ../disk.cpp ../cdrom.cpp ../scsi.cpp ../video.cpp ../audio.cpp ../user_strings.cpp \
32 <    main_unix.cpp prefs_unix.cpp sys_unix.cpp xpram_unix.cpp timer_unix.cpp clip_unix.cpp \
33 <    serial_unix.cpp video_x.cpp \
29 > SRCS = ../main.cpp main_unix.cpp ../prefs.cpp prefs_unix.cpp sys_unix.cpp \
30 >    ../rom_patches.cpp ../slot_rom.cpp ../rsrc_patches.cpp ../emul_op.cpp \
31 >    ../macos_util.cpp ../xpram.cpp xpram_unix.cpp ../timer.cpp timer_unix.cpp \
32 >    clip_unix.cpp ../adb.cpp ../serial.cpp ../ether.cpp ../sony.cpp \
33 >    ../disk.cpp ../cdrom.cpp ../scsi.cpp ../video.cpp video_x.cpp ../audio.cpp \
34 >    ../extfs.cpp extfs_unix.cpp ../user_strings.cpp user_strings_unix.cpp \
35      $(SYSSRCS) $(CPUSRCS)
36   APP = BasiliskII
37  
38   ## Rules
39 < .PHONY: clean distclean realclean depend
39 > .PHONY: modules install uninstall clean distclean depend dep
40 > .SUFFIXES:
41 > .SUFFIXES: .c .cpp .s .o .h
42  
43 < default: $(APP)
43 > all: $(APP)
44  
45   OBJ_DIR = obj
46   $(OBJ_DIR)::
# Line 57 | Line 62 | $(APP): $(OBJ_DIR) $(OBJS)
62   modules:
63          cd Linux/NetDriver; make
64  
65 < install: $(APP)
66 <        $(INSTALL_PROGRAM) BasiliskII $(bindir)/
67 <        $(INSTALL_DATA) BasiliskII.1 $(mandir)/man1/
68 <        $(INSTALL) -d $(sharedir)
69 <        $(INSTALL_DATA) keycodes $(sharedir)
65 > install: $(APP) installdirs
66 >        $(INSTALL_PROGRAM) $(APP) $(bindir)/$(APP)
67 >        -$(INSTALL_DATA) $(APP).1 $(man1dir)/$(APP).1
68 >        $(INSTALL_DATA) keycodes $(datadir)/$(APP)/keycodes
69 >        $(INSTALL_DATA) fbdevices $(datadir)/$(APP)/fbdevices
70 >
71 > installdirs:
72 >        $(SHELL) mkinstalldirs $(bindir) $(man1dir) $(datadir)/$(APP)
73  
74   uninstall:
75 <        -rm -f $(bindir)/BasiliskII
76 <        -rm -f $(mandir)/man1/BasiliskII.1
77 <        -rm -rf $(sharedir)
78 <
79 < clean:
72 <        -rm -f $(OBJ_DIR)/* core* *.core *~ *.bak
73 <        -rm -f cpuemu.cpp cpudefs.cpp cputmp.s cpufast*.s cpustbl.cpp cputbl.h
75 >        rm -f $(bindir)/$(APP)
76 >        rm -f $(man1dir)/$(APP).1
77 >        rm -f $(datadir)/$(APP)/keycodes
78 >        rm -f $(datadir)/$(APP)/fbdevices
79 >        rmdir $(datadir)/$(APP)
80  
81 < distclean: clean
82 <        -rm -f Makefile
83 <        -rm -f config.cache config.log config.status config.h
84 <        -strip $(APP)
81 > mostlyclean:
82 >        rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak
83 >
84 > clean: mostlyclean
85 >        rm -f cpuemu.cpp cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp cputbl.h
86  
87 < realclean: distclean
88 <        -rm -f $(APP)
87 > distclean: clean
88 >        rm -rf $(OBJ_DIR)
89 >        rm -f Makefile
90 >        rm -f config.cache config.log config.status config.h
91  
92   depend dep:
93 <        makedepend $(CPPFLAGS) -Y ../*.cpp ../*.c *.cpp
93 >        makedepend $(CPPFLAGS) -Y. $(SRCS) 2>/dev/null
94  
95   $(OBJ_DIR)/%.o : %.c
96          $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
# Line 98 | Line 107 | $(OBJ_DIR)/gencpu: $(OBJ_DIR)/gencpu.o $
107          $(CC) $(LDFLAGS) -o $(OBJ_DIR)/gencpu $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
108   cpudefs.cpp: $(OBJ_DIR)/build68k ../uae_cpu/table68k
109          $(OBJ_DIR)/build68k <../uae_cpu/table68k >cpudefs.cpp
101 cpuemu.cpp: $(OBJ_DIR)/gencpu
102        $(OBJ_DIR)/gencpu
110   cpustbl.cpp: cpuemu.cpp
111   cputbl.h: cpuemu.cpp
112 +
113 + cpuemu.cpp: $(OBJ_DIR)/gencpu
114 +        $(OBJ_DIR)/gencpu
115 +
116 + $(OBJ_DIR)/cpuemu1.o: cpuemu.cpp
117 +        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 $(CXXFLAGS) -c $< -o $@
118 + $(OBJ_DIR)/cpuemu2.o: cpuemu.cpp
119 +        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 $(CXXFLAGS) -c $< -o $@
120 + $(OBJ_DIR)/cpuemu3.o: cpuemu.cpp
121 +        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 $(CXXFLAGS) -c $< -o $@
122 + $(OBJ_DIR)/cpuemu4.o: cpuemu.cpp
123 +        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 $(CXXFLAGS) -c $< -o $@
124 + $(OBJ_DIR)/cpuemu5.o: cpuemu.cpp
125 +        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 $(CXXFLAGS) -c $< -o $@
126 + $(OBJ_DIR)/cpuemu6.o: cpuemu.cpp
127 +        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 $(CXXFLAGS) -c $< -o $@
128 + $(OBJ_DIR)/cpuemu7.o: cpuemu.cpp
129 +        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 $(CXXFLAGS) -c $< -o $@
130 + $(OBJ_DIR)/cpuemu8.o: cpuemu.cpp
131 +        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 $(CXXFLAGS) -c $< -o $@
132 +
133   cpufast.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
134          $(CXX) $(CPPFLAGS) $(DEFS) -S $(CXXFLAGS) $< -o cputmp.s
135          $(OBJ_DIR)/cpuopti <cputmp.s >$@ || mv cputmp.s $@
136          rm -f cputmp.s
137 + cpufast1.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
138 +        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 -S $(CXXFLAGS) $< -o cputmp1.s
139 +        $(OBJ_DIR)/cpuopti <cputmp1.s >$@ || mv cputmp1.s $@
140 +        rm -f cputmp1.s
141 + cpufast2.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
142 +        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 -S $(CXXFLAGS) $< -o cputmp2.s
143 +        $(OBJ_DIR)/cpuopti <cputmp2.s >$@ || mv cputmp2.s $@
144 +        rm -f cputmp2.s
145 + cpufast3.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
146 +        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 -S $(CXXFLAGS) $< -o cputmp3.s
147 +        $(OBJ_DIR)/cpuopti <cputmp3.s >$@ || mv cputmp3.s $@
148 +        rm -f cputmp3.s
149 + cpufast4.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
150 +        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 -S $(CXXFLAGS) $< -o cputmp4.s
151 +        $(OBJ_DIR)/cpuopti <cputmp4.s >$@ || mv cputmp4.s $@
152 +        rm -f cputmp4.s
153 + cpufast5.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
154 +        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 -S $(CXXFLAGS) $< -o cputmp5.s
155 +        $(OBJ_DIR)/cpuopti <cputmp5.s >$@ || mv cputmp5.s $@
156 +        rm -f cputmp5.s
157 + cpufast6.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
158 +        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 -S $(CXXFLAGS) $< -o cputmp6.s
159 +        $(OBJ_DIR)/cpuopti <cputmp6.s >$@ || mv cputmp6.s $@
160 +        rm -f cputmp6.s
161 + cpufast7.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
162 +        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 -S $(CXXFLAGS) $< -o cputmp7.s
163 +        $(OBJ_DIR)/cpuopti <cputmp7.s >$@ || mv cputmp7.s $@
164 +        rm -f cputmp7.s
165 + cpufast8.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
166 +        $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 -S $(CXXFLAGS) $< -o cputmp8.s
167 +        $(OBJ_DIR)/cpuopti <cputmp8.s >$@ || mv cputmp8.s $@
168 +        rm -f cputmp8.s
169  
170   #-------------------------------------------------------------------------
171   # DO NOT DELETE THIS LINE -- make depend depends on it.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines