1
0
Fork 0
forked from valve/halflife-sdk
halflife-sdk-steam/dedicated/Makefile

55 lines
1 KiB
Makefile
Raw Permalink Normal View History

2000-11-07 00:00:00 +00:00
#
2002-12-23 00:00:00 +00:00
# hlds (front end for hlds_l) Makefile for Linux i386
2000-11-07 00:00:00 +00:00
#
# May 2000, Leon Hartwig (hartwig@valvesoftware.com)
#
#make sure this is the correct compiler for your system
CC=gcc
SRCDIR=.
OBJDIR=$(SRCDIR)/obj
#safe optimization
CFLAGS=-w -m486 -O1
#full optimization
#CFLAGS=-w -m486 -O2 \
-ffast-math -funroll-loops \
-fexpensive-optimizations -malign-loops=2 \
-malign-jumps=2 -malign-functions=2
#use these when debugging
#CFLAGS=$(BASE_CFLAGS) -g
LDFLAGS=-lgcc -ldl
AR=ar
RANLIB=ranlib
INCLUDEDIRS=-I. -I../common
DO_CC=$(CC) $(INCLUDEDIRS) $(CFLAGS) -o $@ -c $<
#############################################################################
# HLDS FRONT END
#############################################################################
$(OBJDIR)/%.o: $(SRCDIR)/%.cpp
$(DO_CC)
OBJ = \
$(OBJDIR)/sys_ded.o \
2002-12-23 00:00:00 +00:00
$(OBJDIR)/engine.o
2000-11-07 00:00:00 +00:00
2002-12-23 00:00:00 +00:00
hlds : neat $(OBJ)
2000-11-07 00:00:00 +00:00
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ)
neat:
-mkdir $(OBJDIR)
clean:
-rm -f $(OBJ)
2002-12-23 00:00:00 +00:00
-rm -f hlds
2000-11-07 00:00:00 +00:00
spotless: clean
-rm -r $(OBJDIR)