ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/Unix/Makefile.in
Revision: 1.3
Committed: 2003-05-13T16:59:57Z (21 years, 1 month ago) by gbeauche
Branch: MAIN
Changes since 1.2: +1 -0 lines
Log Message:
Use vm_acquire/vm_acquire_fixed/vm_release API. Prepare use of SIGSEGV
handlers and instruction skippers. Fix test prior to including posix_sem.cpp.

File Contents

# User Rev Content
1 cebix 1.1 # Linux makefile for SheepShaver
2    
3     ## System specific configuration
4     @SET_MAKE@
5     SHELL = /bin/sh
6    
7     prefix = @prefix@
8     exec_prefix = @exec_prefix@
9     bindir = @bindir@
10     datadir = @datadir@
11     mandir = @mandir@
12     man1dir = $(mandir)/man1
13    
14     CC = @CC@
15     CXX = @CXX@
16     CFLAGS = @CFLAGS@
17     CXXFLAGS = @CXXFLAGS@
18     CPPFLAGS = @CPPFLAGS@ -I../include -I.
19     DEFS = @DEFS@ -D_REENTRANT -DDATADIR=\"$(datadir)/$(APP)\"
20     LDFLAGS = @LDFLAGS@
21     LIBS = @LIBS@
22     SYSSRCS = @SYSSRCS@
23     INSTALL = @INSTALL@
24     INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s
25     INSTALL_DATA = @INSTALL_DATA@
26    
27     ## Files
28     SRCS = main_unix.cpp ../prefs.cpp ../prefs_items.cpp prefs_unix.cpp sys_unix.cpp \
29     ../rom_patches.cpp ../rsrc_patches.cpp ../emul_op.cpp ../name_registry.cpp \
30     ../macos_util.cpp ../timer.cpp timer_unix.cpp ../xpram.cpp xpram_unix.cpp \
31     ../adb.cpp clip_unix.cpp ../sony.cpp ../disk.cpp ../cdrom.cpp ../scsi.cpp \
32     Linux/scsi_linux.cpp ../video.cpp video_x.cpp ../audio.cpp audio_oss_esd.cpp ../ether.cpp \
33     Linux/ether_linux.cpp ../serial.cpp serial_unix.cpp ../extfs.cpp extfs_unix.cpp \
34 gbeauche 1.2 about_window_unix.cpp ../user_strings.cpp user_strings_unix.cpp \
35 gbeauche 1.3 vm_alloc.cpp sigsegv.cpp \
36 gbeauche 1.2 sshpty.c strlcpy.c $(SYSSRCS)
37 cebix 1.1 APP = SheepShaver
38    
39     ## Rules
40     .PHONY: modules install uninstall clean distclean depend dep
41     .SUFFIXES:
42     .SUFFIXES: .c .cpp .S .o .h
43    
44     all: $(APP)
45    
46     OBJ_DIR = obj
47     $(OBJ_DIR)::
48     @[ -d $(OBJ_DIR) ] || mkdir $(OBJ_DIR) > /dev/null 2>&1
49    
50     define SRCS_LIST_TO_OBJS
51     $(addprefix $(OBJ_DIR)/, $(addsuffix .o, $(foreach file, $(SRCS), \
52     $(basename $(notdir $(file))))))
53     endef
54     OBJS = $(SRCS_LIST_TO_OBJS)
55    
56     SRC_PATHS += $(sort $(foreach file, $(SRCS), $(dir $(file))))
57     VPATH :=
58     VPATH += $(addprefix :, $(subst ,:, $(filter-out $($(subst, :, ,$(VPATH))), $(SRC_PATHS))))
59    
60     $(APP): $(OBJ_DIR) $(OBJS)
61     $(CXX) -o $(APP) $(LDFLAGS) $(OBJS) $(LIBS)
62    
63     modules:
64     cd NetDriver; make
65    
66     install: $(APP) installdirs
67     $(INSTALL_PROGRAM) $(APP) $(bindir)/$(APP)
68     -$(INSTALL_DATA) $(APP).1 $(man1dir)/$(APP).1
69    
70     installdirs:
71     $(SHELL) mkinstalldirs $(bindir) $(man1dir)
72    
73     uninstall:
74     rm -f $(bindir)/$(APP)
75     rm -f $(man1dir)/$(APP).1
76    
77     clean:
78     rm -f $(APP) $(OBJ_DIR)/* core* *.core *~ *.bak
79    
80     distclean: clean
81     rm -rf $(OBJ_DIR)
82     rm -f Makefile
83     rm -f config.cache config.log config.status config.h
84    
85     depend dep:
86     makedepend $(CPPFLAGS) -Y. $(SRCS) 2>/dev/null
87    
88     $(OBJ_DIR)/%.o : %.c
89     $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
90     $(OBJ_DIR)/%.o : %.cpp
91     $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
92     $(OBJ_DIR)/%.o : %.S
93     $(CPP) $(CPPFLAGS) -D__ASSEMBLY__ $< -o $*.s
94     $(AS) $(ASFLAGS) -o $@ $*.s
95     rm $*.s
96    
97     #-------------------------------------------------------------------------
98     # DO NOT DELETE THIS LINE -- make depend depends on it.