Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Craftyawesome committed May 26, 2024
1 parent 99b1cc6 commit 8e0f129
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ STATIC ?= 1
VERBOSE ?= 0
PROFILE ?= 0
STRIP ?= strip
DEFINES ?= -DHAVE_SDL -DHAVE_THREADS -DHAVE_MIXER -DHAVE_ZLIB -DHAVE_CURL -DLOGMESSAGES
DEFINES ?= -DHAVE_SDL -DHAVE_THREADS -DHAVE_MIXER -DHAVE_ZLIB -DHAVE_CURL -DLOGMESSAGES -DHWRENDER -DSTATIC_OPENGL -DDEBUG_TO_FILE

CFLAGS ?= -std=c++17

Expand Down Expand Up @@ -70,7 +70,7 @@ endif
# =============================================================================

CFLAGS += `$(PKGCONFIG) --cflags sdl2 ogg vorbis theora vorbisfile theoradec SDL2_mixer zlib`
LIBS += `$(PKGCONFIG) --libs-only-l --libs-only-L sdl2 ogg vorbis theora vorbisfile theoradec SDL2_mixer zlib`
LIBS += `$(PKGCONFIG) --libs-only-l --libs-only-L sdl2 ogg vorbis theora vorbisfile theoradec SDL2_mixer SDL2_gfx zlib`

ifeq ($(STATIC),1)
CFLAGS += -static
Expand All @@ -82,10 +82,24 @@ INCLUDES += \
INCLUDES += $(LIBS)

# Main Sources
SOURCES = \
SOURCES := \
src/hardware/r_opengl/r_opengl \
src/hardware/hw_cache \
src/hardware/hw_batching \
src/hardware/hw_main \
src/hardware/hw_md3load \
src/hardware/hw_md2 \
src/hardware/hw_md2load \
src/hardware/hw_main \
src/hardware/hw_clip \
src/hardware/hw_bsp \
src/hardware/hw_model \
src/hardware/hw_light \
src/hardware/hw_draw \
src/sdl/i_net \
src/sdl/i_system \
src/sdl/i_main \
src/sdl/ogl_sdl \
src/sdl/i_video \
src/sdl/dosstr \
src/sdl/endtxt \
Expand Down Expand Up @@ -250,7 +264,7 @@ $(OBJDIR)/%.o: %.cpp

$(BINPATH): $(OBJDIR) $(OBJECTS)
@echo -n Linking...
$(CXX) $(CFLAGS) $(LDFLAGS) $(OBJECTS) -o $@ $(LIBS)
$(CXX) $(CFLAGS) $(LDFLAGS) $(OBJECTS) -o $@ $(LIBS) -Xlinker --verbose
@echo " Done!"
$(STRIP) $@

Expand Down

0 comments on commit 8e0f129

Please sign in to comment.