tyabus
5 years ago
committed by
Alibek Omarov
3 changed files with 6 additions and 296 deletions
@ -1,93 +0,0 @@
@@ -1,93 +0,0 @@
|
||||
CC?=gcc |
||||
CXX?=g++ |
||||
SRCS+=../dlls/crossbow.cpp |
||||
SRCS+=../dlls/crowbar.cpp |
||||
SRCS+=../dlls/egon.cpp |
||||
SRCS+=./ev_hldm.cpp |
||||
SRCS+=../dlls/gauss.cpp |
||||
SRCS+=../dlls/handgrenade.cpp |
||||
SRCS+=./hl/hl_baseentity.cpp |
||||
SRCS+=./hl/hl_events.cpp |
||||
SRCS+=./hl/hl_objects.cpp |
||||
SRCS+=./hl/hl_weapons.cpp |
||||
SRCS+=../dlls/glock.cpp |
||||
SRCS+=../dlls/hornetgun.cpp |
||||
#SRCS+=../common/interface.cpp
|
||||
SRCS+=../dlls/mp5.cpp |
||||
SRCS+=../dlls/python.cpp |
||||
SRCS+=../dlls/rpg.cpp |
||||
SRCS+=../dlls/satchel.cpp |
||||
SRCS+=../dlls/shotgun.cpp |
||||
SRCS+=../dlls/squeakgrenade.cpp |
||||
SRCS+=../dlls/tripmine.cpp |
||||
#SRCS+=../game_shared/voice_banmgr.cpp
|
||||
#SRCS+=../game_shared/voice_status.cpp
|
||||
SRCS+=./ammo.cpp |
||||
SRCS+=./ammo_secondary.cpp |
||||
SRCS+=./ammohistory.cpp |
||||
SRCS+=./battery.cpp |
||||
SRCS+=./cdll_int.cpp |
||||
SRCS+=./com_weapons.cpp |
||||
SRCS+=./death.cpp |
||||
SRCS+=./demo.cpp |
||||
SRCS+=./entity.cpp |
||||
SRCS+=./ev_common.cpp |
||||
SRCS+=./events.cpp |
||||
SRCS+=./flashlight.cpp |
||||
SRCS+=./GameStudioModelRenderer.cpp |
||||
SRCS+=./geiger.cpp |
||||
SRCS+=./health.cpp |
||||
SRCS+=./hud.cpp |
||||
SRCS+=./hud_msg.cpp |
||||
SRCS+=./hud_redraw.cpp |
||||
#SRCS+=./hud_servers.cpp
|
||||
SRCS+=./hud_spectator.cpp |
||||
SRCS+=./hud_update.cpp |
||||
SRCS+=./in_camera.cpp |
||||
SRCS+=./input.cpp |
||||
SRCS+=./input_mouse.cpp |
||||
SRCS+=./input_goldsource.cpp |
||||
SRCS+=./menu.cpp |
||||
SRCS+=./message.cpp |
||||
SRCS+=./overview.cpp |
||||
SRCS+=./parsemsg.cpp |
||||
SRCS_C+=../pm_shared/pm_debug.c |
||||
SRCS_C+=../pm_shared/pm_math.c |
||||
SRCS_C+=../pm_shared/pm_shared.c |
||||
SRCS+=./saytext.cpp |
||||
SRCS+=./status_icons.cpp |
||||
SRCS+=./statusbar.cpp |
||||
SRCS+=./studio_util.cpp |
||||
SRCS+=./StudioModelRenderer.cpp |
||||
SRCS+=./text_message.cpp |
||||
SRCS+=./train.cpp |
||||
SRCS+=./tri.cpp |
||||
SRCS+=./util.cpp |
||||
SRCS+=./view.cpp |
||||
SRCS+=./input_xash3d.cpp |
||||
SRCS+=./scoreboard.cpp |
||||
SRCS+=./MOTD.cpp |
||||
INCLUDES = -I../common -I. -I../game_shared -I../pm_shared -I../engine -I../dlls -I../utils/false_vgui/include |
||||
DEFINES = -Wno-write-strings -Dstricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -DCLIENT_WEAPONS -DCLIENT_DLL |
||||
CFLAGS = -m32 |
||||
OBJS = $(SRCS:.cpp=.o) $(SRCS_C:.c=.o) |
||||
|
||||
LIBS=-lm |
||||
ifeq ($(GOLDSOURCE_SUPPORT),1) |
||||
DEFINES += -DGOLDSOURCE_SUPPORT |
||||
endif |
||||
|
||||
ifeq ($(shell uname -s),Linux) |
||||
LIBS += -ldl |
||||
endif |
||||
|
||||
%.o : %.c |
||||
$(CC) $(CFLAGS) $(INCLUDES) $(DEFINES) -fPIC -c $< -o $@ |
||||
|
||||
%.o : %.cpp |
||||
$(CXX) $(CFLAGS) $(INCLUDES) $(DEFINES) -fPIC -c $< -o $@ |
||||
client.so : $(OBJS) |
||||
$(CXX) $(CFLAGS) $(OBJS) -o client.so -shared -Wl,--no-undefined -fPIC $(LIBS) |
||||
|
||||
clean: |
||||
$(RM) $(OBJS) |
@ -1,190 +0,0 @@
@@ -1,190 +0,0 @@
|
||||
#
|
||||
# Half-Life Full SDK 2.3 hl_i386.so Makefile for x86 Linux
|
||||
#
|
||||
# October 2002 by Leon Hartwig (hartwig@valvesoftware.com)
|
||||
#
|
||||
|
||||
DLLNAME=hl |
||||
|
||||
ARCH=i386 |
||||
|
||||
#make sure this is the correct compiler for your system
|
||||
CC?=gcc |
||||
CXX?=g++ |
||||
|
||||
DLL_SRCDIR=. |
||||
ENGINE_SRCDIR=../engine |
||||
COMMON_SRCDIR=../common |
||||
WPN_SHARED_SRCDIR=./wpn_shared |
||||
PM_SHARED_SRCDIR=../pm_shared |
||||
GAME_SHARED_SRCDIR=../game_shared |
||||
|
||||
DLL_OBJDIR=$(DLL_SRCDIR)/obj |
||||
WPN_SHARED_OBJDIR=$(WPN_SHARED_SRCDIR)/obj |
||||
PM_SHARED_OBJDIR=$(PM_SHARED_SRCDIR)/obj |
||||
GAME_SHARED_OBJDIR=$(GAME_SHARED_SRCDIR)/obj |
||||
|
||||
BASE_CFLAGS= -Dstricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp \
|
||||
-DCLIENT_WEAPONS -DNO_VOICEGAMEMGR |
||||
|
||||
#safe optimization
|
||||
CFLAGS=$(BASE_CFLAGS) -m32 -w -O1 |
||||
|
||||
#full optimization
|
||||
#CFLAGS=$(BASE_CFLAGS) -w -O1 -m486 -ffast-math -funroll-loops \
|
||||
-fomit-frame-pointer -fexpensive-optimizations \
|
||||
-malign-loops=2 -malign-jumps=2 -malign-functions=2 |
||||
|
||||
#use these when debugging
|
||||
#CFLAGS=$(BASE_CFLAGS) -g
|
||||
|
||||
INCLUDEDIRS=-I. -I$(ENGINE_SRCDIR) -I$(COMMON_SRCDIR) -I$(PM_SHARED_SRCDIR) -I$(GAME_SHARED_SRCDIR) |
||||
|
||||
LDFLAGS= |
||||
|
||||
SHLIBEXT=so |
||||
SHLIBCFLAGS=-fPIC |
||||
SHLIBLDFLAGS=-shared |
||||
|
||||
DO_CC=$(CC) $(CFLAGS) $(SHLIBCFLAGS) $(INCLUDEDIRS) -o $@ -c $< |
||||
DO_CXX=$(CXX) $(CFLAGS) $(SHLIBCFLAGS) $(INCLUDEDIRS) -o $@ -c $< |
||||
|
||||
#############################################################################
|
||||
# SETUP AND BUILD
|
||||
# GAME
|
||||
#############################################################################
|
||||
|
||||
$(DLL_OBJDIR)/%.o: $(DLL_SRCDIR)/%.cpp |
||||
$(DO_CXX) |
||||
|
||||
$(WPN_SHARED_OBJDIR)/%.o: $(WPN_SHARED_SRCDIR)/%.cpp |
||||
$(DO_CXX) |
||||
|
||||
$(GAME_SHARED_OBJDIR)/%.o: $(GAME_SHARED_SRCDIR)/%.cpp |
||||
$(DO_CXX) |
||||
|
||||
$(PM_SHARED_OBJDIR)/%.o: $(PM_SHARED_SRCDIR)/%.c |
||||
$(DO_CC) |
||||
|
||||
OBJ = \
|
||||
$(DLL_OBJDIR)/aflock.o \
|
||||
$(DLL_OBJDIR)/agrunt.o \
|
||||
$(DLL_OBJDIR)/airtank.o \
|
||||
$(DLL_OBJDIR)/animating.o \
|
||||
$(DLL_OBJDIR)/animation.o \
|
||||
$(DLL_OBJDIR)/apache.o \
|
||||
$(DLL_OBJDIR)/barnacle.o \
|
||||
$(DLL_OBJDIR)/barney.o \
|
||||
$(DLL_OBJDIR)/bigmomma.o \
|
||||
$(DLL_OBJDIR)/bloater.o \
|
||||
$(DLL_OBJDIR)/bmodels.o \
|
||||
$(DLL_OBJDIR)/bullsquid.o \
|
||||
$(DLL_OBJDIR)/buttons.o \
|
||||
$(DLL_OBJDIR)/cbase.o \
|
||||
$(DLL_OBJDIR)/client.o \
|
||||
$(DLL_OBJDIR)/combat.o \
|
||||
$(DLL_OBJDIR)/controller.o \
|
||||
$(DLL_OBJDIR)/crossbow.o \
|
||||
$(DLL_OBJDIR)/crowbar.o \
|
||||
$(DLL_OBJDIR)/defaultai.o \
|
||||
$(DLL_OBJDIR)/doors.o \
|
||||
$(DLL_OBJDIR)/effects.o \
|
||||
$(DLL_OBJDIR)/egon.o \
|
||||
$(DLL_OBJDIR)/explode.o \
|
||||
$(DLL_OBJDIR)/flyingmonster.o \
|
||||
$(DLL_OBJDIR)/func_break.o \
|
||||
$(DLL_OBJDIR)/func_tank.o \
|
||||
$(DLL_OBJDIR)/game.o \
|
||||
$(DLL_OBJDIR)/gamerules.o \
|
||||
$(DLL_OBJDIR)/gargantua.o \
|
||||
$(DLL_OBJDIR)/gauss.o \
|
||||
$(DLL_OBJDIR)/genericmonster.o \
|
||||
$(DLL_OBJDIR)/ggrenade.o \
|
||||
$(DLL_OBJDIR)/globals.o \
|
||||
$(DLL_OBJDIR)/gman.o \
|
||||
$(DLL_OBJDIR)/h_ai.o \
|
||||
$(DLL_OBJDIR)/h_battery.o \
|
||||
$(DLL_OBJDIR)/h_cine.o \
|
||||
$(DLL_OBJDIR)/h_cycler.o \
|
||||
$(DLL_OBJDIR)/h_export.o \
|
||||
$(DLL_OBJDIR)/handgrenade.o \
|
||||
$(DLL_OBJDIR)/hassassin.o \
|
||||
$(DLL_OBJDIR)/headcrab.o \
|
||||
$(DLL_OBJDIR)/healthkit.o \
|
||||
$(DLL_OBJDIR)/hgrunt.o \
|
||||
$(DLL_OBJDIR)/hornet.o \
|
||||
$(DLL_OBJDIR)/hornetgun.o \
|
||||
$(DLL_OBJDIR)/houndeye.o \
|
||||
$(DLL_OBJDIR)/ichthyosaur.o \
|
||||
$(DLL_OBJDIR)/islave.o \
|
||||
$(DLL_OBJDIR)/items.o \
|
||||
$(DLL_OBJDIR)/leech.o \
|
||||
$(DLL_OBJDIR)/lights.o \
|
||||
$(DLL_OBJDIR)/maprules.o \
|
||||
$(DLL_OBJDIR)/monstermaker.o \
|
||||
$(DLL_OBJDIR)/monsters.o \
|
||||
$(DLL_OBJDIR)/monsterstate.o \
|
||||
$(DLL_OBJDIR)/mortar.o \
|
||||
$(DLL_OBJDIR)/mp5.o \
|
||||
$(DLL_OBJDIR)/multiplay_gamerules.o \
|
||||
$(DLL_OBJDIR)/nihilanth.o \
|
||||
$(DLL_OBJDIR)/nodes.o \
|
||||
$(DLL_OBJDIR)/observer.o \
|
||||
$(DLL_OBJDIR)/osprey.o \
|
||||
$(DLL_OBJDIR)/pathcorner.o \
|
||||
$(DLL_OBJDIR)/plane.o \
|
||||
$(DLL_OBJDIR)/plats.o \
|
||||
$(DLL_OBJDIR)/player.o \
|
||||
$(DLL_OBJDIR)/playermonster.o \
|
||||
$(DLL_OBJDIR)/python.o \
|
||||
$(DLL_OBJDIR)/rat.o \
|
||||
$(DLL_OBJDIR)/roach.o \
|
||||
$(DLL_OBJDIR)/rpg.o \
|
||||
$(DLL_OBJDIR)/satchel.o \
|
||||
$(DLL_OBJDIR)/schedule.o \
|
||||
$(DLL_OBJDIR)/scientist.o \
|
||||
$(DLL_OBJDIR)/scripted.o \
|
||||
$(DLL_OBJDIR)/shotgun.o \
|
||||
$(DLL_OBJDIR)/singleplay_gamerules.o \
|
||||
$(DLL_OBJDIR)/skill.o \
|
||||
$(DLL_OBJDIR)/sound.o \
|
||||
$(DLL_OBJDIR)/soundent.o \
|
||||
$(DLL_OBJDIR)/spectator.o \
|
||||
$(DLL_OBJDIR)/squadmonster.o \
|
||||
$(DLL_OBJDIR)/squeakgrenade.o \
|
||||
$(DLL_OBJDIR)/subs.o \
|
||||
$(DLL_OBJDIR)/talkmonster.o \
|
||||
$(DLL_OBJDIR)/teamplay_gamerules.o \
|
||||
$(DLL_OBJDIR)/tempmonster.o \
|
||||
$(DLL_OBJDIR)/tentacle.o \
|
||||
$(DLL_OBJDIR)/triggers.o \
|
||||
$(DLL_OBJDIR)/tripmine.o \
|
||||
$(DLL_OBJDIR)/turret.o \
|
||||
$(DLL_OBJDIR)/util.o \
|
||||
$(DLL_OBJDIR)/weapons.o \
|
||||
$(DLL_OBJDIR)/world.o \
|
||||
$(DLL_OBJDIR)/xen.o \
|
||||
$(DLL_OBJDIR)/zombie.o \
|
||||
$(DLL_OBJDIR)/glock.o \
|
||||
$(PM_SHARED_OBJDIR)/pm_debug.o \
|
||||
$(PM_SHARED_OBJDIR)/pm_math.o \
|
||||
$(PM_SHARED_OBJDIR)/pm_shared.o |
||||
# $(GAME_SHARED_OBJDIR)/voice_gamemgr.o
|
||||
|
||||
$(DLLNAME)_$(ARCH).$(SHLIBEXT) : neat $(OBJ) |
||||
$(CXX) $(CFLAGS) $(SHLIBLDFLAGS) $(LDFLAGS) -o $@ $(OBJ) |
||||
|
||||
neat: |
||||
-mkdir $(DLL_OBJDIR) |
||||
-mkdir $(WPN_SHARED_OBJDIR) |
||||
-mkdir $(GAME_SHARED_OBJDIR) |
||||
-mkdir $(PM_SHARED_OBJDIR) |
||||
clean: |
||||
-rm -f $(OBJ) |
||||
-rm -f $(DLLNAME)_$(ARCH).$(SHLIBEXT) |
||||
spotless: clean |
||||
-rm -r $(DLL_OBJDIR) |
||||
-rm -r $(WPN_SHARED_OBJDIR) |
||||
-rm -r $(GAME_SHARED_OBJDIR) |
||||
-rm -r $(PM_SHARED_OBJDIR) |
||||
|
Loading…
Reference in new issue