ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/BeOS/Makefile
Revision: 1.1
Committed: 1999-10-03T14:16:25Z (25 years, 1 month ago) by cebix
Branch: MAIN
Branch point for: cebix
Log Message:
Initial revision

File Contents

# User Rev Content
1 cebix 1.1 ## BeOS Generic Makefile v2.1 ##
2    
3     ## Fill in this file to specify the project being created, and the referenced
4     ## makefile-engine will do all of the hard work for you. This handles both
5     ## Intel and PowerPC builds of the BeOS.
6    
7     ## Application Specific Settings ---------------------------------------------
8    
9     # specify the name of the binary
10     NAME= BasiliskII
11    
12     # specify the type of binary
13     # APP: Application
14     # SHARED: Shared library or add-on
15     # STATIC: Static library archive
16     # DRIVER: Kernel Driver
17     TYPE= APP
18    
19     # add support for new Pe and Eddie features
20     # to fill in generic makefile
21    
22     #%{
23     # @src->@
24    
25     # specify the source files to use
26     # full paths or paths relative to the makefile can be included
27     # all files, regardless of directory, will have their object
28     # files created in the common object directory.
29     # Note that this means this makefile will not work correctly
30     # if two source files with the same name (source.c or source.cpp)
31     # are included from different directories. Also note that spaces
32     # in folder names do not work well with this makefile.
33     MACHINE=$(shell uname -m)
34     ifeq ($(MACHINE), BePC)
35     CPUSRCS = ../uae_cpu/basilisk_glue.cpp ../uae_cpu/memory.cpp ../uae_cpu/newcpu.cpp \
36     ../uae_cpu/readcpu.cpp ../uae_cpu/fpp.cpp cpustbl.cpp cpudefs.cpp cpufast.s
37     else
38     # CPUSRCS = ../powerrom_cpu/powerrom_cpu.cpp
39     CPUSRCS = ../uae_cpu/basilisk_glue.cpp ../uae_cpu/newcpu.cpp \
40     ../uae_cpu/readcpu.cpp ../uae_cpu/fpp.cpp cpustbl.cpp cpudefs.cpp cpuemu.cpp
41     endif
42     SRCS=../prefs.cpp ../rom_patches.cpp ../slot_rom.cpp ../rsrc_patches.cpp ../emul_op.cpp \
43     ../macos_util.cpp ../xpram.cpp ../timer.cpp ../adb.cpp ../serial.cpp ../ether.cpp ../sony.cpp \
44     ../disk.cpp ../cdrom.cpp ../scsi.cpp ../video.cpp ../audio.cpp ../user_strings.cpp \
45     main_beos.cpp prefs_beos.cpp prefs_editor_beos.cpp sys_beos.cpp xpram_beos.cpp \
46     timer_beos.cpp clip_beos.cpp serial_beos.cpp ether_beos.cpp scsi_beos.cpp video_beos.cpp \
47     audio_beos.cpp \
48     $(CPUSRCS)
49    
50     # specify the resource files to use
51     # full path or a relative path to the resource file can be used.
52     RSRCS=
53    
54     # @<-src@
55     #%}
56    
57     # end support for Pe and Eddie
58    
59     # specify additional libraries to link against
60     # there are two acceptable forms of library specifications
61     # - if your library follows the naming pattern of:
62     # libXXX.so or libXXX.a you can simply specify XXX
63     # library: libbe.so entry: be
64     #
65     # - if your library does not follow the standard library
66     # naming scheme you need to specify the path to the library
67     # and it's name
68     # library: my_lib.a entry: my_lib.a or path/my_lib.a
69     LIBS=be game media device textencoding tracker
70    
71     # specify additional paths to directories following the standard
72     # libXXX.so or libXXX.a naming scheme. You can specify full paths
73     # or paths relative to the makefile. The paths included may not
74     # be recursive, so include all of the paths where libraries can
75     # be found. Directories where source files are found are
76     # automatically included.
77     LIBPATHS=
78    
79     # additional paths to look for system headers
80     # thes use the form: #include <header>
81     # source file directories are NOT auto-included here
82     SYSTEM_INCLUDE_PATHS =
83    
84     # additional paths to look for local headers
85     # thes use the form: #include "header"
86     # source file directories are automatically included
87     LOCAL_INCLUDE_PATHS = ../include
88    
89     # specify the level of optimization that you desire
90     # NONE, SOME, FULL
91     OPTIMIZE= FULL
92    
93     # specify any preprocessor symbols to be defined. The symbols will not
94     # have their values set automatically; you must supply the value (if any)
95     # to use. For example, setting DEFINES to "DEBUG=1" will cause the
96     # compiler option "-DDEBUG=1" to be used. Setting DEFINES to "DEBUG"
97     # would pass "-DDEBUG" on the compiler's command line.
98     DEFINES=
99    
100     # specify special warning levels
101     # if unspecified default warnings will be used
102     # NONE = supress all warnings
103     # ALL = enable all warnings
104     WARNINGS =
105    
106     # specify whether image symbols will be created
107     # so that stack crawls in the debugger are meaningful
108     # if TRUE symbols will be created
109     SYMBOLS =
110    
111     # specify debug settings
112     # if TRUE will allow application to be run from
113     # a source-level debugger
114     DEBUGGER =
115    
116     # specify additional compiler flags for all files
117     COMPILER_FLAGS =
118    
119     # specify additional linker flags
120     LINKER_FLAGS =
121    
122    
123     ## include the makefile-engine
124     include /boot/develop/etc/makefile-engine
125    
126    
127     # special handling of UAE CPU engine
128     $(OBJ_DIR)/%.o : %.s
129     $(CC) $(INCLUDES) $(CFLAGS) -c $< -o $@
130     $(OBJ_DIR)/cpuopti: $(OBJ_DIR)/cpuopti.o
131     $(CC) $(LDFLAGS) -o $(OBJ_DIR)/cpuopti $(OBJ_DIR)/cpuopti.o
132     $(OBJ_DIR)/build68k: $(OBJ_DIR)/build68k.o
133     $(CC) $(LDFLAGS) -o $(OBJ_DIR)/build68k $(OBJ_DIR)/build68k.o
134     $(OBJ_DIR)/gencpu: $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
135     $(CC) $(LDFLAGS) -o $(OBJ_DIR)/gencpu $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
136     cpudefs.cpp: $(OBJ_DIR)/build68k ../uae_cpu/table68k
137     $(OBJ_DIR)/build68k <../uae_cpu/table68k >cpudefs.cpp
138     cpuemu.cpp: $(OBJ_DIR)/gencpu
139     $(OBJ_DIR)/gencpu
140     cpustbl.cpp: cpuemu.cpp
141     cputbl.h: cpuemu.cpp
142     cpufast.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
143     $(CXX) $(INCLUDES) -S $(CFLAGS) $< -o cputmp.s
144     $(OBJ_DIR)/cpuopti <cputmp.s >$@ || mv cputmp.s $@
145     rm -f cputmp.s
146    
147     streifenfrei:
148     -rm -f $(OBJ_DIR)/gencpu $(OBJ_DIR)/build68k $(OBJ_DIR)/cpuopti
149     -rm -f cpuemu.cpp cpudefs.cpp cputmp.s cpufast*.s cpustbl.cpp cputbl.h