~ubuntu-branches/ubuntu/feisty/basilisk2/feisty

« back to all changes in this revision

Viewing changes to src/MacOSX/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2006-06-01 01:11:16 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060601011116-xjhegbgyfsxag5fl
Tags: 0.9.20060529-1
* New upstream CVS snapshot.
* Update local cdbs snippet copyright-check.mk:
  + Broaden scan to also look for "(c)" by default.
  + Make egrep options configurable.
  + Ignore auto-tools files.
* Bump up standards-version to 3.7.2 (no changes needed).
* Let dh_strip do the stripping (not the make install target).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: Makefile.in,v 1.16 2004/01/29 12:26:28 nigel Exp $
 
1
# $Id: Makefile.in,v 1.20 2006/05/25 05:03:03 nigel Exp $
2
2
# MacOS X makefile for Basilisk II. Slightly based on the Unix one
3
3
 
4
4
## System specific configuration
18
18
IDE = @IDE@
19
19
PROJECT = @PROJECT@
20
20
IDEARGS = @IDEARGS@
 
21
SLIRP_SRCS = @SLIRP_SRCS@
21
22
 
22
23
## Files
23
24
OBJ_DIR = build
27
28
GENEMUS = cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp \
28
29
          cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp
29
30
 
 
31
# We compile the emulator source outside of Project Builder/XCode
 
32
# so that it always picks up appropriate FLAGS from configure.
 
33
# This is necessary because that code doesn't use config.h
 
34
EMU_OBJ = $(patsubst %.cpp, build/%.o, $(GENEMUS))
 
35
EMU_LIB = libgenemu.a
 
36
 
 
37
 
30
38
# Symlinks to, or copies of, files in other directories
31
39
GENLINK = README.txt INSTALL.txt install-sh \
32
 
          Darwin config.guess config.sub \
 
40
          Darwin config.guess config.sub semaphore.h \
33
41
          sys_unix.cpp timer_unix.cpp user_strings_unix.h
34
42
 
35
43
GEN  = $(GENEMUS) $(GENSRCS)
39
47
        NNThread.h NNThread.m PrefsEditor.h PrefsEditor.mm \
40
48
        ToDo.html Versions.html \
41
49
        audio_macosx.mm extfs_macosx.mm macos_util_macosx.h main_macosx.h \
42
 
        main_macosx.mm misc_macosx.h misc_macosx.mm nowrite.icns prefs_macosx.cpp \
43
 
        sysdeps.h video_macosx.mm video_macosx.h
 
50
        main_macosx.mm misc_macosx.h misc_macosx.mm nowrite.icns \
 
51
        prefs_macosx.cpp sysdeps.h video_macosx.mm video_macosx.h
 
52
 
 
53
SLIRP_OBJ = $(patsubst ../slirp/%.c, build/%.o, $(SLIRP_SRCS))
 
54
SLIRP_LIB = libslirp.a
 
55
 
44
56
APP = $(OBJ_DIR)/BasiliskII.app
45
57
 
 
58
DEPS = $(OBJ_DIR) $(GEN) $(EMU_LIB) $(SLIRP_LIB) $(SRCS)
 
59
 
46
60
## Rules
47
61
 
48
62
.PHONY: mostlyclean clean distclean depend dep
51
65
 
52
66
all: $(APP)
53
67
 
54
 
ide: $(OBJ_DIR) $(GEN) $(SRCS)
 
68
ide: $(DEPS)
55
69
        open $(PROJECT)
56
70
 
57
71
test: $(APP)
61
75
        @[ -d $(OBJ_DIR) ] || mkdir $(OBJ_DIR) > /dev/null 2>&1
62
76
 
63
77
 
64
 
$(APP): $(OBJ_DIR) $(GEN) $(SRCS)
 
78
$(APP): $(DEPS)
65
79
        $(IDE) -buildstyle Deployment $(IDEARGS) \
66
80
                && $(BLESS) $(APP)/Contents/MacOS/BasiliskII \
67
81
                || rm -fr $(APP)
75
89
 
76
90
mostlyclean:
77
91
        rm -fr English.lproj/*~* $(OBJ_DIR)/* core* *.core *~ *.bak
 
92
        rm -fr autom4te.cache config tests vhook
78
93
 
79
94
clean: mostlyclean
 
95
        rm -f $(SLIRP_LIB) $(EMU_LIB)
80
96
        rm -f $(GEN)
81
97
        rm -f cpudefs.cpp cputmp*.s cpufast*.s cpustbl.cpp
82
98
 
94
110
 
95
111
 
96
112
$(OBJ_DIR)/build68k: ../uae_cpu/build68k.c
97
 
        $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(LDFLAGS) $< -o $@
 
113
        $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) $< -o $@
98
114
 
99
115
$(OBJ_DIR)/cpuopti: ../uae_cpu/cpuopti.c
100
 
        $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(LDFLAGS) $< -o $@
 
116
        $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) $< -o $@
101
117
 
102
118
$(OBJ_DIR)/gencpu: cpudefs.cpp ../uae_cpu/gencpu.c ../uae_cpu/readcpu.cpp
103
 
        $(CXX) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(CXXFLAGS) $(LDFLAGS) $^ -o $@
 
119
        $(CXX) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(CXXFLAGS) $^ -o $@
104
120
 
105
121
 
106
122
 
124
140
cpuemu.s: cpuemu.cpp
125
141
        $(CXX) $(CPPFLAGS) $(DEFS) -S $(CXXFLAGS) $< -o $@
126
142
 
 
143
$(EMU_OBJ) : build/%.o : %.cpp
 
144
        $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
 
145
 
 
146
build/newcpu.o : ../uae_cpu/newcpu.cpp
 
147
        $(CXX) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) -c $< -o $@
 
148
 
 
149
$(EMU_LIB) : $(EMU_OBJ) build/newcpu.o
 
150
        libtool -static -o $@ $^
 
151
 
 
152
$(SLIRP_OBJ) : build/%.o : ../slirp/%.c
 
153
        $(CC) -I../slirp $(CPPFLAGS) $(DEFS) $(CFLAGS) -c $< -o $@
 
154
 
 
155
$(SLIRP_LIB) : $(SLIRP_OBJ)
 
156
        libtool -static -o $@ $^
 
157
 
127
158
#-------------------------------------------------------------------------
128
159
# DO NOT DELETE THIS LINE -- make depend depends on it.