-
Notifications
You must be signed in to change notification settings - Fork 919
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The Quake sources as originally release under the GPL license on Dece…
…mber 21, 1999
- Loading branch information
Travis Bradshaw
committed
Jan 31, 2012
0 parents
commit 0023db3
Showing
605 changed files
with
282,548 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,185 @@ | ||
# | ||
# QuakeWorld Makefile for Linux 2.0 | ||
# | ||
# Apr '98 by Zoid <[email protected]> | ||
# | ||
# GNU Make required | ||
# | ||
|
||
ifneq (,$(findstring i86pc,$(shell uname -m))) | ||
ARCH=i386 | ||
else | ||
ARCH=sparc | ||
endif | ||
|
||
MAINDIR=/grog/Projects/QW | ||
|
||
BUILD_DEBUG_DIR=debug$(ARCH) | ||
BUILD_RELEASE_DIR=release$(ARCH) | ||
CLIENT_DIR=$(MAINDIR)/client | ||
SERVER_DIR=$(MAINDIR)/server | ||
|
||
CC=gcc | ||
BASE_CFLAGS=-Wall -Dstricmp=strcasecmp -I$(CLIENT_DIR) -I$(SERVER_DIR) | ||
RELEASE_CFLAGS=$(BASE_CFLAGS) -O2 -ffast-math | ||
# -funroll-loops -fomit-frame-pointer -fexpensive-optimizations | ||
DEBUG_CFLAGS=$(BASE_CFLAGS) -g | ||
|
||
LDFLAGS=-lm -lsocket -lnsl | ||
|
||
DO_CC=$(CC) $(CFLAGS) -o $@ -c $< | ||
DO_SERVER_CC=$(CC) -DSERVERONLY $(CFLAGS) -o $@ -c $< | ||
|
||
############################################################################# | ||
# SETUP AND BUILD | ||
############################################################################# | ||
|
||
TARGETS=$(BUILDDIR)/qwsv | ||
|
||
build_debug: | ||
@-mkdir $(BUILD_DEBUG_DIR) \ | ||
$(BUILD_DEBUG_DIR)/server | ||
$(MAKE) targets BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS="$(DEBUG_CFLAGS)" | ||
|
||
build_release: | ||
@-mkdir $(BUILD_RELEASE_DIR) \ | ||
$(BUILD_RELEASE_DIR)/server | ||
$(MAKE) targets BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS="$(RELEASE_CFLAGS)" | ||
|
||
all: build_debug build_release | ||
|
||
targets: $(TARGETS) | ||
|
||
############################################################################# | ||
# SERVER | ||
############################################################################# | ||
|
||
QWSV_OBJS = \ | ||
$(BUILDDIR)/server/pr_cmds.o \ | ||
$(BUILDDIR)/server/pr_edict.o \ | ||
$(BUILDDIR)/server/pr_exec.o \ | ||
$(BUILDDIR)/server/sv_init.o \ | ||
$(BUILDDIR)/server/sv_main.o \ | ||
$(BUILDDIR)/server/sv_nchan.o \ | ||
$(BUILDDIR)/server/sv_ents.o \ | ||
$(BUILDDIR)/server/sv_send.o \ | ||
$(BUILDDIR)/server/sv_move.o \ | ||
$(BUILDDIR)/server/sv_phys.o \ | ||
$(BUILDDIR)/server/sv_user.o \ | ||
$(BUILDDIR)/server/sv_ccmds.o \ | ||
$(BUILDDIR)/server/world.o \ | ||
$(BUILDDIR)/server/sys_unix.o \ | ||
$(BUILDDIR)/server/model.o \ | ||
$(BUILDDIR)/server/cmd.o \ | ||
$(BUILDDIR)/server/common.o \ | ||
$(BUILDDIR)/server/crc.o \ | ||
$(BUILDDIR)/server/cvar.o \ | ||
$(BUILDDIR)/server/mathlib.o \ | ||
$(BUILDDIR)/server/md4.o \ | ||
$(BUILDDIR)/server/zone.o \ | ||
$(BUILDDIR)/server/pmove.o \ | ||
$(BUILDDIR)/server/pmovetst.o \ | ||
$(BUILDDIR)/server/net_chan.o \ | ||
$(BUILDDIR)/server/net_udp.o | ||
|
||
$(BUILDDIR)/qwsv : $(QWSV_OBJS) | ||
$(CC) $(CFLAGS) -o $@ $(QWSV_OBJS) $(LDFLAGS) | ||
|
||
$(BUILDDIR)/server/pr_cmds.o : $(SERVER_DIR)/pr_cmds.c | ||
$(DO_SERVER_CC) | ||
|
||
$(BUILDDIR)/server/pr_edict.o : $(SERVER_DIR)/pr_edict.c | ||
$(DO_SERVER_CC) | ||
|
||
$(BUILDDIR)/server/pr_exec.o : $(SERVER_DIR)/pr_exec.c | ||
$(DO_SERVER_CC) | ||
|
||
$(BUILDDIR)/server/sv_init.o : $(SERVER_DIR)/sv_init.c | ||
$(DO_SERVER_CC) | ||
|
||
$(BUILDDIR)/server/sv_main.o : $(SERVER_DIR)/sv_main.c | ||
$(DO_SERVER_CC) | ||
|
||
$(BUILDDIR)/server/sv_nchan.o : $(SERVER_DIR)/sv_nchan.c | ||
$(DO_SERVER_CC) | ||
|
||
$(BUILDDIR)/server/sv_ents.o : $(SERVER_DIR)/sv_ents.c | ||
$(DO_SERVER_CC) | ||
|
||
$(BUILDDIR)/server/sv_send.o : $(SERVER_DIR)/sv_send.c | ||
$(DO_SERVER_CC) | ||
|
||
$(BUILDDIR)/server/sv_move.o : $(SERVER_DIR)/sv_move.c | ||
$(DO_SERVER_CC) | ||
|
||
$(BUILDDIR)/server/sv_phys.o : $(SERVER_DIR)/sv_phys.c | ||
$(DO_SERVER_CC) | ||
|
||
$(BUILDDIR)/server/sv_user.o : $(SERVER_DIR)/sv_user.c | ||
$(DO_SERVER_CC) | ||
|
||
$(BUILDDIR)/server/sv_ccmds.o : $(SERVER_DIR)/sv_ccmds.c | ||
$(DO_SERVER_CC) | ||
|
||
$(BUILDDIR)/server/world.o : $(SERVER_DIR)/world.c | ||
$(DO_SERVER_CC) | ||
|
||
$(BUILDDIR)/server/sys_unix.o : $(SERVER_DIR)/sys_unix.c | ||
$(DO_SERVER_CC) | ||
|
||
$(BUILDDIR)/server/model.o : $(SERVER_DIR)/model.c | ||
$(DO_SERVER_CC) | ||
|
||
$(BUILDDIR)/server/cmd.o : $(CLIENT_DIR)/cmd.c | ||
$(DO_SERVER_CC) | ||
|
||
$(BUILDDIR)/server/common.o : $(CLIENT_DIR)/common.c | ||
$(DO_SERVER_CC) | ||
|
||
$(BUILDDIR)/server/crc.o : $(CLIENT_DIR)/crc.c | ||
$(DO_SERVER_CC) | ||
|
||
$(BUILDDIR)/server/cvar.o : $(CLIENT_DIR)/cvar.c | ||
$(DO_SERVER_CC) | ||
|
||
$(BUILDDIR)/server/mathlib.o : $(CLIENT_DIR)/mathlib.c | ||
$(DO_SERVER_CC) | ||
|
||
$(BUILDDIR)/server/md4.o : $(CLIENT_DIR)/md4.c | ||
$(DO_SERVER_CC) | ||
|
||
$(BUILDDIR)/server/zone.o : $(CLIENT_DIR)/zone.c | ||
$(DO_SERVER_CC) | ||
|
||
$(BUILDDIR)/server/pmove.o : $(CLIENT_DIR)/pmove.c | ||
$(DO_SERVER_CC) | ||
|
||
$(BUILDDIR)/server/pmovetst.o : $(CLIENT_DIR)/pmovetst.c | ||
$(DO_SERVER_CC) | ||
|
||
$(BUILDDIR)/server/net_chan.o : $(CLIENT_DIR)/net_chan.c | ||
$(DO_SERVER_CC) | ||
|
||
$(BUILDDIR)/server/net_udp.o : $(CLIENT_DIR)/net_udp.c | ||
$(DO_SERVER_CC) | ||
|
||
############################################################################# | ||
# MISC | ||
############################################################################# | ||
|
||
clean: clean-debug clean-release | ||
|
||
clean-debug: | ||
$(MAKE) clean2 BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS="$(DEBUG_CFLAGS)" | ||
|
||
clean-release: | ||
$(MAKE) clean2 BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS="$(DEBUG_CFLAGS)" | ||
|
||
clean2: | ||
-rm -f $(QWSV_OBJS) \ | ||
$(QWCL_OBJS) \ | ||
$(QWCL_AS_OBJS) \ | ||
$(QWCL_SVGA_OBJS) \ | ||
$(QWCL_X11_OBJS) \ | ||
$(GLQWCL_OBJS) \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
rm -rf client\debug | ||
rm -rf client\release | ||
rm -rf client\gldebug | ||
rm -rf client\glrelease | ||
|
||
rm -f client\qwcl.ncb | ||
rm -f client\qwcl.opt | ||
rm -f client\qwcl.plg | ||
rm -f client\qwcl.stt | ||
|
||
rm -rf server\debug | ||
rm -rf server\release | ||
|
||
rm -f server\qwsv.ncb | ||
rm -f server\qwsv.opt | ||
rm -f server\qwsv.plg | ||
rm -f server\qwsv.stt | ||
|
||
rm -rf gas2masm\debug | ||
rm -rf gas2masm\release | ||
|
||
rm -f gas2masm\gas2masm.ncb | ||
rm -f gas2masm\gas2masm.opt | ||
rm -f gas2masm\gas2masm.plg | ||
rm -f gas2masm\gas2masm.stt | ||
|
||
rm -rf qwfwd\debug | ||
rm -rf qwfwd\release | ||
|
||
rm -f qwfwd\qwfwd.ncb | ||
rm -f qwfwd\qwfwd.opt | ||
rm -f qwfwd\qwfwd.plg | ||
rm -f qwfwd\qwfwd.stt | ||
|
||
rm -f qw.ncb | ||
rm -f qw.opt | ||
rm -f qw.plg | ||
rm -f qw.stt | ||
|
||
|
Oops, something went wrong.
0023db3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, please can someone help me out? I'm a complete noob at this stuff. If I copy this source code, or download it, or whatever it is I need to do. Once I have the code will I be able to play Quake 1 on my modern Windows 10 PC? Will I need an emulator or an engine or something? I would really appreciate any help, I'd just love to play on some quake 1! Also, I'm assuming this is all completely non-malicious code, is that right?
I have GitHub desktop. Will I need a particular compiler? I have Visual Studio Code.