ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/Makefile.in
Revision: 1.7
Committed: 1999-10-05T16:04:23Z (25 years, 1 month ago) by cebix
Branch: MAIN
CVS Tags: release-0_7-2
Changes since 1.6: +1 -1 lines
Log Message:
- cosmetic fix

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.3
6 cebix 1.6 prefix = @prefix@
7     exec_prefix = @exec_prefix@
8     bindir = @bindir@
9     datadir = @datadir@
10     mandir = @mandir@
11     man1dir = $(mandir)/man1
12 cebix 1.3
13 cebix 1.1 CC = @CC@
14     CXX = @CXX@
15     CFLAGS = @CFLAGS@
16     CXXFLAGS = @CXXFLAGS@
17     CPPFLAGS = @CPPFLAGS@ -I../include -I. @CPUINCLUDES@
18 cebix 1.6 DEFS = @DEFS@ @DEFINES@ -D_REENTRANT -DDATADIR=\"$(datadir)/$(APP)\"
19 cebix 1.1 LDFLAGS = @LDFLAGS@
20     LIBS = @LIBS@
21     SYSSRCS = @SYSSRCS@
22     CPUSRCS = @CPUSRCS@
23 cebix 1.3 INSTALL = @INSTALL@
24     INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s
25     INSTALL_DATA = @INSTALL_DATA@
26 cebix 1.1
27     ## Files
28 cebix 1.7 SRCS = ../prefs.cpp ../rom_patches.cpp ../slot_rom.cpp ../rsrc_patches.cpp ../emul_op.cpp \
29 cebix 1.1 ../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 cebix 1.6 .PHONY: modules install uninstall clean distclean depend
38 cebix 1.2
39 cebix 1.1 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 cebix 1.2 cd Linux/NetDriver; make
60 cebix 1.1
61     install: $(APP)
62 cebix 1.6 $(INSTALL_PROGRAM) $(APP) $(bindir)
63     $(INSTALL_DATA) $(APP).1 $(man1dir)
64     $(INSTALL) -d $(datadir)/$(APP)
65     $(INSTALL_DATA) keycodes $(datadir)/$(APP)
66 cebix 1.5
67     uninstall:
68 cebix 1.6 -rm -f $(bindir)/$(APP)
69     -rm -f $(man1dir)/$(APP).1
70     -rm -rf $(datadir)/$(APP)
71 cebix 1.1
72     clean:
73 cebix 1.6 -rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak
74 cebix 1.2 -rm -f cpuemu.cpp cpudefs.cpp cputmp.s cpufast*.s cpustbl.cpp cputbl.h
75 cebix 1.1
76     distclean: clean
77 cebix 1.6 -rm -rf $(OBJ_DIR)
78 cebix 1.2 -rm -f Makefile
79     -rm -f config.cache config.log config.status config.h
80 cebix 1.1
81     depend dep:
82     makedepend $(CPPFLAGS) -Y ../*.cpp ../*.c *.cpp
83    
84     $(OBJ_DIR)/%.o : %.c
85     $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
86     $(OBJ_DIR)/%.o : %.cpp
87     $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
88     $(OBJ_DIR)/%.o : %.s
89     $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
90    
91     $(OBJ_DIR)/cpuopti: $(OBJ_DIR)/cpuopti.o
92     $(CC) $(LDFLAGS) -o $(OBJ_DIR)/cpuopti $(OBJ_DIR)/cpuopti.o
93     $(OBJ_DIR)/build68k: $(OBJ_DIR)/build68k.o
94     $(CC) $(LDFLAGS) -o $(OBJ_DIR)/build68k $(OBJ_DIR)/build68k.o
95     $(OBJ_DIR)/gencpu: $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
96     $(CC) $(LDFLAGS) -o $(OBJ_DIR)/gencpu $(OBJ_DIR)/gencpu.o $(OBJ_DIR)/readcpu.o $(OBJ_DIR)/cpudefs.o
97     cpudefs.cpp: $(OBJ_DIR)/build68k ../uae_cpu/table68k
98     $(OBJ_DIR)/build68k <../uae_cpu/table68k >cpudefs.cpp
99     cpuemu.cpp: $(OBJ_DIR)/gencpu
100     $(OBJ_DIR)/gencpu
101     cpustbl.cpp: cpuemu.cpp
102     cputbl.h: cpuemu.cpp
103     cpufast.s: cpuemu.cpp $(OBJ_DIR)/cpuopti
104     $(CXX) $(CPPFLAGS) $(DEFS) -S $(CXXFLAGS) $< -o cputmp.s
105     $(OBJ_DIR)/cpuopti <cputmp.s >$@ || mv cputmp.s $@
106     rm -f cputmp.s
107    
108     #-------------------------------------------------------------------------
109     # DO NOT DELETE THIS LINE -- make depend depends on it.