]> icculus.org git repositories - theoddone33/hhexen.git/blob - Makefile.in
Initial revision
[theoddone33/hhexen.git] / Makefile.in
1 # This Makefile understands the following targets:
2 #
3 # x11 (default):        build X11 version
4 # svgalib:              build SVGALib version
5 # opengl                build OpenGL version
6 # clean:                remove all intermediate files
7
8 # Basic stuff
9 SHELL = /bin/sh
10 VPATH = @srcdir@
11
12 top_srcdir = @top_srcdir@
13 srcdir = @srcdir@
14 prefix = @prefix@
15 exec_prefix = @exec_prefix@
16 bindir = $(exec_prefix)/bin
17 infodir = $(prefix)/info
18 libdir = $(prefix)/lib/gnudl
19 mandir = $(prefix)/man/man1
20 includedir = $(prefix)/include
21
22 CC = @CC@
23 DEFS = @DEFS@
24 CPPFLAGS = @CPPFLAGS@ @CFLAGS@
25 CFLAGS = $(CPPFLAGS) 
26 LDFLAGS = @LDFLAGS@
27 BLIBS = @BASELIBS@
28 XLIBS = $(BLIBS) @LIBS@
29 SVGALIBS = $(BLIBS) @SVGALIBS@
30
31 GLHEXEN = @GLHEXEN@
32
33 # Directories
34
35 TOPSRCDIR = @top_srcdir@
36 TOPOBJDIR = .
37 SRCDIR    = @srcdir@
38 VPATH     = @srcdir@
39 MODULE    = none
40
41 INCSUBDIR = include
42
43 CPPFLAGS += -I./include
44
45 # Objects to build
46
47 X11OBJS = \
48         x11/i_x11.o \
49         x11/x11window.o \
50         x11/xshmext.o
51
52 SVGAOBJS = \
53         svgalib/i_svgalib.o
54
55 GLOBJS = \
56         opengl/i_gl.o \
57         x11/x11window.o \
58         opengl/ogl_clip.o \
59         opengl/ogl_draw.o \
60         opengl/ogl_font.o \
61         opengl/ogl_rend.o \
62         opengl/ogl_rl.o \
63         opengl/ogl_sky.o \
64         opengl/ogl_tex.o \
65         opengl/m_bams.o
66
67 BASEOBJS = \
68         base/i_linux.o \
69         base/oss.o \
70         base/i_sound.o \
71         base/i_cdmus.o \
72         base/i_cyber.o \
73         base/am_map.o \
74         base/a_action.o \
75         base/ct_chat.o \
76         base/c_console.o \
77         base/d_net.o \
78         base/f_finale.o \
79         base/g_game.o \
80         base/h2_main.o \
81         base/info.o \
82         base/in_lude.o \
83         base/mn_menu.o \
84         base/m_misc.o \
85         base/p_acs.o \
86         base/p_anim.o \
87         base/p_ceilng.o \
88         base/p_doors.o \
89         base/p_enemy.o \
90         base/p_floor.o \
91         base/p_inter.o \
92         base/p_lights.o \
93         base/p_map.o \
94         base/p_maputl.o \
95         base/p_mobj.o \
96         base/p_plats.o \
97         base/p_pspr.o \
98         base/p_setup.o \
99         base/p_sight.o \
100         base/p_spec.o \
101         base/p_switch.o \
102         base/p_telept.o \
103         base/p_tick.o \
104         base/p_things.o \
105         base/p_user.o \
106         base/po_man.o \
107         base/r_bsp.o \
108         base/r_data.o \
109         base/r_draw.o \
110         base/r_main.o \
111         base/r_plane.o \
112         base/r_segs.o \
113         base/r_things.o \
114         base/sb_bar.o \
115         base/sc_man.o \
116         base/sn_sonix.o \
117         base/st_start.o \
118         base/sv_save.o \
119         base/sounds.o \
120         base/tables.o \
121         base/v_video.o \
122         base/w_wad.o \
123         base/z_zone.o
124
125 ifeq ($(GLHEXEN),true)
126 opengl: $(GLOBJS) $(BASEOBJS)
127         $(CC) -o HHexenGL $(GLOBJS) $(BASEOBJS) $(XLIBS)
128
129 x11:
130         echo "You are trying to compile the X11 version after enabling OpenGL."
131         echo "Please type './configure' before you try this again."
132
133 svgalib:
134         echo "You are trying to compile the SVGALib version after enabling OpenGL."
135         echo "Please type './configure' before you try this again."
136 endif
137
138 ifeq ($(GLHEXEN),false)
139 x11:    $(X11OBJS) $(BASEOBJS)
140         $(CC) -o HHexenX  $(X11OBJS) $(BASEOBJS) $(XLIBS)
141
142 svgalib: $(SVGAOBJS) $(BASEOBJS)
143         $(CC) -o HHexenS $(SVGAOBJS) $(BASEOBJS) $(SVGALIBS)
144
145 opengl:
146         echo "You have not enabled GL.  Please type './configure --enable-gl-mesa'"
147         echo "or './configure --enable-gl-tnt' to enable OpenGL mode."
148 endif
149
150 clean:
151         $(RM) base/*.o
152         $(RM) x11/*.o
153         $(RM) svgalib/*.o
154         $(RM) opengl/*.o
155
156 %.o: %.c
157         $(CC) $< -o $@ -c $(CFLAGS) 
158
159 %.o: %.cpp
160         $(CXX) $< -o $@ -c $(CPPFLAGS)