original 1.0.1 release
[xwelltris.git] / src / makefile.in
blob46a3fd0d26c7fa652cb5554d0de7a0d84074b5c4
1 # XWelltris - a tetris like game
2 #
3 # Copyright (C) 2002 by Leo Khramov
4 # email: leo@xnc.dubna.su
5 #
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License 2 for more details.
17 include make.conf
19 @MCOMMON@
21 .c.o:
22 $(CC) -c $(CXXINCLUDES) $(INCLUDES) $(CXXOPT) $< -o $@
24 IFACELIBS=@IFACELIBS@
25 IFACEINC=@IFACEINC@
26 IFACEOBJS=@IFACEOBJS@
28 X11IMAGE = \
29 image/sublib/SDL_error.o \
30 image/sublib/SDL_rwops.o \
31 image/sublib/SDL_surface.o \
32 image/sublib/SDL_to_picinfo.o \
33 image/sublib/IMG_gif.o \
34 image/image.o \
35 image/convert.o \
36 image/accel.o
37 X11OBJS = \
38 x11/xwellengine.o \
39 x11/xwelldrawing.o \
40 x11/xwellinput.o \
41 x11/xwellimagefont.o
42 SDLOBJS = \
43 sdl/sdl_gfxprimitives.o \
44 sdl/sdlwellengine.o \
45 sdl/sdlwellimagefont.o \
46 sdl/sdlwellinput.o \
47 sdl/sdlwelldrawing.o
49 OBJS = \
50 mydebug.o \
51 main.o \
52 rndgen.o \
53 geometry.o \
54 commonfuncs.o \
55 wellclass.o \
56 welldrawing.o \
57 wellengine.o \
58 wellsimpledraw.o \
59 wellimagefont.o \
60 welltopnine.o \
61 wellintro.o \
62 wellkey.o \
63 wellswitch.o \
64 wellinput.o \
65 $(IFACEOBJS)
67 CXXINCLUDES=$(IFACEINC)
68 CXXOPT=$(DEFS) $(DEB) $(CFLAGS)
69 LOCAL_LIBRARIES=$(IFACELIBS) $(LIBS)
71 PROGRAM =../xwelltris
73 all:: $(PROGRAM)
75 image/sublib/SDL_error.o: image/sublib/SDL_error.c
76 cd image && make sublib/SDL_error.o
78 image/sublib/SDL_surface.o: image/sublib/SDL_surface.c
79 cd image && make sublib/SDL_surface.o
81 image/sublib/SDL_rwops.o: image/sublib/SDL_rwops.c
82 cd image && make sublib/SDL_rwops.o
84 image/sublib/SDL_to_picinfo.o: image/sublib/SDL_to_picinfo.c
85 cd image && make sublib/SDL_to_picinfo.o
87 image/sublib/IMG_gif.o: image/sublib/IMG_gif.c
88 cd image && make sublib/IMG_gif.o
90 image/accel.o: image/accel.c
91 cd image && make accel.o
93 image/image.o: image/image.cxx
94 cd image && make image.o
96 image/convert.o: image/convert.cxx
97 cd image && make convert.o
99 $(JLOC): FORCE
100 -(cd jpeg && make)
103 $(PROGRAM): $(OBJS)
104 $(CXX) -o $@ $(OBJS) $(DEB) $(STRIPPING) $(CFLAGS) $(LDFLAGS) $(LOCAL_LIBRARIES)
106 mydebug.o: mydebug.c
107 $(CC) -c $< $(CXXOPT) $(CXXINCLUDES) $(INCLUDES) $(CPPFLAGS)
109 clean:
110 $(RM) -f *.o
111 $(RM) -f */*.o
112 (cd image && make clean)
114 tags: FORCE
115 etags *.cxx x11/*.cxx sdl/*.cxx include/*.h
117 FORCE: