]> icculus.org git repositories - theoddone33/hheretic.git/blob - Makefile
Initial revision
[theoddone33/hheretic.git] / Makefile
1 # Generated automatically from Makefile.in by configure.
2 # This Makefile understands the following targets:
3 #
4 # sdl                   build SDL (software) version
5 # clean:                remove all intermediate files
6
7 # Basic stuff
8 SHELL = /bin/sh
9
10 top_srcdir = .
11 srcdir = .
12 prefix = /usr/local
13 exec_prefix = ${prefix}
14 bindir = $(exec_prefix)/bin
15 infodir = $(prefix)/info
16 libdir = $(prefix)/lib/gnudl
17 mandir = $(prefix)/man/man1
18 includedir = $(prefix)/include
19
20 CC = gcc
21 DEFS = -DHAVE_CONFIG_H
22 CPPFLAGS =  -g -O2 -Wall
23 CFLAGS = $(CPPFLAGS) 
24 LDFLAGS = 
25 BLIBS = -lpthread
26 GLLIBS =  -L/usr/X11R6/lib -lGL -lGLU
27 SDLLIBS = -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread 
28 SDLFLAGS = -I/usr/local/include -I/usr/local/include/SDL -D_REENTRANT
29 GLHEXEN = false
30 HAVE_SDL = yes
31
32 # Directories
33
34 TOPSRCDIR = .
35 TOPOBJDIR = .
36 SRCDIR    = .
37 MODULE    = none
38
39 INCSUBDIR = include
40
41 CPPFLAGS += -I./include
42
43 # Objects to build
44
45 SDLOBJS = \
46         sdl/i_sdl.o
47
48 GLBASE = sdl/i_sdlgl.o
49
50 GLOBJS = \
51         opengl/ogl_clip.o \
52         opengl/ogl_draw.o \
53         opengl/ogl_font.o \
54         opengl/ogl_rend.o \
55         opengl/ogl_rl.o \
56         opengl/ogl_sky.o \
57         opengl/ogl_tex.o \
58         opengl/m_bams.o
59
60 BASEOBJS = \
61         base/i_linux.o \
62         base/oss.o \
63         base/i_sound.o \
64         base/am_map.o \
65         base/ct_chat.o \
66         base/d_net.o \
67         base/f_finale.o \
68         base/g_game.o \
69         base/d_main.o \
70         base/info.o \
71         base/in_lude.o \
72         base/mn_menu.o \
73         base/m_misc.o \
74         base/p_ceilng.o \
75         base/p_doors.o \
76         base/p_enemy.o \
77         base/p_floor.o \
78         base/p_inter.o \
79         base/p_lights.o \
80         base/p_map.o \
81         base/p_maputl.o \
82         base/p_mobj.o \
83         base/p_plats.o \
84         base/p_pspr.o \
85         base/p_setup.o \
86         base/p_sight.o \
87         base/p_spec.o \
88         base/p_switch.o \
89         base/p_telept.o \
90         base/p_tick.o \
91         base/p_user.o \
92         base/r_bsp.o \
93         base/r_data.o \
94         base/r_draw.o \
95         base/r_main.o \
96         base/r_plane.o \
97         base/r_segs.o \
98         base/r_things.o \
99         base/sb_bar.o \
100         base/sounds.o \
101         base/tables.o \
102         base/v_video.o \
103         base/w_wad.o \
104         base/z_zone.o
105
106 ifeq "$(GLHEXEN)" "true"
107 opengl: $(GLBASE) $(GLOBJS) $(BASEOBJS)
108         $(CC) -o hheretic-gl $(GLBASE) $(GLOBJS) $(BASEOBJS) $(GLLIBS) $(SDLLIBS)
109 else
110 ifeq "$(HAVE_SDL)" "yes"
111 sdl: $(SDLOBJS) $(BASEOBJS)
112         $(CC) -o hheretic-sdl $(SDLOBJS) $(BASEOBJS) $(SDLLIBS)
113 endif
114 endif
115
116 clean:
117         $(RM) base/*.o
118         $(RM) x11/*.o
119         $(RM) svgalib/*.o
120         $(RM) opengl/*.o
121         $(RM) sdl/*.o
122
123 %.o: %.c
124         $(CC) $< -o $@ -c $(CFLAGS) 
125
126 %.o: %.cpp
127         $(CXX) $< -o $@ -c $(CPPFLAGS)