ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/Makefile.in
Revision: 1.13
Committed: 1999-10-21T13:19:13Z (25 years, 1 month ago) by cebix
Branch: MAIN
CVS Tags: snapshot-21101999
Changes since 1.12: +2 -0 lines
Log Message:
- added fbdev video code and SPARC assembly optimizations

File Contents

# User Rev Content
1 cebix 1.1 # Unix makefile for Basilisk II
2    
3     ## System specific configuration
4     @SET_MAKE@
5 cebix 1.9 SHELL = /bin/sh
6 cebix 1.3
7 cebix 1.6 prefix = @prefix@
8     exec_prefix = @exec_prefix@
9     bindir = @bindir@
10     datadir = @datadir@
11     mandir = @mandir@
12     man1dir = $(mandir)/man1
13 cebix 1.3
14 cebix 1.1 CC = @CC@
15     CXX = @CXX@
16     CFLAGS = @CFLAGS@
17     CXXFLAGS = @CXXFLAGS@
18     CPPFLAGS = @CPPFLAGS@ -I../include -I. @CPUINCLUDES@
19 cebix 1.6 DEFS = @DEFS@ @DEFINES@ -D_REENTRANT -DDATADIR=\"$(datadir)/$(APP)\"
20 cebix 1.1 LDFLAGS = @LDFLAGS@
21     LIBS = @LIBS@
22     SYSSRCS = @SYSSRCS@
23     CPUSRCS = @CPUSRCS@
24 cebix 1.3 INSTALL = @INSTALL@
25     INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s
26     INSTALL_DATA = @INSTALL_DATA@
27 cebix 1.1
28     ## Files
29 cebix 1.12 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 serial_unix.cpp ../ether.cpp ../sony.cpp \
33 cebix 1.10 ../disk.cpp ../cdrom.cpp ../scsi.cpp ../video.cpp video_x.cpp ../audio.cpp \
34 cebix 1.12 ../extfs.cpp extfs_unix.cpp ../user_strings.cpp user_strings_unix.cpp \
35 cebix 1.1 $(SYSSRCS) $(CPUSRCS)
36     APP = BasiliskII
37    
38     ## Rules
39 cebix 1.6 .PHONY: modules install uninstall clean distclean depend
40 cebix 1.9 .SUFFIXES:
41     .SUFFIXES: .c .cpp .s .o .h
42 cebix 1.2
43 cebix 1.9 all: $(APP)
44 cebix 1.1
45     OBJ_DIR = obj
46     $(OBJ_DIR)::
47     @[ -d $(OBJ_DIR) ] || mkdir $(OBJ_DIR) > /dev/null 2>&1
48    
49     define SRCS_LIST_TO_OBJS
50     $(addprefix $(OBJ_DIR)/, $(addsuffix .o, $(foreach file, $(SRCS), \
51     $(basename $(notdir $(file))))))
52     endef
53     OBJS = $(SRCS_LIST_TO_OBJS)
54    
55     SRC_PATHS += $(sort $(foreach file, $(SRCS), $(dir $(file))))
56     VPATH :=
57     VPATH += $(addprefix :, $(subst ,:, $(filter-out $($(subst, :, ,$(VPATH))), $(SRC_PATHS))))
58    
59     $(APP): $(OBJ_DIR) $(OBJS)
60     $(CXX) -o $(APP) $(LDFLAGS) $(OBJS) $(LIBS)
61    
62     modules:
63 cebix 1.2 cd Linux/NetDriver; make
64 cebix 1.1
65     install: $(APP)
66 cebix 1.9 $(INSTALL_PROGRAM) $(APP) $(bindir)/$(APP)
67     -$(INSTALL_DATA) $(APP).1 $(man1dir)/$(APP).1
68 cebix 1.6 $(INSTALL) -d $(datadir)/$(APP)
69 cebix 1.9 $(INSTALL_DATA) keycodes $(datadir)/$(APP)/keycodes
70 cebix 1.13 $(INSTALL_DATA) fbdevices $(datadir)/$(APP)/fbdevices
71 cebix 1.5
72     uninstall:
73 cebix 1.9 rm -f $(bindir)/$(APP)
74     rm -f $(man1dir)/$(APP).1
75     rm -f $(datadir)/$(APP)/keycodes
76 cebix 1.13 rm -f $(datadir)/$(APP)/fbdevices
77 cebix 1.9 rmdir $(datadir)/$(APP)
78    
79     mostlyclean:
80     rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak
81    
82     clean: mostlyclean
83 cebix 1.11 rm -f cpuemu.cpp cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp cputbl.h
84 cebix 1.1
85     distclean: clean
86 cebix 1.9 rm -rf $(OBJ_DIR)
87     rm -f Makefile
88     rm -f config.cache config.log config.status config.h
89 cebix 1.1
90     depend dep:
91 cebix 1.8 makedepend $(CPPFLAGS) -Y. $(SRCS) 2>/dev/null
92 cebix 1.1
93     $(OBJ_DIR)/%.o : %.c
94     $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
95     $(OBJ_DIR)/%.o : %.cpp
96     $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
97     $(OBJ_DIR)/%.o : %.s
98     $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
99    
100     $(OBJ_DIR)/cpuopti: $(OBJ_DIR)/cpuopti.o
101     $(CC) $(LDFLAGS) -o $(OBJ_DIR)/cpuopti $(OBJ_DIR)/cpuopti.o
102     $(OBJ_DIR)/build68k: $(OBJ_DIR)/build68k.o
103     $(CC) $(LDFLAGS) -o $(OBJ_DIR)/build68k $(OBJ_DIR)/build68k.o
104     $(OBJ_DIR)/gencpu: $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
105     $(CC) $(LDFLAGS) -o $(OBJ_DIR)/gencpu $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
106     cpudefs.cpp: $(OBJ_DIR)/build68k ../uae_cpu/table68k
107     $(OBJ_DIR)/build68k <../uae_cpu/table68k >cpudefs.cpp
108 cebix 1.11 cpustbl.cpp: cpuemu.cpp
109     cputbl.h: cpuemu.cpp
110    
111 cebix 1.1 cpuemu.cpp: $(OBJ_DIR)/gencpu
112     $(OBJ_DIR)/gencpu
113 cebix 1.11
114     $(OBJ_DIR)/cpuemu1.o: cpuemu.cpp
115     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 $(CXXFLAGS) -c $< -o $@
116     $(OBJ_DIR)/cpuemu2.o: cpuemu.cpp
117     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 $(CXXFLAGS) -c $< -o $@
118     $(OBJ_DIR)/cpuemu3.o: cpuemu.cpp
119     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 $(CXXFLAGS) -c $< -o $@
120     $(OBJ_DIR)/cpuemu4.o: cpuemu.cpp
121     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 $(CXXFLAGS) -c $< -o $@
122     $(OBJ_DIR)/cpuemu5.o: cpuemu.cpp
123     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 $(CXXFLAGS) -c $< -o $@
124     $(OBJ_DIR)/cpuemu6.o: cpuemu.cpp
125     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 $(CXXFLAGS) -c $< -o $@
126     $(OBJ_DIR)/cpuemu7.o: cpuemu.cpp
127     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 $(CXXFLAGS) -c $< -o $@
128     $(OBJ_DIR)/cpuemu8.o: cpuemu.cpp
129     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 $(CXXFLAGS) -c $< -o $@
130    
131 cebix 1.1 cpufast.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
132     $(CXX) $(CPPFLAGS) $(DEFS) -S $(CXXFLAGS) $< -o cputmp.s
133     $(OBJ_DIR)/cpuopti <cputmp.s >$@ || mv cputmp.s $@
134     rm -f cputmp.s
135 cebix 1.11 cpufast1.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
136     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_1 -S $(CXXFLAGS) $< -o cputmp1.s
137     $(OBJ_DIR)/cpuopti <cputmp1.s >$@ || mv cputmp1.s $@
138     rm -f cputmp1.s
139     cpufast2.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
140     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_2 -S $(CXXFLAGS) $< -o cputmp2.s
141     $(OBJ_DIR)/cpuopti <cputmp2.s >$@ || mv cputmp2.s $@
142     rm -f cputmp2.s
143     cpufast3.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
144     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_3 -S $(CXXFLAGS) $< -o cputmp3.s
145     $(OBJ_DIR)/cpuopti <cputmp3.s >$@ || mv cputmp3.s $@
146     rm -f cputmp3.s
147     cpufast4.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
148     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_4 -S $(CXXFLAGS) $< -o cputmp4.s
149     $(OBJ_DIR)/cpuopti <cputmp4.s >$@ || mv cputmp4.s $@
150     rm -f cputmp4.s
151     cpufast5.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
152     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_5 -S $(CXXFLAGS) $< -o cputmp5.s
153     $(OBJ_DIR)/cpuopti <cputmp5.s >$@ || mv cputmp5.s $@
154     rm -f cputmp5.s
155     cpufast6.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
156     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_6 -S $(CXXFLAGS) $< -o cputmp6.s
157     $(OBJ_DIR)/cpuopti <cputmp6.s >$@ || mv cputmp6.s $@
158     rm -f cputmp6.s
159     cpufast7.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
160     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_7 -S $(CXXFLAGS) $< -o cputmp7.s
161     $(OBJ_DIR)/cpuopti <cputmp7.s >$@ || mv cputmp7.s $@
162     rm -f cputmp7.s
163     cpufast8.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
164     $(CXX) $(CPPFLAGS) $(DEFS) -DPART_8 -S $(CXXFLAGS) $< -o cputmp8.s
165     $(OBJ_DIR)/cpuopti <cputmp8.s >$@ || mv cputmp8.s $@
166     rm -f cputmp8.s
167 cebix 1.1
168     #-------------------------------------------------------------------------
169     # DO NOT DELETE THIS LINE -- make depend depends on it.