ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/Makefile.in
Revision: 1.5
Committed: 1999-10-03T17:45:08Z (25 years, 1 month ago) by cebix
Branch: MAIN
Changes since 1.4: +7 -2 lines
Log Message:
- sys_unix.cpp: changed one #ifdef that should really have been an #if
- Makefile.in: provided uninstall target

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