mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Makefile: quake2.exe => yquake2.exe, add wrapper quake2.exe
This commit is contained in:
parent
54861bf4b7
commit
7f8390d5f7
1 changed files with 16 additions and 10 deletions
26
Makefile
26
Makefile
|
@ -382,8 +382,10 @@ cleanall:
|
|||
# The client
|
||||
ifeq ($(YQ2_OSTYPE), Windows)
|
||||
client:
|
||||
@echo "===> Building quake2.exe"
|
||||
@echo "===> Building yquake2.exe"
|
||||
${Q}mkdir -p release
|
||||
$(MAKE) release/yquake2.exe
|
||||
@echo "===> Building quake2.exe Wrapper"
|
||||
$(MAKE) release/quake2.exe
|
||||
|
||||
build/client/%.o: %.c
|
||||
|
@ -392,28 +394,28 @@ build/client/%.o: %.c
|
|||
${Q}$(CC) -c $(CFLAGS) $(SDLCFLAGS) $(INCLUDE) -o $@ $<
|
||||
|
||||
ifeq ($(WITH_CDA),yes)
|
||||
release/quake2.exe : CFLAGS += -DCDA
|
||||
release/yquake2.exe : CFLAGS += -DCDA
|
||||
endif
|
||||
|
||||
ifeq ($(WITH_OGG),yes)
|
||||
release/quake2.exe : CFLAGS += -DOGG
|
||||
release/quake2.exe : LDFLAGS += -lvorbisfile -lvorbis -logg
|
||||
release/yquake2.exe : CFLAGS += -DOGG
|
||||
release/yquake2.exe : LDFLAGS += -lvorbisfile -lvorbis -logg
|
||||
endif
|
||||
|
||||
ifeq ($(WITH_OPENAL),yes)
|
||||
release/quake2.exe : CFLAGS += -DUSE_OPENAL -DDEFAULT_OPENAL_DRIVER='"openal32.dll"' -DDLOPEN_OPENAL
|
||||
release/yquake2.exe : CFLAGS += -DUSE_OPENAL -DDEFAULT_OPENAL_DRIVER='"openal32.dll"' -DDLOPEN_OPENAL
|
||||
endif
|
||||
|
||||
ifeq ($(WITH_ZIP),yes)
|
||||
release/quake2.exe : CFLAGS += -DZIP -DNOUNCRYPT
|
||||
release/quake2.exe : LDFLAGS += -lz
|
||||
release/yquake2.exe : CFLAGS += -DZIP -DNOUNCRYPT
|
||||
release/yquake2.exe : LDFLAGS += -lz
|
||||
endif
|
||||
|
||||
ifeq ($(WITH_SDL2),yes)
|
||||
release/quake2.exe : CFLAGS += -DSDL2
|
||||
release/yquake2.exe : CFLAGS += -DSDL2
|
||||
endif
|
||||
|
||||
release/quake2.exe : LDFLAGS += -mwindows
|
||||
release/yquake2.exe : LDFLAGS += -mwindows
|
||||
|
||||
else # not Windows
|
||||
|
||||
|
@ -1053,10 +1055,14 @@ GAME_DEPS= $(GAME_OBJS:.o=.d)
|
|||
|
||||
# release/quake2
|
||||
ifeq ($(YQ2_OSTYPE), Windows)
|
||||
release/quake2.exe : $(CLIENT_OBJS) icon
|
||||
release/yquake2.exe : $(CLIENT_OBJS) icon
|
||||
@echo "===> LD $@"
|
||||
${Q}$(CC) build/icon/icon.res $(CLIENT_OBJS) $(LDFLAGS) $(SDLLDFLAGS) -o $@
|
||||
$(Q)strip $@
|
||||
# the wrappper, quick'n'dirty
|
||||
release/quake2.exe : src/win-wrapper/wrapper.c
|
||||
$(Q)$(CC) -Wall src/win-wrapper/wrapper.c -o $@
|
||||
$(Q)strip $@
|
||||
else
|
||||
release/quake2 : $(CLIENT_OBJS)
|
||||
@echo "===> LD $@"
|
||||
|
|
Loading…
Reference in a new issue