1 # This Makefile understands the following targets:
3 # x11 (default): build X11 version
4 # svgalib: build SVGALib version
5 # opengl build OpenGL version
6 # clean: remove all intermediate files
12 top_srcdir = @top_srcdir@
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
24 CPPFLAGS = @CPPFLAGS@ @CFLAGS@
28 XLIBS = $(BLIBS) @LIBS@
29 SVGALIBS = $(BLIBS) @SVGALIBS@
35 TOPSRCDIR = @top_srcdir@
43 CPPFLAGS += -I./include -I/usr/X11R6/include
125 ifeq ($(GLHEXEN),true)
126 opengl: $(GLOBJS) $(BASEOBJS)
127 $(CC) -o HHexenGL $(GLOBJS) $(BASEOBJS) $(XLIBS)
130 echo "You are trying to compile the X11 version after enabling OpenGL."
131 echo "Please type './configure' before you try this again."
134 echo "You are trying to compile the SVGALib version after enabling OpenGL."
135 echo "Please type './configure' before you try this again."
138 ifeq ($(GLHEXEN),false)
139 x11: $(X11OBJS) $(BASEOBJS)
140 $(CC) -o HHexenX $(X11OBJS) $(BASEOBJS) $(XLIBS)
142 svgalib: $(SVGAOBJS) $(BASEOBJS)
143 $(CC) -o HHexenS $(SVGAOBJS) $(BASEOBJS) $(SVGALIBS)
146 echo "You have not enabled GL. Please type './configure --enable-gl-mesa'"
147 echo "or './configure --enable-gl-tnt' to enable OpenGL mode."
157 $(CC) $< -o $@ -c $(CFLAGS)
160 $(CXX) $< -o $@ -c $(CPPFLAGS)