Remove obnoxious documentation files
[theoddone33/hhexen.git] / Makefile.in
1 # This Makefile understands the following targets:
2 #
3 # x11 (default):        build X11 version
4 # sdl                   build SDL (software) version
5 # svgalib:              build SVGALib version
6 # opengl                build OpenGL version
7 # clean:                remove all intermediate files
8
9 # Basic stuff
10 SHELL = /bin/sh
11 VPATH = @srcdir@
12
13 top_srcdir = @top_srcdir@
14 srcdir = @srcdir@
15 prefix = @prefix@
16 exec_prefix = @exec_prefix@
17 bindir = $(exec_prefix)/bin
18 infodir = $(prefix)/info
19 libdir = $(prefix)/lib/gnudl
20 mandir = $(prefix)/man/man1
21 includedir = $(prefix)/include
22
23 CC = @CC@
24 CXX = @CXX@
25 DEFS = @DEFS@
26 CPPFLAGS = @CPPFLAGS@ @CFLAGS@
27 CFLAGS = $(CPPFLAGS)
28 LDFLAGS = @LDFLAGS@
29 BLIBS = @BASELIBS@
30 SVGALIBS = $(BLIBS) @SVGALIBS@
31 GLLIBS = @GLLIBS@ -L/usr/X11R6/lib -lGL -lGLU
32 SDLLIBS = @SDL_LIBS@ 
33 SDLFLAGS = @SDL_CFLAGS@
34 GLHEXEN = @GLHEXEN@
35 HAVE_SDL = @HAVESDL@
36
37 # Directories
38
39 TOPSRCDIR = @top_srcdir@
40 TOPOBJDIR = .
41 SRCDIR    = @srcdir@
42 VPATH     = @srcdir@
43 MODULE    = none
44
45 INCSUBDIR = include
46
47 CPPFLAGS += -I./include -I/usr/X11R6/include
48
49 # Objects to build
50
51 SDLOBJS = \
52         sdl/i_sdl.o
53
54 GLBASE = @GLBASE@
55
56 GLOBJS = \
57         opengl/ogl_clip.o \
58         opengl/ogl_draw.o \
59         opengl/ogl_font.o \
60         opengl/ogl_rend.o \
61         opengl/ogl_rl.o \
62         opengl/ogl_sky.o \
63         opengl/ogl_tex.o \
64         opengl/m_bams.o
65
66 BASEOBJS = \
67         base/i_linux.o \
68         base/oss.o \
69         base/i_sound.o \
70         base/i_cdmus.o \
71         base/am_map.o \
72         base/a_action.o \
73         base/ct_chat.o \
74         base/c_console.o \
75         base/c_cvar.o \
76         base/d_net.o \
77         base/f_finale.o \
78         base/g_game.o \
79         base/h2_main.o \
80         base/info.o \
81         base/in_lude.o \
82         base/mn_menu.o \
83         base/m_misc.o \
84         base/p_acs.o \
85         base/p_anim.o \
86         base/p_ceilng.o \
87         base/p_doors.o \
88         base/p_enemy.o \
89         base/p_floor.o \
90         base/p_inter.o \
91         base/p_lights.o \
92         base/p_map.o \
93         base/p_maputl.o \
94         base/p_mobj.o \
95         base/p_plats.o \
96         base/p_pspr.o \
97         base/p_setup.o \
98         base/p_sight.o \
99         base/p_spec.o \
100         base/p_switch.o \
101         base/p_telept.o \
102         base/p_tick.o \
103         base/p_things.o \
104         base/p_user.o \
105         base/po_man.o \
106         base/r_bsp.o \
107         base/r_data.o \
108         base/r_draw.o \
109         base/r_main.o \
110         base/r_plane.o \
111         base/r_segs.o \
112         base/r_things.o \
113         base/sb_bar.o \
114         base/sc_man.o \
115         base/sn_sonix.o \
116         base/st_start.o \
117         base/sv_save.o \
118         base/sounds.o \
119         base/tables.o \
120         base/v_video.o \
121         base/w_wad.o \
122         base/z_zone.o
123
124 ifeq "$(GLHEXEN)" "true"
125 opengl: $(GLBASE) $(GLOBJS) $(BASEOBJS)
126         $(CC) -o hhexen-gl $(GLBASE) $(GLOBJS) $(BASEOBJS) $(GLLIBS) $(SDLLIBS)
127 else
128 ifeq "$(HAVE_SDL)" "yes"
129 sdl: $(SDLOBJS) $(BASEOBJS)
130         $(CC) -o hhexen-sdl $(SDLOBJS) $(BASEOBJS) $(SDLLIBS)
131 endif
132 x11:    $(X11OBJS) $(BASEOBJS)
133         $(CC) -o hhexen-x11  $(X11OBJS) $(BASEOBJS) $(XLIBS)
134
135 svgalib: $(SVGAOBJS) $(BASEOBJS)
136         $(CC) -o hhexen-vga $(SVGAOBJS) $(BASEOBJS) $(SVGALIBS)
137
138 endif
139
140 clean:
141         $(RM) base/*.o
142         $(RM) x11/*.o
143         $(RM) svgalib/*.o
144         $(RM) opengl/*.o
145         $(RM) sdl/*.o
146
147 %.o: %.c
148         $(CC) $< -o $@ -c $(CFLAGS) $(SDLFLAGS)
149
150 %.o: %.cpp
151         $(CXX) $< -o $@ -c $(CPPFLAGS) $(SDLFLAGS)