ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/Makefile.in
Revision: 1.3
Committed: 1999-10-03T16:20:08Z (25 years, 1 month ago) by cebix
Branch: MAIN
Changes since 1.2: +15 -13 lines
Log Message:
- renamed basilisk_ii_keycodes to keycodes
- default location of keycodes file is now $(sharedir)/keycodes
  (depends on install prefix)
- improved the install target

File Contents

# Content
1 # Unix makefile for Basilisk II
2
3 ## System specific configuration
4 @SET_MAKE@
5
6 prefix=@prefix@
7 exec_prefix=@exec_prefix@
8 bindir=$(exec_prefix)/bin
9 sharedir=$(prefix)/share/BasiliskII
10 mandir=$(prefix)/man
11 docdir=$(prefix)/doc/BasiliskII
12
13 CC = @CC@
14 CXX = @CXX@
15 CFLAGS = @CFLAGS@
16 CXXFLAGS = @CXXFLAGS@
17 CPPFLAGS = @CPPFLAGS@ -I../include -I. @CPUINCLUDES@
18 DEFS = @DEFS@ @DEFINES@ -D_REENTRANT -DSHAREDIR=\"$(sharedir)\"
19 LDFLAGS = @LDFLAGS@
20 LIBS = @LIBS@
21 SYSSRCS = @SYSSRCS@
22 CPUSRCS = @CPUSRCS@
23 INSTALL = @INSTALL@
24 INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s
25 INSTALL_DATA = @INSTALL_DATA@
26
27 ## Files
28 SRCS=../prefs.cpp ../rom_patches.cpp ../slot_rom.cpp ../rsrc_patches.cpp ../emul_op.cpp \
29 ../macos_util.cpp ../xpram.cpp ../timer.cpp ../adb.cpp ../serial.cpp ../ether.cpp ../sony.cpp \
30 ../disk.cpp ../cdrom.cpp ../scsi.cpp ../video.cpp ../audio.cpp ../user_strings.cpp \
31 main_unix.cpp prefs_unix.cpp sys_unix.cpp xpram_unix.cpp timer_unix.cpp clip_unix.cpp \
32 serial_unix.cpp video_x.cpp \
33 $(SYSSRCS) $(CPUSRCS)
34 APP = BasiliskII
35
36 ## Rules
37 .PHONY: clean distclean realclean depend
38
39 default: $(APP)
40
41 OBJ_DIR = obj
42 $(OBJ_DIR)::
43 @[ -d $(OBJ_DIR) ] || mkdir $(OBJ_DIR) > /dev/null 2>&1
44
45 define SRCS_LIST_TO_OBJS
46 $(addprefix $(OBJ_DIR)/, $(addsuffix .o, $(foreach file, $(SRCS), \
47 $(basename $(notdir $(file))))))
48 endef
49 OBJS = $(SRCS_LIST_TO_OBJS)
50
51 SRC_PATHS += $(sort $(foreach file, $(SRCS), $(dir $(file))))
52 VPATH :=
53 VPATH += $(addprefix :, $(subst ,:, $(filter-out $($(subst, :, ,$(VPATH))), $(SRC_PATHS))))
54
55 $(APP): $(OBJ_DIR) $(OBJS)
56 $(CXX) -o $(APP) $(LDFLAGS) $(OBJS) $(LIBS)
57
58 modules:
59 cd Linux/NetDriver; make
60
61 install: $(APP)
62 $(INSTALL_PROGRAM) BasiliskII $(bindir)
63 $(INSTALL_DATA) BasiliskII.1 $(mandir)/man1
64 $(INSTALL_DATA) keycodes $(sharedir)
65
66 clean:
67 -rm -f $(OBJ_DIR)/* core* *.core *~ *.bak
68 -rm -f cpuemu.cpp cpudefs.cpp cputmp.s cpufast*.s cpustbl.cpp cputbl.h
69
70 distclean: clean
71 -rm -f Makefile
72 -rm -f config.cache config.log config.status config.h
73 -strip $(APP)
74
75 realclean: distclean
76 -rm -f $(APP)
77
78 depend dep:
79 makedepend $(CPPFLAGS) -Y ../*.cpp ../*.c *.cpp
80
81 $(OBJ_DIR)/%.o : %.c
82 $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
83 $(OBJ_DIR)/%.o : %.cpp
84 $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
85 $(OBJ_DIR)/%.o : %.s
86 $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
87
88 $(OBJ_DIR)/cpuopti: $(OBJ_DIR)/cpuopti.o
89 $(CC) $(LDFLAGS) -o $(OBJ_DIR)/cpuopti $(OBJ_DIR)/cpuopti.o
90 $(OBJ_DIR)/build68k: $(OBJ_DIR)/build68k.o
91 $(CC) $(LDFLAGS) -o $(OBJ_DIR)/build68k $(OBJ_DIR)/build68k.o
92 $(OBJ_DIR)/gencpu: $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
93 $(CC) $(LDFLAGS) -o $(OBJ_DIR)/gencpu $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
94 cpudefs.cpp: $(OBJ_DIR)/build68k ../uae_cpu/table68k
95 $(OBJ_DIR)/build68k <../uae_cpu/table68k >cpudefs.cpp
96 cpuemu.cpp: $(OBJ_DIR)/gencpu
97 $(OBJ_DIR)/gencpu
98 cpustbl.cpp: cpuemu.cpp
99 cputbl.h: cpuemu.cpp
100 cpufast.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
101 $(CXX) $(CPPFLAGS) $(DEFS) -S $(CXXFLAGS) $< -o cputmp.s
102 $(OBJ_DIR)/cpuopti <cputmp.s >$@ || mv cputmp.s $@
103 rm -f cputmp.s
104
105 #-------------------------------------------------------------------------
106 # DO NOT DELETE THIS LINE -- make depend depends on it.