annotate Makefile.in @ 1368:533567cbb576

More fixes for building on BeOS
author Sam Lantinga <slouken@libsdl.org>
date Sat, 18 Feb 2006 06:51:00 +0000
parents 88ddeb76c9c1
children d94b080ff6ce
rev   line source
1362
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
1 # Makefile to build and install the SDL library
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
2
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
3 top_builddir = .
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
4 srcdir = @srcdir@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
5 objects = build
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
6 depend = build-deps
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
7 prefix = @prefix@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
8 exec_prefix = @exec_prefix@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
9 bindir = @bindir@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
10 libdir = @libdir@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
11 includedir = @includedir@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
12 datadir = @datadir@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
13 mandir = @mandir@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
14 distpath = $(srcdir)/..
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
15 distdir = SDL-@SDL_VERSION@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
16 distfile = $(distdir).tar.gz
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
17
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
18 SHELL = @SHELL@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
19 CC = @CC@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
20 INCLUDE = @INCLUDE@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
21 CFLAGS = @BUILD_CFLAGS@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
22 LDFLAGS = @BUILD_LIBS@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
23 LIBTOOL = @LIBTOOL@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
24 INSTALL = @INSTALL@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
25 NASM = @NASM@ @NASMFLAGS@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
26
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
27 TARGET = libSDL.la
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
28 SOURCES = @SOURCES@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
29 OBJECTS = @OBJECTS@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
30
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
31 DIST = acinclude.m4 autogen.sh Borland.html Borland.zip BUGS build-scripts configure configure.in COPYING CREDITS CWprojects.sea.bin docs docs.html EpocBuildFiles.zip include INSTALL Makefile.dc Makefile.in MPWmake.sea.bin PBProjects.tar.gz README* sdl-config.in sdl.m4 SDL.qpg.in SDL.spec SDL.spec.in setvars.cmd src test TODO VisualCE.zip VisualC.html VisualC.zip Watcom.mif WhatsNew Xcode21.tar.gz Xcode.tar.gz XcodeUniversal.tar.gz
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
32
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
33 BUILDC = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $? -o $@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
34 BUILDCC = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $? -o $@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
35 BUILDM = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $? -o $@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
36 BUILDASM = $(LIBTOOL) --tag=CC --mode=compile @ac_aux_dir@/strip_fPIC.sh $(NASM) $? -o $@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
37
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
38 LT_AGE = @LT_AGE@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
39 LT_CURRENT = @LT_CURRENT@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
40 LT_RELEASE = @LT_RELEASE@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
41 LT_REVISION = @LT_REVISION@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
42 LT_LDFLAGS = -no-undefined -rpath $(libdir) -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
43
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
44 all: Makefile $(objects) $(objects)/$(TARGET)
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
45
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
46 Makefile: $(srcdir)/Makefile.in
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
47 $(SHELL) config.status $@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
48
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
49 $(objects):
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
50 $(SHELL) @ac_aux_dir@/mkinstalldirs $@
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
51
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
52 .PHONY: all depend install install-bin install-hdrs install-lib install-data install-man uninstall uninstall-bin uninstall-hdrs uninstall-lib uninstall-data uninstall-man clean distclean dist
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
53 depend:
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
54 SOURCES="$(SOURCES)" INCLUDE="$(INCLUDE)" objects="$(objects)" output="$(depend)" \
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
55 $(SHELL) @ac_aux_dir@/makedep.sh
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
56
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
57 include $(depend)
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
58
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
59 $(objects)/$(TARGET): $(OBJECTS)
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
60 $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBS) $(LT_LDFLAGS)
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
61
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
62 install: install-bin install-hdrs install-lib install-data install-man
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
63 install-bin:
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
64 $(SHELL) @ac_aux_dir@/mkinstalldirs $(bindir)
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
65 $(INSTALL) -m 755 $(srcdir)/sdl-config $(bindir)/sdl-config
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
66 install-hdrs:
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
67 $(SHELL) @ac_aux_dir@/mkinstalldirs $(includedir)/SDL
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
68 for src in $(srcdir)/include/*.h; do \
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
69 file=`echo $$src | sed -e 's|^.*/||'`; \
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
70 $(INSTALL) $$src $(includedir)/SDL/$$file; \
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
71 done
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
72 $(INSTALL) include/SDL_config.h $(includedir)/SDL/SDL_config.h
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
73 install-lib:
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
74 $(SHELL) @ac_aux_dir@/mkinstalldirs $(libdir)
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
75 $(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(TARGET) $(libdir)/$(TARGET)
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
76 install-data:
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
77 $(SHELL) @ac_aux_dir@/mkinstalldirs $(datadir)/aclocal
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
78 $(INSTALL) $(srcdir)/sdl.m4 $(datadir)/aclocal/sdl.m4
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
79 install-man:
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
80 $(SHELL) @ac_aux_dir@/mkinstalldirs $(mandir)/man3
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
81 for src in $(srcdir)/docs/man3/*.3; do \
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
82 file=`echo $$src | sed -e 's|^.*/||'`; \
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
83 $(INSTALL) $$src $(mandir)/man3/$$file; \
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
84 done
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
85
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
86 uninstall: uninstall-bin uninstall-hdrs uninstall-lib uninstall-man
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
87 uninstall-bin:
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
88 rm -f $(bindir)/sdl-config
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
89 uninstall-hdrs:
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
90 for src in $(srcdir)/include/*.h; do \
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
91 file=`echo $$src | sed -e 's|^.*/||'`; \
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
92 rm -f $(includedir)/SDL/$$file; \
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
93 done
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
94 rm -f $(includedir)/SDL/SDL_config.h
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
95 uninstall-lib:
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
96 $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(TARGET)
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
97 uninstall-data:
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
98 rm -f $(datadir)/aclocal/sdl.m4
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
99 uninstall-man:
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
100 for src in $(srcdir)/docs/man3/*.3; do \
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
101 file=`echo $$src | sed -e 's|^.*/||'`; \
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
102 rm -f $(mandir)/man3/$$file; \
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
103 done
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
104
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
105 clean:
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
106 rm -rf $(objects)
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
107
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
108 distclean: clean
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
109 rm -f Makefile include/SDL_config.h sdl-config
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
110 rm -f SDL.qpg
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
111 rm -f config.status config.cache config.log libtool $(depend)
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
112 rm -rf $(srcdir)/autom4te*
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
113 find $(srcdir) \
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
114 -name '*~' -o -name '*.bak' -o -name '*.old' -o -name '*.rej' -o \
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
115 -name '.#*' \
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
116 -exec rm -f {} \;
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
117 cp include/SDL_config.h.minimal include/SDL_config.h
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
118
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
119 dist $(distfile):
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
120 $(SHELL) @ac_aux_dir@/mkinstalldirs $(distdir)
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
121 tar cf - $(DIST) | (cd $(distdir); tar xf -)
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
122 rm -rf `find $(distdir) -name CVS`
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
123 rm -f `find $(distdir) -name '.#*'`
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
124 tar cvf - $(distdir) | gzip --best >$(distfile)
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
125 rm -rf $(distdir)
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
126
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
127 rpm: $(distfile)
88ddeb76c9c1 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
128 rpmbuild -ta $?